File tree Expand file tree Collapse file tree 2 files changed +21
-3
lines changed
Launchers/retro-esp32/main Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 35
35
/*
36
36
37
37
*/
38
- #define BUILD "Version 1 Build 6 (v.1.6 )"
38
+ #define BUILD "Version 1 Build 7 (v.1.7 )"
Original file line number Diff line number Diff line change 1331
1331
*/
1332
1332
if (gamepad .values [ODROID_INPUT_LEFT ]) {
1333
1333
if (!LAUNCHER && !FOLDER ) {
1334
- if (SETTING != 2 && SETTING != 3 ) {
1334
+ if (! SETTINGS && SETTING != 1 && SETTING != 2 && SETTING != 3 ) {
1335
1335
STEP -- ;
1336
1336
if ( STEP < 0 ) {
1337
1337
STEP = COUNT - 1 ;
1340
1340
ROMS .offset = 0 ;
1341
1341
animate (-1 );
1342
1342
} 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
+ }
1343
1352
if (SETTING == 2 ) {
1344
1353
if (VOLUME > 0 ) {
1345
1354
VOLUME -- ;
1364
1373
*/
1365
1374
if (gamepad .values [ODROID_INPUT_RIGHT ]) {
1366
1375
if (!LAUNCHER && !FOLDER ) {
1367
- if (SETTING != 2 && SETTING != 3 ) {
1376
+ if (! SETTINGS && SETTING != 1 && SETTING != 2 && SETTING != 3 ) {
1368
1377
STEP ++ ;
1369
1378
if ( STEP > COUNT - 1 ) {
1370
1379
STEP = 0 ;
1371
1380
}
1372
1381
ROMS .offset = 0 ;
1373
1382
animate (1 );
1374
1383
} 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
+ }
1375
1393
if (SETTING == 2 ) {
1376
1394
if (VOLUME < 4 ) {
1377
1395
VOLUME ++ ;
You can’t perform that action at this time.
0 commit comments