mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-05 11:45:11 +00:00
cleanup: flatten dead branches in world io level network and stats
This commit is contained in:
@@ -80,32 +80,15 @@ void ConsoleSaveFileConverter::ConvertSave(ConsoleSaveFile* sourceSave,
|
||||
}
|
||||
|
||||
// MGH added - find any player data files and copy them across
|
||||
#if 0 || 0 || 0
|
||||
std::vector<FileEntry*>* playerFiles = sourceSave->getValidPlayerDatFiles();
|
||||
#else
|
||||
std::vector<FileEntry*>* playerFiles =
|
||||
sourceSave->getFilesWithPrefix(DirectoryLevelStorage::getPlayerDir());
|
||||
#endif
|
||||
|
||||
if (playerFiles != NULL) {
|
||||
for (int fileIdx = 0; fileIdx < playerFiles->size(); fileIdx++) {
|
||||
ConsoleSavePath sourcePlayerDatPath(
|
||||
playerFiles->at(fileIdx)->data.filename);
|
||||
#if 0
|
||||
// 4J Stu - As the XUIDs on X360 and X1 are different, we don't want
|
||||
// to transfer these over. However as the first player file should
|
||||
// be the owner of the save, we can move their data over to the
|
||||
// current players XUID
|
||||
if (fileIdx > 0) break;
|
||||
PlayerUID xuid;
|
||||
ProfileManager.GetXUID(ProfileManager.GetPrimaryPad(), &xuid,
|
||||
false);
|
||||
ConsoleSavePath targetPlayerDatPath(L"players/" + xuid.toString() +
|
||||
L".dat");
|
||||
#else
|
||||
ConsoleSavePath targetPlayerDatPath(
|
||||
playerFiles->at(fileIdx)->data.filename);
|
||||
#endif
|
||||
{
|
||||
FileEntry* sourceFe =
|
||||
sourceSave->createFile(sourcePlayerDatPath);
|
||||
@@ -122,7 +105,7 @@ void ConsoleSaveFileConverter::ConvertSave(ConsoleSaveFile* sourceSave,
|
||||
delete playerFiles;
|
||||
}
|
||||
|
||||
#ifdef SPLIT_SAVES
|
||||
#if defined(SPLIT_SAVES)
|
||||
int xzSize = LEVEL_LEGACY_WIDTH;
|
||||
int hellScale = HELL_LEVEL_LEGACY_SCALE;
|
||||
if (sourceSave->doesFileExist(ldatPath)) {
|
||||
@@ -292,13 +275,13 @@ void ConsoleSaveFileConverter::ConvertSave(ConsoleSaveFile* sourceSave,
|
||||
std::wstring suffix(L".mcr");
|
||||
if (fName.compare(fName.length() - suffix.length(), suffix.length(),
|
||||
suffix) == 0) {
|
||||
#ifndef _CONTENT_PACKAGE
|
||||
#if !defined(_CONTENT_PACKAGE)
|
||||
wprintf(L"Processing a region file: %s\n", fe->data.filename);
|
||||
#endif
|
||||
ProcessStandardRegionFile(sourceSave, File(fe->data.filename),
|
||||
targetSave, File(fe->data.filename));
|
||||
} else {
|
||||
#ifndef _CONTENT_PACKAGE
|
||||
#if !defined(_CONTENT_PACKAGE)
|
||||
wprintf(L"%s is not a region file, ignoring\n",
|
||||
fe->data.filename);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user