mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-27 12:18:35 +01:00
Fix some minor things found by running Sizer on PPSSPP
Sizer: https://github.com/aras-p/sizer
This commit is contained in:
1 parent
8fe171253d
commit
62b24edde1
3 files changed
+6
-7
No files matched your search
+4
-4
@@ -395,7 +395,7 @@ void SetDefaultKeyMap(DefaultMaps dmap, bool replace) {
|
||||
UpdateNativeMenuKeys();
|
||||
}
|
||||
|
||||
const KeyMap_IntStrPair key_names[] = {
|
||||
static const KeyMap_IntStrPair key_names[] = {
|
||||
{NKCODE_A, "A"},
|
||||
{NKCODE_B, "B"},
|
||||
{NKCODE_C, "C"},
|
||||
@@ -586,7 +586,7 @@ const KeyMap_IntStrPair key_names[] = {
|
||||
{NKCODE_RIGHTBRACE, "}"},
|
||||
};
|
||||
|
||||
const KeyMap_IntStrPair axis_names[] = {
|
||||
static const KeyMap_IntStrPair axis_names[] = {
|
||||
{JOYSTICK_AXIS_X, "X Axis"},
|
||||
{JOYSTICK_AXIS_Y, "Y Axis"},
|
||||
{JOYSTICK_AXIS_PRESSURE, "Pressure"},
|
||||
@@ -874,7 +874,7 @@ void LoadFromIni(IniFile &file) {
|
||||
IniFile::Section *controls = file.GetOrCreateSection("ControlMapping");
|
||||
for (size_t i = 0; i < ARRAY_SIZE(psp_button_names); i++) {
|
||||
std::string value;
|
||||
controls->Get(psp_button_names[i].name.c_str(), &value, "");
|
||||
controls->Get(psp_button_names[i].name, &value, "");
|
||||
|
||||
// Erase default mapping
|
||||
g_controllerMap.erase(psp_button_names[i].key);
|
||||
@@ -913,7 +913,7 @@ void SaveToIni(IniFile &file) {
|
||||
value += ",";
|
||||
}
|
||||
|
||||
controls->Set(psp_button_names[i].name.c_str(), value, "");
|
||||
controls->Set(psp_button_names[i].name, value, "");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user