mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-06 22:11:02 +00:00
fix: Properly load and restore the metadata for saves (#1550)
Some checks failed
Nightly Server Release / build (Windows64) (push) Has been cancelled
Nightly Release / build (Windows64) (push) Has been cancelled
Nightly Server Release / release (push) Has been cancelled
Nightly Server Release / Build and Push Docker Image (push) Has been cancelled
Nightly Server Release / cleanup (push) Has been cancelled
Nightly Release / release (push) Has been cancelled
Nightly Release / cleanup (push) Has been cancelled
Some checks failed
Nightly Server Release / build (Windows64) (push) Has been cancelled
Nightly Release / build (Windows64) (push) Has been cancelled
Nightly Server Release / release (push) Has been cancelled
Nightly Server Release / Build and Push Docker Image (push) Has been cancelled
Nightly Server Release / cleanup (push) Has been cancelled
Nightly Release / release (push) Has been cancelled
Nightly Release / cleanup (push) Has been cancelled
* fix: save metadata loading Notify others that the thumbnail data is loaded. Refs: #124 * refactor: remove redundant class field
This commit is contained in:
parent
d3df53503a
commit
09df8928ee
|
|
@ -53,7 +53,6 @@ int UIScene_LoadMenu::LoadSaveDataThumbnailReturned(LPVOID lpParam,PBYTE pbThumb
|
|||
app.DebugPrintf("Thumbnail data is nullptr, or has size 0\n");
|
||||
pClass->m_bThumbnailGetFailed = true;
|
||||
}
|
||||
pClass->m_bRetrievingSaveThumbnail = false;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
@ -100,7 +99,6 @@ UIScene_LoadMenu::UIScene_LoadMenu(int iPad, void *initData, UILayer *parentLaye
|
|||
m_bIsSaveOwner = true;
|
||||
|
||||
m_bSaveThumbnailReady = false;
|
||||
m_bRetrievingSaveThumbnail = true;
|
||||
m_bShowTimer = false;
|
||||
m_pDLCPack = nullptr;
|
||||
m_bAvailableTexturePacksChecked=false;
|
||||
|
|
@ -274,9 +272,9 @@ UIScene_LoadMenu::UIScene_LoadMenu(int iPad, void *initData, UILayer *parentLaye
|
|||
m_bitmapIcon.setTextureName(wFilename);
|
||||
m_pbThumbnailData = params->saveDetails->pbThumbnailData;
|
||||
m_uiThumbnailSize = params->saveDetails->dwThumbnailSize;
|
||||
m_bSaveThumbnailReady = true;
|
||||
}
|
||||
|
||||
m_bRetrievingSaveThumbnail = false;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,7 +50,6 @@ private:
|
|||
int m_iGameModeId;
|
||||
bool m_bHasBeenInCreative;
|
||||
bool m_bIsSaveOwner;
|
||||
bool m_bRetrievingSaveThumbnail;
|
||||
bool m_bSaveThumbnailReady;
|
||||
bool m_bMultiplayerAllowed;
|
||||
bool m_bShowTimer;
|
||||
|
|
|
|||
Loading…
Reference in a new issue