Commit graph

2504 commits

Author SHA1 Message Date
Jools Wills
439d0c69fc fix menu on/off processing (don't overwrite menu variable) 2014-07-15 18:48:33 +01:00
Jools Wills
bdbdc0c905 rework the main sources/setup menus so that the control for the menus is configured in retropie_packages. This allows for considerable
de-duplication, and new packages can be added without having to manually add menu entries for them.

retropie_setup.sh calls retropie_packages with the parameter init, to load the arrays with the package information. this will also
allow some de-duplication of start up code between these two scripts later.

the rp_registerFunction now takes an additional parameter after the description which is in the format

I+command

where I= the menu you want it to appear in (2=source menu, 3=setup menu)
+ or - says whether the item will be enabled or disabled by default (for the source menus which uses checkboxes)
command is optional and sets the default command to pass to retropie_packages when building. for example in the setup menu
some options use "configure".

you can add multiple menu entries. eg for SNESDev to appear in the sources menu as well as setup menu, you could use

"2+ 3+configure"

in the sources menu it would download/build/install and in the setup menu it would just configure

the next step with this could besplit/separate out the packages to their own modules and have them dynamically included, so it is even easier to add new items without
having to edit the large cumbersome rp_registerFunction list
2014-07-15 18:35:58 +01:00
Florian
afb8357c1a Merge pull request #368 from joolswills/info
rather than printing "getting sources/building/configuring/etc" for ever...
2014-07-15 18:49:07 +02:00
Jools Wills
f85fd9d3c2 rather than printing "getting sources/building/configuring/etc" for every single package, handle it in retro_packages.sh
automatically. This allows for some de-duplication and more consistent output. Also handle it from a function which allows
for some more compact code in retropie_packages.sh
2014-07-15 16:22:16 +01:00
Florian
6a82eee4ab Fixed download of RetroPie binaries 2014-07-14 19:45:36 +02:00
Jools Wills
422696e13e rather than world writable files, chown to $user.
no need to use install command for copying individual files
2014-07-14 18:09:06 +01:00
Jools Wills
04e50b2627 should be chmod +x not chown +x 2014-07-14 18:02:03 +01:00
Florian
ed7f062313 Merge pull request #366 from joolswills/fixes
fixed - typo - missing space in advmame configure script.oops
2014-07-14 18:20:22 +02:00
Jools Wills
44a332199a delete root .advance / $user/.advance folders before generating default config and moving. no need to chmod, just chown to pi user 2014-07-14 16:28:49 +01:00
Jools Wills
6041d0c498 fixed - typo - missing space in advmame configure script.oops 2014-07-14 16:15:55 +01:00
Jools Wills
586cd00021 error reporting was broken - first of all if using retropie_packages.sh manually from the commandline no errors set in $__ERRMSGS were ever displayed.
The second problem was any variables set by the retropie_packages.sh script was lost when run via "source" due to the pipe forcing it to be run in a sub-process.
if we switch to use process substitution this seems to fix it.
2014-07-13 20:39:33 +01:00
Jools Wills
327192ba02 chmod +777 is not valid. we don't want world writable files anyway, so chown to the correct user/group 2014-07-13 19:55:36 +01:00
Jools Wills
cf66f7aae1 there is no platform=rpi in the makefile for cavestory, and with that parameter it builds a dll rather than a .so in my chroot environment 2014-07-13 19:39:25 +01:00
Jools Wills
0fd9527dc8 google code does not like shallow git checkouts (fatal: expected shallow/unshallow, gotError: internal server error). Add NS option (no shallow) for google hosted repositories 2014-07-13 19:27:32 +01:00
Jools Wills
81cc19dbe1 grep needs the hyphen quoted or it will throw an error thinking it is a parameter 2014-07-13 18:42:11 +01:00
Florian
197810af56 Disabled RetroArch Hotkey per default 2014-07-13 19:34:37 +02:00
Florian
4e48f47db2 Merge pull request #359 from exobuzz/de-duplication
De duplication
2014-07-13 19:34:03 +02:00
Jools Wills
688d9e6a43 sed in place for advancemame changes
no need to split sed onto multiple lines (and it makes it no more readable in this case imho)
2014-07-13 18:27:59 +01:00
Jools Wills
ff9d6a565a no need to keep switching around default gcc versions - just pass the correct environment variable directly to make/configure 2014-07-13 18:23:53 +01:00
Jools Wills
ea39fbd21b test if we are in a chroot and set __chroot accordingly and identify as arm6l - skip memory check if in chroot environment 2014-07-13 16:18:46 +01:00
Jools Wills
33214026a6 de-duplicate mame4all folder creation / ownership (chown rather than making files world writable) 2014-07-13 16:08:17 +01:00
Jools Wills
13436bedf9 we can do a single chown for all roms/esconfig files 2014-07-13 15:49:13 +01:00
Jools Wills
66b96548dd send OPT_FLAGS directly to make - no need to create a patchfile/patch etc 2014-07-13 15:45:06 +01:00
Jools Wills
2e046d762b de-duplicate / make function for checking if dir exists and deleting. 2014-07-13 15:40:31 +01:00
Jools Wills
e7e16d309c use loop for /etc/modules checking 2014-07-13 15:26:04 +01:00
Jools Wills
b24cabcd3e simplify copying of python scripts for esconfig 2014-07-13 15:23:29 +01:00
Florian
029278edf6 Added Megadrive emulator DGEN 2014-07-13 11:32:51 +02:00
Jools Wills
5ce5f33719 cosmetic - script files contain mix of spaces/tabs indentation and trailing whitespace. convert tabs->spaces and strip trailing whitespace 2014-07-12 15:05:15 +01:00
fedoracooper
ebfc73c6a8 Fixing mame4all-pi permissions to allow world-writeable subdirectories 2014-07-10 16:22:31 -04:00
Florian
64cb89145e Updated permissions for GPSP, NXEngine,updates for ES-Config 2014-07-09 20:45:29 +02:00
Florian
dc72c4db12 Updated permissions for /opt/retropie/configs/ 2014-07-06 14:21:43 +02:00
Florian
0fb160c7eb Added ES-Config and gamecon driver 2014-07-05 19:31:56 +02:00
Florian
ffd26e1e39 Added MSX to SAMBA shares, fixed BIOS share 2014-07-05 17:49:12 +02:00
Florian
a2232ba1b1 Refactored global variables 2014-07-05 17:44:39 +02:00
Florian
01836c68da Changed permission of configs/all/retroarch.cfg to 777 2014-07-05 10:20:18 +02:00
Florian
58e1adf1bd Merge pull request #347 from dem1980/patch-1
MAME4All save config
2014-07-05 10:12:31 +02:00
dem1980
0f4b4baf15 RetroArch shaders c are not saved 2014-07-05 10:09:44 +02:00
Florian
8cf0f2266c Minor fix for Retroarch-core option setting 2014-07-05 10:07:33 +02:00
dem1980
ebafb5afb1 MAME4All save config
When you enter in the config menu of MAME4All with TAB for remapping keys for example, when you left MAME4All and come back, the config was not update.
With chmod 777, user pi can now save this file.
2014-07-05 10:06:25 +02:00
Florian
19458d9bab Added retroarch-core-options.cfg 2014-07-05 10:01:25 +02:00
Florian
1bb186b1e0 Updated ROMs directories and es_systems.cfg 2014-07-05 01:22:29 +02:00
Florian
52d893e280 Updated gitPullOrClone function (issue #345) 2014-07-04 16:52:56 +02:00
Florian
8457cf7c16 Added overscan_scale=1 to ES configuration 2014-07-03 22:48:24 +02:00
Florian
026d723fd8 Fixed imame4all-rpi rom dir configuration (issue #336) 2014-07-03 18:29:10 +02:00
Florian
4817f253be Updated SAMBA configuration 2014-07-03 07:15:35 +02:00
Florian
4869c19a99 Updated SAMBA configuration 2014-07-03 07:04:50 +02:00
Florian
c0ee96176b Fixed segacd, sega32x configuration 2014-07-03 07:03:39 +02:00
Florian
f0199e272a Updated RetroPie-Setup Script mit Mednafen PCE Fast 2014-07-02 21:04:36 +02:00
Florian
02bc6b696a Added Mednafen PCE Fast 2014-07-02 21:01:44 +02:00
Florian
3de42ba5f1 Updated Theme Simple installation 2014-07-02 18:52:06 +02:00