mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Fix a bad nullcheck.
This commit is contained in:
1 parent
b6d6f26160
commit
116ddaaaf4
2 files changed
+3
-2
No files matched your search
@@ -390,6 +390,7 @@ void SetDefaultKeyMap(DefaultMaps dmap, bool replace) {
|
||||
case DEFAULT_MAPPING_BLACKBERRY_QWERTY:
|
||||
SetDefaultKeyMap(DEVICE_ID_KEYBOARD, defaultBlackberryQWERTYKeyMap, ARRAY_SIZE(defaultBlackberryQWERTYKeyMap), replace);
|
||||
replace = false;
|
||||
// Intentional fallthrough.
|
||||
case DEFAULT_MAPPING_PAD:
|
||||
SetDefaultKeyMap(DEVICE_ID_PAD_0, defaultPadMap, ARRAY_SIZE(defaultPadMap), replace);
|
||||
break;
|
||||
|
||||
+2
-2
@@ -64,11 +64,11 @@ public:
|
||||
virtual void Draw(UIContext &dc);
|
||||
|
||||
UI::EventReturn OnClicked(UI::EventParams &e) {
|
||||
bool temp = false;
|
||||
if (toggle_) {
|
||||
*toggle_ = !(*toggle_);
|
||||
temp = *toggle_;
|
||||
}
|
||||
bool temp;
|
||||
temp = *toggle_;
|
||||
if (temp) {
|
||||
activatedCheat = text_;
|
||||
processFileOn(activatedCheat);
|
||||
|
||||
Reference in new issue
Block a user