mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Show the Android "board name" in system information.
This commit is contained in:
parent
d9695da3a5
commit
be77ffd4e8
3 changed files with 8 additions and 1 deletions
|
@ -359,6 +359,9 @@ void SystemInfoScreen::CreateViews() {
|
|||
deviceSpecs->Add(new ItemHeader("System Information"));
|
||||
deviceSpecs->Add(new InfoItem("Name", System_GetProperty(SYSPROP_NAME)));
|
||||
deviceSpecs->Add(new InfoItem("Lang/Region", System_GetProperty(SYSPROP_LANGREGION)));
|
||||
std::string board = System_GetProperty(SYSPROP_BOARDNAME);
|
||||
if (!board.empty())
|
||||
deviceSpecs->Add(new InfoItem("Board", board));
|
||||
deviceSpecs->Add(new InfoItem("ABI", GetCompilerABI()));
|
||||
#ifdef _WIN32
|
||||
if (IsDebuggerPresent()) {
|
||||
|
|
|
@ -330,6 +330,7 @@ static std::queue<FrameCommand> frameCommands;
|
|||
std::string systemName;
|
||||
std::string langRegion;
|
||||
std::string mogaVersion;
|
||||
std::string boardName;
|
||||
|
||||
static float left_joystick_x_async;
|
||||
static float left_joystick_y_async;
|
||||
|
@ -419,6 +420,8 @@ std::string System_GetProperty(SystemProperty prop) {
|
|||
return langRegion;
|
||||
case SYSPROP_MOGA_VERSION:
|
||||
return mogaVersion;
|
||||
case SYSPROP_BOARDNAME:
|
||||
return boardName;
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
|
@ -548,7 +551,7 @@ extern "C" void Java_org_ppsspp_ppsspp_NativeApp_init
|
|||
std::string shortcut_param = GetJavaString(env, jshortcutParam);
|
||||
std::string cacheDir = GetJavaString(env, jcacheDir);
|
||||
std::string buildBoard = GetJavaString(env, jboard);
|
||||
|
||||
boardName = buildBoard;
|
||||
ILOG("NativeApp.init(): External storage path: %s", externalDir.c_str());
|
||||
ILOG("NativeApp.init(): Launch shortcut parameter: %s", shortcut_param.c_str());
|
||||
|
||||
|
|
|
@ -155,6 +155,7 @@ enum SystemProperty {
|
|||
SYSPROP_NAME,
|
||||
SYSPROP_LANGREGION,
|
||||
SYSPROP_CPUINFO,
|
||||
SYSPROP_BOARDNAME,
|
||||
SYSPROP_CLIPBOARD_TEXT,
|
||||
SYSPROP_GPUDRIVER_VERSION,
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue