fix: Properly load and restore the metadata for saves (#1550)

* fix: save metadata loading

Notify others that the thumbnail data is loaded.

Refs: #124

* refactor: remove redundant class field
This commit is contained in:
Alex
2026-05-04 15:00:40 -07:00
committed by GitHub
parent d3df53503a
commit 09df8928ee
2 changed files with 1 additions and 4 deletions

View File

@@ -53,7 +53,6 @@ int UIScene_LoadMenu::LoadSaveDataThumbnailReturned(LPVOID lpParam,PBYTE pbThumb
app.DebugPrintf("Thumbnail data is nullptr, or has size 0\n"); app.DebugPrintf("Thumbnail data is nullptr, or has size 0\n");
pClass->m_bThumbnailGetFailed = true; pClass->m_bThumbnailGetFailed = true;
} }
pClass->m_bRetrievingSaveThumbnail = false;
} }
return 0; return 0;
@@ -100,7 +99,6 @@ UIScene_LoadMenu::UIScene_LoadMenu(int iPad, void *initData, UILayer *parentLaye
m_bIsSaveOwner = true; m_bIsSaveOwner = true;
m_bSaveThumbnailReady = false; m_bSaveThumbnailReady = false;
m_bRetrievingSaveThumbnail = true;
m_bShowTimer = false; m_bShowTimer = false;
m_pDLCPack = nullptr; m_pDLCPack = nullptr;
m_bAvailableTexturePacksChecked=false; m_bAvailableTexturePacksChecked=false;
@@ -274,9 +272,9 @@ UIScene_LoadMenu::UIScene_LoadMenu(int iPad, void *initData, UILayer *parentLaye
m_bitmapIcon.setTextureName(wFilename); m_bitmapIcon.setTextureName(wFilename);
m_pbThumbnailData = params->saveDetails->pbThumbnailData; m_pbThumbnailData = params->saveDetails->pbThumbnailData;
m_uiThumbnailSize = params->saveDetails->dwThumbnailSize; m_uiThumbnailSize = params->saveDetails->dwThumbnailSize;
m_bSaveThumbnailReady = true;
} }
m_bRetrievingSaveThumbnail = false;
} }
#endif #endif
} }

View File

@@ -50,7 +50,6 @@ private:
int m_iGameModeId; int m_iGameModeId;
bool m_bHasBeenInCreative; bool m_bHasBeenInCreative;
bool m_bIsSaveOwner; bool m_bIsSaveOwner;
bool m_bRetrievingSaveThumbnail;
bool m_bSaveThumbnailReady; bool m_bSaveThumbnailReady;
bool m_bMultiplayerAllowed; bool m_bMultiplayerAllowed;
bool m_bShowTimer; bool m_bShowTimer;