Skip to content

Commit 8d21ac1

Browse files
Fri 20 Dec 2019 12:11:06 EST - preparing for v1.7
1 parent 21c5c08 commit 8d21ac1

File tree

12 files changed

+269
-119
lines changed

12 files changed

+269
-119
lines changed

.DS_Store

0 Bytes
Binary file not shown.

Emulators/handy-go/sdkconfig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ CONFIG_MONITOR_BAUD=115200
8383
#
8484
# Retro ESP32 Configuration
8585
#
86-
CONFIG_LCD_DRIVER_CHIP_ODROID_GO=y
87-
CONFIG_LCD_DRIVER_CHIP_RETRO_ESP32=
88-
CONFIG_DEFAULT_MENU_KEY=y
89-
CONFIG_COMBO_MENU_KEY=
86+
CONFIG_LCD_DRIVER_CHIP_ODROID_GO=
87+
CONFIG_LCD_DRIVER_CHIP_RETRO_ESP32=y
88+
CONFIG_DEFAULT_MENU_KEY=
89+
CONFIG_COMBO_MENU_KEY=y
9090
CONFIG_IN_GAME_MENU_YES=y
9191
CONFIG_IN_GAME_MENU_NO=
9292

Firmware/Releases/odroid-go.zip

-2.33 MB
Binary file not shown.
6.25 KB
Binary file not shown.

Firmware/Releases/retro-esp.zip

-2.33 MB
Binary file not shown.

Launchers/retro-esp32-beta/main/main.c

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -904,14 +904,14 @@
904904
strcat(&path[strlen(path) - 1],folder_path);
905905
strcpy(ROM.path, path);
906906

907-
DIR *directory = opendir(path);
908-
907+
DIR *directory = opendir(path);
908+
909909
if(directory == NULL) {
910910
draw_mask(0,132,320,10);
911911
char message[100] = "rom folder not found";
912912
int center = ceil((320/2)-((strlen(message)*5)/2));
913913
draw_text(center,134,message,false,false);
914-
} else {
914+
} else {
915915
struct dirent *file;
916916
while ((file = readdir(directory)) != NULL) {
917917
int rom_length = strlen(file->d_name);
@@ -923,7 +923,7 @@
923923
}
924924
ROMS.pages = ROMS.total/ROMS.limit;
925925
if(ROMS.offset > ROMS.total) { ROMS.offset = 0;}
926-
closedir(directory);
926+
closedir(directory);
927927
}
928928

929929
draw_mask(0,132,320,10);
@@ -938,7 +938,7 @@
938938

939939
void seek_files() {
940940
free(FILES);
941-
FILES = (char**)malloc(ROMS.limit * sizeof(void*));
941+
FILES = (char**)malloc(ROMS.limit * sizeof(void*));
942942

943943
///*
944944
printf("\n-----------");
@@ -949,20 +949,20 @@
949949
printf("\nROMS.pages:%d", ROMS.pages);
950950
printf("\n-----------");
951951
printf("\n");
952-
//*/
952+
//*/
953953

954954
char path[256] = "/sd/roms/";
955955
strcat(&path[strlen(path) - 1], DIRECTORIES[STEP]);
956956
strcat(&path[strlen(path) - 1],folder_path);
957-
strcpy(ROM.path, path);
958-
959-
DIR *directory = opendir(path);
957+
strcpy(ROM.path, path);
958+
959+
DIR *directory = opendir(path);
960960

961961
if(directory == NULL) {
962962
char message[100] = "rom folder not found";
963963
int center = ceil((320/2)-((strlen(message)*5)/2));
964964
draw_text(center,134,message,false,false);
965-
} else {
965+
} else {
966966
rewinddir(directory);
967967
seekdir(directory, ROMS.offset);
968968
struct dirent *file;
@@ -985,11 +985,11 @@
985985
strcpy(FILES[n], dir);
986986
} else {
987987
strcpy(FILES[n], file->d_name);
988-
}
988+
}
989989
n++;
990990
}
991991
}
992-
closedir(directory);
992+
closedir(directory);
993993
}
994994
}
995995

@@ -1000,11 +1000,11 @@
10001000
ROMS.page = ROMS.offset/ROMS.limit;
10011001

10021002
seek_files();
1003-
1003+
10041004
for (int i = 0; i < 4; i++) draw_mask(0, y+(i*40)-6, 320, 40);
10051005

1006-
int limit = ROMS.total < ROMS.limit ? ROMS.total : ROMS.limit;
1007-
for(int n = 0; n < limit; n++) {
1006+
int limit = ROMS.total < ROMS.limit ? ROMS.total : ROMS.limit;
1007+
for(int n = 0; n < limit; n++) {
10081008
//printf("\n%d:%s", n, FILES[n]);
10091009
draw_text(x+24,y,FILES[n],true,n == 0 ? true : false);
10101010
bool directory = strcmp(&FILES[n][strlen(FILES[n]) - 3], "dir") == 0;

Launchers/retro-esp32-beta/sdkconfig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ CONFIG_MONITOR_BAUD=115200
8282
#
8383
# Retro ESP32 Configuration
8484
#
85-
CONFIG_LCD_DRIVER_CHIP_ODROID_GO=y
86-
CONFIG_LCD_DRIVER_CHIP_RETRO_ESP32=
87-
CONFIG_DEFAULT_MENU_KEY=y
88-
CONFIG_COMBO_MENU_KEY=
85+
CONFIG_LCD_DRIVER_CHIP_ODROID_GO=
86+
CONFIG_LCD_DRIVER_CHIP_RETRO_ESP32=y
87+
CONFIG_DEFAULT_MENU_KEY=
88+
CONFIG_COMBO_MENU_KEY=y
8989

9090
#
9191
# Partition Table

Launchers/retro-esp32-beta/sdkconfig.old

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ CONFIG_MONITOR_BAUD=115200
8282
#
8383
# Retro ESP32 Configuration
8484
#
85-
CONFIG_LCD_DRIVER_CHIP_ODROID_GO=y
86-
CONFIG_LCD_DRIVER_CHIP_RETRO_ESP32=
87-
CONFIG_DEFAULT_MENU_KEY=y
88-
CONFIG_COMBO_MENU_KEY=
85+
CONFIG_LCD_DRIVER_CHIP_ODROID_GO=
86+
CONFIG_LCD_DRIVER_CHIP_RETRO_ESP32=y
87+
CONFIG_DEFAULT_MENU_KEY=
88+
CONFIG_COMBO_MENU_KEY=y
8989

9090
#
9191
# Partition Table

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ void debounce(int key);
77
Text
88
*/
99
int get_letter(char letter);
10-
void draw_text(short x, short y, char *string, bool ext, bool current);
10+
void draw_text(short x, short y, char *string, bool ext, bool current, bool remove);
1111

1212
/*
1313
Mask
@@ -73,12 +73,15 @@ void draw_battery();
7373
void draw_speaker();
7474
void draw_contrast();
7575
void draw_numbers();
76+
void delete_numbers();
7677
void draw_launcher();
7778
void draw_launcher_options();
7879

7980
/*
8081
Files
8182
*/
83+
void count_files();
84+
void seek_files();
8285
void get_files();
8386
void sort_files(char** files);
8487
void draw_files();

0 commit comments

Comments
 (0)