When what we need is a shared_ptr, we should just go ahead and use one.

One of the top crashes reported in the Play Console is a ManagedTexture crash, so seeing if this might help.
This commit is contained in:
Henrik Rydgård 2017-05-18 12:52:03 +02:00
parent 60378a0dcb
commit df6ce90c84
16 changed files with 73 additions and 81 deletions

View file

@ -49,7 +49,7 @@ CwCheatScreen::CwCheatScreen(std::string gamePath)
}
void CwCheatScreen::CreateCodeList() {
GameInfo *info = g_gameInfoCache->GetInfo(NULL, gamePath_, 0);
std::shared_ptr<GameInfo> info = g_gameInfoCache->GetInfo(NULL, gamePath_, 0);
if (info && info->paramSFOLoaded) {
gameTitle = info->paramSFO.GetValueString("DISC_ID");
}