mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 18:49:51 +01:00
Replace System_GetName with System_GetProperty so we can return more info
This commit is contained in:
1 parent
0d26996146
commit
1790bd8b7e
7 files changed
+63
-17
No files matched your search
+10
-2
@@ -32,6 +32,7 @@ std::string frameCommand;
|
||||
std::string frameCommandParam;
|
||||
|
||||
std::string systemName;
|
||||
std::string langRegion;
|
||||
|
||||
const bool extraLog = true;
|
||||
|
||||
@@ -86,8 +87,15 @@ void System_InputBox(const char *title, const char *defaultValue) {
|
||||
frameCommandParam = title;
|
||||
}
|
||||
|
||||
std::string System_GetName() {
|
||||
return systemName;
|
||||
std::string System_GetProperty(SystemProperty prop) {
|
||||
switch (prop) {
|
||||
case SYSPROP_NAME:
|
||||
return systemName;
|
||||
case SYSPROP_LANGREGION: // "en_US"
|
||||
return langRegion;
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
// Remember that all of these need initialization on init! The process
|
||||
|
||||
Reference in new issue
Block a user