mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-25 01:00:01 +00:00
This commit is contained in:
parent
3101f100ce
commit
9f99815121
@ -89,6 +89,23 @@ int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLin
|
||||
bool hideLog = false;
|
||||
#endif
|
||||
|
||||
VFSRegister("", new DirectoryAssetReader("assets/"));
|
||||
VFSRegister("", new DirectoryAssetReader(""));
|
||||
|
||||
wchar_t lcCountry[256];
|
||||
|
||||
// LOCALE_SNAME is only available in WinVista+
|
||||
// Really should find a way to do this in XP too :/
|
||||
if (0 != GetLocaleInfo(LOCALE_NAME_USER_DEFAULT, LOCALE_SNAME, lcCountry, 256)) {
|
||||
langRegion = ConvertWStringToUTF8(lcCountry);
|
||||
for (int i = 0; i < langRegion.size(); i++) {
|
||||
if (langRegion[i] == '-')
|
||||
langRegion[i] = '_';
|
||||
}
|
||||
} else {
|
||||
langRegion = "en_US";
|
||||
}
|
||||
|
||||
// Load config up here, because those changes below would be overwritten
|
||||
// if it's not loaded here first.
|
||||
g_Config.Load();
|
||||
@ -120,23 +137,6 @@ int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLin
|
||||
}
|
||||
}
|
||||
|
||||
VFSRegister("", new DirectoryAssetReader("assets/"));
|
||||
VFSRegister("", new DirectoryAssetReader(""));
|
||||
|
||||
wchar_t lcCountry[256];
|
||||
|
||||
// LOCALE_SNAME is only available in WinVista+
|
||||
// Really should find a way to do this in XP too :/
|
||||
if (0 != GetLocaleInfo(LOCALE_NAME_USER_DEFAULT, LOCALE_SNAME, lcCountry, 256)) {
|
||||
langRegion = ConvertWStringToUTF8(lcCountry);
|
||||
for (size_t i = 0; i < langRegion.size(); i++) {
|
||||
if (langRegion[i] == '-')
|
||||
langRegion[i] = '_';
|
||||
}
|
||||
} else {
|
||||
langRegion = "en_US";
|
||||
}
|
||||
|
||||
LogManager::Init();
|
||||
LogManager::GetInstance()->GetConsoleListener()->Open(hideLog, 150, 120, "PPSSPP Debug Console");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user