Skip to content

Commit 4d522bb

Browse files
Thu 19 Dec 2019 16:27:44 EST - fixed #48 for next release
1 parent 9e88f4e commit 4d522bb

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

Launchers/retro-esp32/main/includes/definitions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@
3535
/*
3636
3737
*/
38-
#define BUILD "Version 1 Build 6 (v.1.6)"
38+
#define BUILD "Version 1 Build 7 (v.1.7)"

Launchers/retro-esp32/main/main.c

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@
13311331
*/
13321332
if(gamepad.values[ODROID_INPUT_LEFT]) {
13331333
if(!LAUNCHER && !FOLDER) {
1334-
if(SETTING != 2 && SETTING != 3) {
1334+
if(!SETTINGS && SETTING != 1 && SETTING != 2 && SETTING != 3) {
13351335
STEP--;
13361336
if( STEP < 0 ) {
13371337
STEP = COUNT - 1;
@@ -1340,6 +1340,15 @@
13401340
ROMS.offset = 0;
13411341
animate(-1);
13421342
} else {
1343+
if(SETTING == 1) {
1344+
nvs_handle handle;
1345+
nvs_open("storage", NVS_READWRITE, &handle);
1346+
nvs_set_i8(handle, "COLOR", 0);
1347+
nvs_commit(handle);
1348+
nvs_close(handle);
1349+
draw_toggle();
1350+
draw_systems();
1351+
}
13431352
if(SETTING == 2) {
13441353
if(VOLUME > 0) {
13451354
VOLUME--;
@@ -1364,14 +1373,23 @@
13641373
*/
13651374
if(gamepad.values[ODROID_INPUT_RIGHT]) {
13661375
if(!LAUNCHER && !FOLDER) {
1367-
if(SETTING != 2 && SETTING != 3) {
1376+
if(!SETTINGS && SETTING != 1 && SETTING != 2 && SETTING != 3) {
13681377
STEP++;
13691378
if( STEP > COUNT-1 ) {
13701379
STEP = 0;
13711380
}
13721381
ROMS.offset = 0;
13731382
animate(1);
13741383
} else {
1384+
if(SETTING == 1) {
1385+
nvs_handle handle;
1386+
nvs_open("storage", NVS_READWRITE, &handle);
1387+
nvs_set_i8(handle, "COLOR", 1);
1388+
nvs_commit(handle);
1389+
nvs_close(handle);
1390+
draw_toggle();
1391+
draw_systems();
1392+
}
13751393
if(SETTING == 2) {
13761394
if(VOLUME < 4) {
13771395
VOLUME++;

0 commit comments

Comments
 (0)