fix(solution): HOLY SHIT IT'S COMPILING

This commit is contained in:
Mohamed Ashraf
2026-03-02 09:38:48 +04:00
parent 401d8fec96
commit 96e219ee1e
13 changed files with 46 additions and 32 deletions

View File

@@ -62,7 +62,7 @@ void ConsoleSaveFileConverter::ConvertSave(ConsoleSaveFile *sourceSave, ConsoleS
ConsoleSavePath ldatPath( wstring(L"level.dat") );
FileEntry *sourceLdatFe = sourceSave->createFile( ldatPath );
FileEntry *targetLdatFe = targetSave->createFile( ldatPath );
app.DebugPrintf("Processing level.dat\n");
printf("Processing level.dat\n");
ProcessSimpleFile(sourceSave, sourceLdatFe, targetSave, targetLdatFe);
// Process game rules
@@ -72,7 +72,7 @@ void ConsoleSaveFileConverter::ConvertSave(ConsoleSaveFile *sourceSave, ConsoleS
{
FileEntry *sourceFe = sourceSave->createFile( gameRulesPath );
FileEntry *targetFe = targetSave->createFile( gameRulesPath );
app.DebugPrintf("Processing game rules\n");
printf("Processing game rules\n");
ProcessSimpleFile(sourceSave, sourceFe, targetSave, targetFe);
}
}
@@ -102,7 +102,7 @@ void ConsoleSaveFileConverter::ConvertSave(ConsoleSaveFile *sourceSave, ConsoleS
{
FileEntry *sourceFe = sourceSave->createFile( sourcePlayerDatPath );
FileEntry *targetFe = targetSave->createFile( targetPlayerDatPath );
app.DebugPrintf("Processing player dat file %s\n", playerFiles->at(fileIdx)->data.filename);
printf("Processing player dat file %s\n", playerFiles->at(fileIdx)->data.filename);
ProcessSimpleFile(sourceSave, sourceFe, targetSave, targetFe);
targetFe->data.lastModifiedTime = sourceFe->data.lastModifiedTime;
@@ -138,7 +138,7 @@ void ConsoleSaveFileConverter::ConvertSave(ConsoleSaveFile *sourceSave, ConsoleS
// Overworld
{
app.DebugPrintf("Processing the overworld\n");
printf("Processing the overworld\n");
int halfXZSize = xzSize / 2;
int progressTarget = (xzSize) * (xzSize);
@@ -149,7 +149,7 @@ void ConsoleSaveFileConverter::ConvertSave(ConsoleSaveFile *sourceSave, ConsoleS
{
for(int z = -halfXZSize; z < halfXZSize; ++z)
{
//app.DebugPrintf("Processing overworld chunk %d,%d\n",x,z);
//printf("Processing overworld chunk %d,%d\n",x,z);
DataInputStream *dis = sourceCache._getChunkDataInputStream(sourceSave,L"",x,z);
if(dis)
@@ -181,7 +181,7 @@ void ConsoleSaveFileConverter::ConvertSave(ConsoleSaveFile *sourceSave, ConsoleS
// Nether
{
app.DebugPrintf("Processing the nether\n");
printf("Processing the nether\n");
int hellSize = xzSize / hellScale;
int halfXZSize = hellSize / 2;
@@ -193,7 +193,7 @@ void ConsoleSaveFileConverter::ConvertSave(ConsoleSaveFile *sourceSave, ConsoleS
{
for(int z = -halfXZSize; z < halfXZSize; ++z)
{
//app.DebugPrintf("Processing nether chunk %d,%d\n",x,z);
//printf("Processing nether chunk %d,%d\n",x,z);
DataInputStream *dis = sourceCache._getChunkDataInputStream(sourceSave,L"DIM-1",x,z);
if(dis)
@@ -224,7 +224,7 @@ void ConsoleSaveFileConverter::ConvertSave(ConsoleSaveFile *sourceSave, ConsoleS
// End
{
app.DebugPrintf("Processing the end\n");
printf("Processing the end\n");
int halfXZSize = END_LEVEL_MAX_WIDTH / 2;
int progressTarget = (END_LEVEL_MAX_WIDTH) * (END_LEVEL_MAX_WIDTH);
@@ -235,7 +235,7 @@ void ConsoleSaveFileConverter::ConvertSave(ConsoleSaveFile *sourceSave, ConsoleS
{
for(int z = -halfXZSize; z < halfXZSize; ++z)
{
//app.DebugPrintf("Processing end chunk %d,%d\n",x,z);
//printf("Processing end chunk %d,%d\n",x,z);
DataInputStream *dis = sourceCache._getChunkDataInputStream(sourceSave,L"DIM1/",x,z);
if(dis)
@@ -291,4 +291,4 @@ void ConsoleSaveFileConverter::ConvertSave(ConsoleSaveFile *sourceSave, ConsoleS
}
}
#endif
}
}