mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
Core: Use a shared_ptr for i18n categories.
This does not make them thread safe, but it reduces the chances of a crash a bit (see #12594.)
This commit is contained in:
1 parent
a4ba5d4859
commit
5009698cc0
54 files changed
+244
-240
No files matched your search
@@ -261,7 +261,7 @@ bool GameManager::InstallGame(const std::string &url, const std::string &fileNam
|
||||
return InstallRawISO(fileName, shortFilename, deleteAfter);
|
||||
}
|
||||
|
||||
I18NCategory *sy = GetI18NCategory("System");
|
||||
auto sy = GetI18NCategory("System");
|
||||
installInProgress_ = true;
|
||||
|
||||
std::string pspGame = GetSysDirectory(DIRECTORY_GAME);
|
||||
@@ -312,7 +312,7 @@ bool GameManager::InstallGame(const std::string &url, const std::string &fileNam
|
||||
}
|
||||
|
||||
bool GameManager::DetectTexturePackDest(struct zip *z, int iniIndex, std::string *dest) {
|
||||
I18NCategory *iz = GetI18NCategory("InstallZip");
|
||||
auto iz = GetI18NCategory("InstallZip");
|
||||
|
||||
struct zip_stat zstat;
|
||||
zip_stat_index(z, iniIndex, 0, &zstat);
|
||||
@@ -491,7 +491,7 @@ bool GameManager::InstallMemstickGame(struct zip *z, const std::string &zipfile,
|
||||
size_t allBytes = 0;
|
||||
size_t bytesCopied = 0;
|
||||
|
||||
I18NCategory *sy = GetI18NCategory("System");
|
||||
auto sy = GetI18NCategory("System");
|
||||
|
||||
auto fileAllowed = [&](const char *fn) {
|
||||
if (!allowRoot && strchr(fn, '/') == 0)
|
||||
|
||||
Reference in new issue
Block a user