Skip to content

Commit 21c5c08

Browse files
Thu 19 Dec 2019 17:12:30 EST - fixed #48 for next release
1 parent 4d522bb commit 21c5c08

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,4 @@
6363
#include "../sprites/logo.h"
6464
#include "../sprites/media.h"
6565
#include "../sprites/speaker.h"
66-
//#include "../sprites/systems.h"
6766
#include "../sprites/toggle.h"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
/*
3030
3131
*/
32-
#define MAX_FILES 4096
32+
#define MAX_FILES 8192
3333
#define MAX_LENGTH 64
3434

3535
/*

Launchers/retro-esp32/main/main.c

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515
bool RESTART = false;
1616
bool LAUNCHER = false;
1717
bool FOLDER = false;
18-
bool SPLASH = false;
18+
bool SPLASH = true;
1919
bool SETTINGS = false;
2020

2121
int8_t STEP = 0;
2222
int OPTION = 0;
2323
int PREVIOUS = 0;
2424
int32_t VOLUME = 0;
2525
int32_t BRIGHTNESS = 0;
26-
int32_t BRIGHTNESS_COUNT = 10;
27-
int32_t BRIGHTNESS_LEVELS[10] = {10,20,30,40,50,60,70,80,90,100};
26+
const int32_t BRIGHTNESS_COUNT = 10;
27+
const int32_t BRIGHTNESS_LEVELS[10] = {10,20,30,40,50,60,70,80,90,100};
2828
int8_t USER;
2929
int8_t SETTING;
3030
int8_t COLOR;
@@ -907,15 +907,13 @@
907907

908908
printf("\n----- %s -----", __func__);
909909
if(ROMS.total != 0) {
910-
printf("\nprevious ROMS.total:%d", ROMS.total);
911910
while(ROMS.total--) {
912911
free(FILES[ROMS.total]);
913912
if(ROMS.total == 0){
914913
free(FILES);
915914
break;
916915
}
917916
}
918-
printf("\ncurrent ROMS.total:%d", ROMS.total);
919917
}
920918
printf("\npath:%s", path);
921919

@@ -925,17 +923,14 @@
925923
sprintf(message, "unable to open %s directory", DIRECTORIES[STEP]);
926924
int center = ceil((320/2)-((strlen(message)*5)/2));
927925
draw_text(center,134,message,false,false);
928-
printf("\nopendir(%s):failed\nERR: %d\n", path, errno);
929926
return NULL;
930927
} else {
931928
if(directory == NULL) {
932-
printf("\nno files found in:\t%s", path);
933929
draw_mask(0,132,320,10);
934930
sprintf(message, "%s directory not found", DIRECTORIES[STEP]);
935931
int center = ceil((320/2)-((strlen(message)*5)/2));
936932
draw_text(center,134,message,false,false);
937933
} else {
938-
printf("\nfiles found in:\t%s", path);
939934
FILES = (char**)malloc(MAX_FILES * sizeof(void*));
940935
rewinddir(directory);
941936
struct dirent *file;
@@ -962,6 +957,7 @@
962957
}
963958
free(file);
964959
printf("\nnumber of files:\t%d", ROMS.total);
960+
printf("\nfree space:0x%x (%#08x)", esp_get_free_heap_size(), heap_caps_get_free_size(MALLOC_CAP_DMA));
965961
}
966962
free(directory);
967963
closedir(directory);
@@ -971,7 +967,7 @@
971967
if(ROMS.offset > ROMS.total) { ROMS.offset = 0;}
972968
draw_mask(0,132,320,10);
973969
if(ROMS.total != 0) {
974-
draw_files();
970+
//draw_files();
975971
} else {
976972
sprintf(message, "no %s roms available", DIRECTORIES[STEP]);
977973
int center = ceil((320/2)-((strlen(message)*5)/2));

0 commit comments

Comments
 (0)