Skip to content

Commit

Permalink
List branch (#62)
Browse files Browse the repository at this point in the history
* Adding New Pocket Go

* Fixing relative size

* Pushing SDL_Color to graphics.c to keep the code generic

* Unused joystick

* Tidying stuff up

* Zooming Images to screen size

* setting height for 2devices that use 320x240

* Changing footer for full screen mode

* transparent footer

* Fixing resolution for console and managing smoothing

* Updating resources

* Fixing indentation

* Fixing full screen footer, adding the chance of not scaling and also
scaling logos correctly

* Fixing foter

* Adding better navigation in full screen mode using shoulder buttons

* Replacing images for rectangles, making fullscreen menu more compact and
making logos be shown when pressing shoulder buttons while in FS mode

* Better indication of total items per page, smaller fullscreen text,
darker fullsceen background and showing logo while roms load in the
background in fullscreen mode or hotkey mode

* first commit of the list branch

* Fixing memory leak

* Adding numbers in full screen mode and making it display 12 games
instead of 10

* Fixing favorites

* Restoring execution

* Setting 12 games per page when coming back to full screen and altering
full screen text view

* Fixing 12 games per page when comming back to full screen and altering
text alignment in that mode

* Fixing relative distance of text in full screen mode and ignoring
triggers in favorites in full screen mode

* Fixing how much text you can see in full screen

* Fixing bugs and tuning fullscreen mode letter box

* Better

* Changing alpha navigation in fullscren mode

* Fixing bugs

* Showing the logo before loading the games

* Fixing delete functionality

* Improving fullscreen menu appearance when deleting games

* Improving menu behavior in fullscreen mode

* more tweaks

* Keeping the strip roms state between sessions

* POC for only highlighting letters that exist in the current rom list

* Graying out letters in alpha nav, fullscreen

* Fixing seg fault when exiting if showing the menu

* Fixing showing favorites in the right spot, bad, bad code, but works

* List branch (#54)

* Universal dev (#49)

* Adding New Pocket Go

* Fixing relative size

* Pushing SDL_Color to graphics.c to keep the code generic

* Unused joystick

* Tidying stuff up

* Zooming Images to screen size

* setting height for 2devices that use 320x240

* Changing footer for full screen mode

* transparent footer

* Fixing resolution for console and managing smoothing

* Updating resources

* Fixing indentation

* Fixing full screen footer, adding the chance of not scaling and also
scaling logos correctly

* Fixing foter

* Adding better navigation in full screen mode using shoulder buttons

* Replacing images for rectangles, making fullscreen menu more compact and
making logos be shown when pressing shoulder buttons while in FS mode

* first commit of the list branch

* Fixing memory leak

* Adding numbers in full screen mode and making it display 12 games
instead of 10

* Fixing favorites

* Restoring execution

* Setting 12 games per page when coming back to full screen and altering
full screen text view

* Fixing 12 games per page when comming back to full screen and altering
text alignment in that mode

* Fixing relative distance of text in full screen mode and ignoring
triggers in favorites in full screen mode

* Fixing how much text you can see in full screen

* Fixing bugs and tuning fullscreen mode letter box

* Better

* Changing alpha navigation in fullscren mode

* Fixing bugs

* Showing the logo before loading the games

* Fixing delete functionality

* Improving fullscreen menu appearance when deleting games

* Improving menu behavior in fullscreen mode

* more tweaks

* Keeping the strip roms state between sessions

* POC for only highlighting letters that exist in the current rom list

* Graying out letters in alpha nav, fullscreen

* Fixing seg fault when exiting if showing the menu

* Fixing showing favorites in the right spot, bad, bad code, but works

* Fixing favrites bug, adding logo and imporving full screen mode

* no idea

* Making it fullscreen

* whatever

* List branch (#56)

* Universal dev (#49)

* Adding New Pocket Go

* Fixing relative size

* Pushing SDL_Color to graphics.c to keep the code generic

* Unused joystick

* Tidying stuff up

* Zooming Images to screen size

* setting height for 2devices that use 320x240

* Changing footer for full screen mode

* transparent footer

* Fixing resolution for console and managing smoothing

* Updating resources

* Fixing indentation

* Fixing full screen footer, adding the chance of not scaling and also
scaling logos correctly

* Fixing foter

* Adding better navigation in full screen mode using shoulder buttons

* Replacing images for rectangles, making fullscreen menu more compact and
making logos be shown when pressing shoulder buttons while in FS mode

* first commit of the list branch

* Fixing memory leak

* Adding numbers in full screen mode and making it display 12 games
instead of 10

* Fixing favorites

* Restoring execution

* Setting 12 games per page when coming back to full screen and altering
full screen text view

* Fixing 12 games per page when comming back to full screen and altering
text alignment in that mode

* Fixing relative distance of text in full screen mode and ignoring
triggers in favorites in full screen mode

* Fixing how much text you can see in full screen

* Fixing bugs and tuning fullscreen mode letter box

* Better

* Changing alpha navigation in fullscren mode

* Fixing bugs

* Showing the logo before loading the games

* Fixing delete functionality

* Improving fullscreen menu appearance when deleting games

* Improving menu behavior in fullscreen mode

* more tweaks

* Keeping the strip roms state between sessions

* POC for only highlighting letters that exist in the current rom list

* Graying out letters in alpha nav, fullscreen

* Fixing seg fault when exiting if showing the menu

* Fixing showing favorites in the right spot, bad, bad code, but works

* Fixing favrites bug, adding logo and imporving full screen mode

* no idea

* Making it fullscreen

* whatever

* tweaks

* Improving speed with less calls to getNthElement

* Fixing scroll down

* Fixing scroll up and down plus advance section

* More fixes when changing page and loading

* Fixing section switching

* Fixing favorites

* Fixing switching between fullscreen and menu mode

* Fixing random select

* Removing printfs

* Fixing coming in and out of favorites in different modes

* Fixing section switching in fullscreen mode

* Fixing reintroduced bug when switching sections in different modes

* Fixing section switching in fullscreen

* Fixing favorites

* Fixing favorites deletion

* Configurable media folder

* Increasing 10K limit to 50K and other small tweaks

* Adding favorites logo and new background

* (bad) initial check of if sections have games

* Adding simpleback

* removing check for no roms and allowing display of empty sections, to
make things faster

* Fixing loading of an empty section
Fixing launching an emulator without roms

* Fixing no sec switch in favs

* CHANGES

- config.cfg now an ini file
- font, logo background and fullscreen backgrunds now configurable
- png extension supported for pico8 files
- better speed when switching sections.
- empty sections now possible, displaying "no games"
- fullscreen background incorporated
- fixed bug when reordering section names

* Changes

- Changing config files names to match what they are
- Adding neo geo pocket color logo

* fixing rom name on screen when no picture

Co-authored-by: bittboy <bittboy@bittboy-pc>
  • Loading branch information
fgl82 and bittboy authored Mar 29, 2020
1 parent 26500d5 commit 91555c3
Show file tree
Hide file tree
Showing 29 changed files with 380 additions and 423 deletions.
4 changes: 4 additions & 0 deletions simplemenu/output/apps/20_pyclock.fgl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title=Clock
description=Clock, alarm, timer, calendar
exec=/usr/bin/pyclock
icon=skin:icons/pyclock.png
4 changes: 4 additions & 0 deletions simplemenu/output/apps/25_gmenu2x.fgl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title=Gmenu2x
description=Gmenu2x
exec=/usr/bin/gmenu2x
icon=skin:icons/reboot.png
12 changes: 0 additions & 12 deletions simplemenu/output/config/config.cfg

This file was deleted.

22 changes: 22 additions & 0 deletions simplemenu/output/config/config.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[GENERAL]
font = resources/akashi.ttf
media_folder = media

[MENU_MODE]
logo_background = resources/simpleback.png

[FULLSCREEN_MODE]
display_footer = 0
display_menu = 1
background = resources/back.png

[SYSTEM]
screen_timeout_in_seconds = 30
allow_shutdown = 0

[CPU]
underclocked_speed = 408
normal_speed = 702
overclocked_speed = 732
sleep_speed = 200
; Not used for RG-350 or New Pocket Go
19 changes: 0 additions & 19 deletions simplemenu/output/config/last_state.cfg

This file was deleted.

22 changes: 22 additions & 0 deletions simplemenu/output/config/last_state.sav
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
1;
1;
0;
0;0;0;0
1;0;0;0
2;0;0;0
3;0;0;0
4;0;0;0
5;0;0;0
6;0;0;0
7;0;0;0
8;0;0;0
9;0;0;0
10;0;0;0
11;0;0;0
12;0;0;0
13;0;0;0
14;0;0;0
15;0;0;0
16;0;0;0
17;0;0;0
18;0;0;0
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[CONSOLES]
consoleList = GAME BOY,GAME BOY COLOR,GAME BOY ADVANCE,GAME BOY,GAME BOY COLOR,GAME BOY ADVANCE,NES,SNES,GAME GEAR,MASTER SYSTEM,SEGA GENESIS,PLAYSTATION,PC ENGINE,NEO GEO POCKET,NEO GEO POCKET COLOR,NEO-GEO,ARCADE,FINAL BURN ALPHA,WONDERSWAN,GAMES,APPS
consoleList = GAME BOY,GAME BOY COLOR,GAME BOY ADVANCE,NES,SNES,GAME GEAR,MASTER SYSTEM,SEGA GENESIS,PLAYSTATION,PC ENGINE,NEO GEO POCKET,NEO GEO POCKET COLOR,NEO-GEO,ARCADE,FINAL BURN ALPHA,WONDERSWAN,GAMES,APPS

[GAME BOY]
execDirs = /media/data/apps/
Expand Down Expand Up @@ -276,7 +276,7 @@ onlyFileNamesNoPathOrExtension = no
[APPS]
execDirs = /usr/bin/
execs = #
romDirs = /media/home/.simplemenu/scripts/,/media/data/apps/
romDirs = /media/home/.simplemenu/apps/,/media/data/apps/
romExts = .opk,.fgl
headerBackGround = 2e6a9e
headerFont = FFFFFF
Expand Down
17 changes: 8 additions & 9 deletions simplemenu/output/make_opk.sh
Original file line number Diff line number Diff line change
@@ -1,33 +1,32 @@
#!/bin/sh

OPK_NAME='simplemenu.opk'
OPK_NAME='SimpleMenu.opk'

echo ${OPK_NAME}

# create default.gcw0.desktop
cat > default.gcw0.desktop <<EOF
[Desktop Entry]
Name=SimpleMenu
Comment=A sensible launcher
Exec=simplemenu.dge
Comment=A simple launcher
Exec=simplemenu
Terminal=false
Type=Application
StartupNotify=false
Icon=smenu
Icon=simplemenu
Categories=applications;
EOF

# create opk
FLIST="simplemenu.dge"
chmod 777 simplemenu
FLIST="simplemenu"
FLIST="${FLIST} invoker.dge"
FLIST="${FLIST} frontend_start"
FLIST="${FLIST} usb_mode_on.sh"
FLIST="${FLIST} usb_mode_off.sh"
FLIST="${FLIST} resources"
FLIST="${FLIST} scripts"
FLIST="${FLIST} config"
FLIST="${FLIST} apps"
FLIST="${FLIST} default.gcw0.desktop"
FLIST="${FLIST} smenu.png"
FLIST="${FLIST} simplemenu.png"

rm -f ${OPK_NAME}
mksquashfs ${FLIST} ${OPK_NAME} -all-root -no-xattrs -noappend -no-exports
Expand Down
Binary file modified simplemenu/output/resources/back.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 removed simplemenu/output/resources/ngpc/background.png
Binary file not shown.
Binary file added simplemenu/output/resources/ngpc/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
95 changes: 0 additions & 95 deletions simplemenu/output/resources/ngpc/system.svg

This file was deleted.

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

This file was deleted.

1 change: 0 additions & 1 deletion simplemenu/output/resources/scripts/logo.svg

This file was deleted.

Binary file added simplemenu/output/resources/simpleback.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 removed simplemenu/output/resources/transback.png
Binary file not shown.
Binary file removed simplemenu/output/resources/transback1.png
Binary file not shown.
3 changes: 2 additions & 1 deletion simplemenu/pc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh
make clean
make PLATFORM=PC
cd output
./simplemenu.dge
./simplemenu
cd ..
2 changes: 1 addition & 1 deletion simplemenu/rg
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ make clean
make PLATFORM=RG-350
cd output
./make_opk.sh
scp simplemenu.opk root@10.1.1.2:/media/data/apps
scp SimpleMenu.opk root@10.1.1.2:/media/data/apps
11 changes: 9 additions & 2 deletions simplemenu/src/headers/globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@

int running;

char mediaFolder[100];
int MAX_GAMES_IN_SECTION;

char mediaFolder[1000];
char simpleBackground[1000];
char fullscreenBackground[1000];
char menuFont[1000];

int itsStoppedBecauseOfAnError;
char *errorMessage;
Expand All @@ -35,6 +40,8 @@ int currentlySectionSwitching;
int currentlyChoosingEmulator;
int stripGames;
int shutDownEnabled;
int footerVisibleInFullscreenMode;
int menuVisibleInFullscreenMode;
int loading;

int OC_UC;
Expand Down Expand Up @@ -105,7 +112,7 @@ struct MenuSection {
};


struct MenuSection menuSections[50];
struct MenuSection menuSections[100];

struct OPKDesktopFile {
char parentOPK[200];
Expand Down
Loading

0 comments on commit 91555c3

Please sign in to comment.