Skip to content

Commit

Permalink
Up to date with RG-300
Browse files Browse the repository at this point in the history
  • Loading branch information
bittboy committed Oct 19, 2019
1 parent f3a6681 commit d792182
Show file tree
Hide file tree
Showing 26 changed files with 138 additions and 333 deletions.
2 changes: 2 additions & 0 deletions simplemenu/output/config/config.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
732
#TIMEOUT
15
#CPU FREQ WHEN SLEEPING
200
81 changes: 0 additions & 81 deletions simplemenu/output/resources/c64/system.svg

This file was deleted.

Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 0 additions & 28 deletions simplemenu/output/resources/intellivision/theme.xml

This file was deleted.

Binary file removed simplemenu/output/resources/msx/background.png
Binary file not shown.
Binary file added simplemenu/output/resources/msx/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 0 additions & 53 deletions simplemenu/output/resources/msx/system.svg

This file was deleted.

29 changes: 0 additions & 29 deletions simplemenu/output/resources/msx/theme.xml

This file was deleted.

Binary file added simplemenu/output/resources/usb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file added simplemenu/output/resources/wonderswan/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 0 additions & 54 deletions simplemenu/output/resources/wonderswan/system.svg

This file was deleted.

29 changes: 0 additions & 29 deletions simplemenu/output/resources/wonderswan/theme.xml

This file was deleted.

4 changes: 4 additions & 0 deletions simplemenu/output/usb_mode_off.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
rmmod g_file_storage
mount /dev/mmcblk1p1 /media/mmcblk1p1

3 changes: 3 additions & 0 deletions simplemenu/output/usb_mode_on.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
umount /dev/mmcblk1p1
modprobe g_file_storage file=/dev/mmcblk1p1,/dev/mmcblk0p3 stall=0 removable=1
4 changes: 3 additions & 1 deletion simplemenu/src/headers/globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ int leftOrRightPressed;
int OC_UC;
int OC_NO;
int OC_OC;
int OC_SLEEP;

SDL_TimerID timeoutTimer;
int timeoutValue;
int isSuspended;
int isUSBMode;
int backlightValue;

struct MenuSection {
Expand All @@ -53,7 +55,7 @@ struct MenuSection {
struct MenuSection menuSections[50];

struct Favorite {
char name[100];
char name[300];
char emulatorFolder[200];
char executable[200];
char filesDirectory[200];
Expand Down
2 changes: 1 addition & 1 deletion simplemenu/src/headers/graphics.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ void initializeDisplay();
void refreshScreen();
void initializeFonts();
void freeResources();

void drawUSBScreen();
#endif
1 change: 1 addition & 0 deletions simplemenu/src/headers/logic.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ void determineStartingScreen(int sectionCount);
int getFirstNonHiddenSection(int sectionCount);
struct Favorite findFavorite(char *name);
void selectRandomGame();
void deleteCurrentGame();
#endif
2 changes: 2 additions & 0 deletions simplemenu/src/headers/system_logic.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ uint32_t suspend(uint32_t interval, void *param);
void initSuspendTimer();
void setBacklight(int level);
int getBacklight();
void resetTimeoutTimer();
uint32_t suspend(uint32_t interval, void *param);
#endif
4 changes: 3 additions & 1 deletion simplemenu/src/logic/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,10 @@ void loadConfig() {
OC_NO=atoi(line);
} else if (i==2){
OC_OC=atoi(line);
} else {
} else if (i==3){
timeoutValue=atoi(line);
} else {
OC_SLEEP=atoi(line);
}
i++;
}
Expand Down
Loading

0 comments on commit d792182

Please sign in to comment.