Skip to content

Commit 433564c

Browse files
committed
Thu Jun 25 14:51:26 EDT 2020 - clean up
1 parent ace614a commit 433564c

File tree

2 files changed

+0
-68
lines changed

2 files changed

+0
-68
lines changed

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,6 @@ void sort_files(char** files);
100100
void draw_files();
101101
void has_save_file(char *save_name);
102102

103-
/*
104-
File Manager
105-
*/
106-
void create_games_file(char *emulator);
107-
void read_games_file(char *emulator);
108-
void add_games(char *emulator, char *game);
109-
110103
/*
111104
Favorites
112105
*/

Launchers/retro-esp32/main/main.c

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,8 +1182,6 @@
11821182
if(extenstion || (file->d_type == 2)) {
11831183
SEEK[ROMS.total+1] = telldir(directory);
11841184
ROMS.total++;
1185-
1186-
//add_games(EXTENSIONS[STEP], file->d_name);
11871185
}
11881186
}
11891187
free(file);
@@ -1283,7 +1281,6 @@
12831281
}
12841282

12851283
void get_files() {
1286-
//create_games_file(DIRECTORIES[STEP]);
12871284
delete_numbers();
12881285
count_files();
12891286
seek_files();
@@ -1356,64 +1353,6 @@
13561353
}
13571354
//}#pragma endregion Files
13581355

1359-
//{#pragma region File Manager
1360-
char** GAMES;
1361-
void create_games_file(char *emulator) {
1362-
printf("\n----- %s(%s) START -----", __func__, emulator);
1363-
char file[256] = "/sd/odroid/data";
1364-
sprintf(file, "%s/%s", file, RETROESP_FOLDER);
1365-
sprintf(file, "%s/%s.txt", file, emulator);
1366-
1367-
struct stat st; if (stat(file, &st) == 0) {unlink(file);}
1368-
1369-
FILE *f;
1370-
f = fopen(file, "rb");
1371-
if(f == NULL) {
1372-
f = fopen(file, "w+");
1373-
// printf("\nCREATING: %s", file);
1374-
} else {
1375-
read_favorites();
1376-
}
1377-
// printf("\nCLOSING: %s", file);
1378-
fclose(f);
1379-
printf("\n----- %s END -----", __func__);
1380-
}
1381-
1382-
void read_games_file(char *emulator) {
1383-
printf("\n----- %s START -----", __func__);
1384-
char file[256] = "/sd/odroid/data";
1385-
sprintf(file, "%s/%s", file, RETROESP_FOLDER);
1386-
sprintf(file, "%s/%s.txt", file, emulator);
1387-
1388-
FILE *f;
1389-
f = fopen(file, "rb");
1390-
if(f) {
1391-
// printf("\nREADING: %s\n", file);
1392-
char line[256];
1393-
while (fgets(line, sizeof(line), f)) {
1394-
char *ep = &line[strlen(line)-1];
1395-
while (*ep == '\n' || *ep == '\r'){*ep-- = '\0';}
1396-
printf("\n%s", line);
1397-
}
1398-
}
1399-
fclose(f);
1400-
1401-
printf("\n----- %s END -----", __func__);
1402-
}
1403-
1404-
void add_games(char *emulator, char *game) {
1405-
printf("\n----- %s START -----", __func__);
1406-
1407-
char file[256] = "/sd/odroid/data";
1408-
sprintf(file, "%s/%s", file, RETROESP_FOLDER);
1409-
sprintf(file, "%s/%s.txt", file, emulator);
1410-
1411-
printf("%s\n", game);
1412-
1413-
printf("\n----- %s END -----", __func__);
1414-
}
1415-
//}#pragma endregion File Manager
1416-
14171356
//{#pragma region Favorites
14181357
void create_favorites() {
14191358
// printf("\n----- %s START -----", __func__);

0 commit comments

Comments
 (0)