More consistent capitalisation in settings
This commit is contained in:
parent
27c8df10b9
commit
33d85e4bd8
2 changed files with 8 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
||||||
circlePad: joystick
|
Circle Pad: JOYSTICK
|
||||||
touch: mouse
|
Touch: MOUSE
|
||||||
A: A
|
A: A
|
||||||
B: B
|
B: B
|
||||||
X: X
|
X: X
|
||||||
|
|
|
@ -79,13 +79,13 @@ bool readSettings(void) {
|
||||||
|
|
||||||
char setting[64] = { '\0' };
|
char setting[64] = { '\0' };
|
||||||
|
|
||||||
getSetting("circlePad: ", buffer, setting);
|
getSetting("Circle Pad: ", buffer, setting);
|
||||||
if(strcmp(setting, "mouse") == 0) settings.circlePad = mouse;
|
if(strcmp(setting, "MOUSE") == 0) settings.circlePad = mouse;
|
||||||
else if(strcmp(setting, "joystick") == 0) settings.circlePad = joystick;
|
else if(strcmp(setting, "JOYSTICK") == 0) settings.circlePad = joystick;
|
||||||
|
|
||||||
getSetting("touch: ", buffer, setting);
|
getSetting("Touch: ", buffer, setting);
|
||||||
if(strcmp(setting, "mouse") == 0) settings.touch = mouse;
|
if(strcmp(setting, "MOUSE") == 0) settings.touch = mouse;
|
||||||
else if(strcmp(setting, "joystick") == 0) settings.touch = joystick;
|
else if(strcmp(setting, "JOYSTICK") == 0) settings.touch = joystick;
|
||||||
|
|
||||||
if(getSetting("A: ", buffer, setting)) settings.A = getButton(setting);
|
if(getSetting("A: ", buffer, setting)) settings.A = getButton(setting);
|
||||||
if(getSetting("B: ", buffer, setting)) settings.B = getButton(setting);
|
if(getSetting("B: ", buffer, setting)) settings.B = getButton(setting);
|
||||||
|
|
Loading…
Add table
Reference in a new issue