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 3535/*
3636
3737*/
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 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 ;
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 -- ;
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 ++ ;
You can’t perform that action at this time.
0 commit comments