Commit graph

392 commits

Author SHA1 Message Date
Jools Wills
726a49f509 configure the per system shader configs in ensureSystemretroconfig - this de-duplicates a bunch of code 2015-03-10 17:48:49 +00:00
Jools Wills
db738e8c38 fix input_remapping_directory path 2015-03-10 17:29:11 +00:00
Jools Wills
2e2d2cf701 missing $ 2015-03-10 16:17:14 +00:00
Jools Wills
fd3f6ac263 user emulators.cfg rather than apps.cfg as it's more intuitive for users 2015-03-10 15:59:44 +00:00
Jools Wills
df3f6d068d preserve file permissions/ownership when making .bak file in addLineToFile 2015-03-10 15:47:40 +00:00
Jools Wills
1840cd3269 cleanup ensureSystemretroconfig 2015-03-10 15:47:07 +00:00
Jools Wills
f11df8a521 remove trailing spaces 2015-03-10 14:56:56 +00:00
Jools Wills
6a378501c0 iniGet needs to match from start of line in helpers function too 2015-03-10 00:30:47 +00:00
Jools Wills
13eb2f3515 removed left over debugging (again) 2015-03-09 19:39:15 +00:00
Jools Wills
c4275816f2 really fix the keys for updating es xml 2015-03-09 18:49:31 +00:00
Jools Wills
1d5698e1e0 wrong key for xml editing
allow 3 name parameters in addSystem (system platform and theme). platform and theme being optional (defaulting to system), and separated by spaces
fullname variable name fix
2015-03-09 17:55:00 +00:00
Jools Wills
f8c6fd2316 support including a different platform in addSystem for cases like mame/fba which should use the emulationstation "arcade" platform 2015-03-09 16:54:29 +00:00
Jools Wills
e388c63e4a use fullname rather than name 2015-03-09 13:54:17 +00:00
Jools Wills
2330590a78 allow setting of platform name / extensions in platforms.cfg and via addSystem - so we don't have to duplicate extensions everywhere. Even though different emulators
for a single platform may support different extensions, we only have a single entry in emulationstation.

allow a user to override platforms.cfg in /opt/retropie/configs/all/platforms.cfg (to add their own file extensions)

clean up defaults for snes (pi1 default is picodrive, pi2 is snes9x-next)
2015-03-09 13:13:53 +00:00
Jools Wills
bf81b0ee09 remove debug line 2015-03-09 12:16:57 +00:00
Jools Wills
8100969926 fixed rom dir (uses system not module id) 2015-03-09 12:16:11 +00:00
Jools Wills
1bb0c5da8c replaced ESConfigEdit with xmlstarlet code - easier to manage in one place, and it only requires a little bit of logic 2015-03-09 12:14:41 +00:00
Jools Wills
f54c850653 simplify parameters for runcommand for automatic commandline selection 2015-03-09 10:18:24 +00:00
Jools Wills
54d65636f8 functions for adding emulators/system configs 2015-03-09 09:55:24 +00:00
gizmo98
240a532fd0 Modify ensureSystemConfig for old retroarch.cfgs
-add #include $configdir/all/retroarch.cfg to core specific retroarch.cfg if missing.
-set default core specific settings here.
2015-02-26 18:23:44 +01:00
Jools Wills
0813679196 redirect dialog output for msgbox in PrintMsgs to /dev/tty to avoid the problem with dialogs appearing at the top left (and in stdout/logfiles) 2015-02-26 03:42:48 +00:00
gizmo98
a5c1fd652c RetroArch.cfg: include common retroarch.cfg in all system specific retroarch.cfgs
So we „can“ get rid of —appendconfig. Command string is more neat
without appendconfig.
2015-02-23 17:56:09 +01:00
Jools Wills
91542b41f8 handle installing of our custom libsdl2 packages in the helper to simplify module dependencies 2015-02-22 02:06:18 +00:00
Jools Wills
8be6fa7171 no need for /g in iniGet 2015-02-21 19:44:42 +00:00
Jools Wills
321aa1f2b9 added iniGet function to read values from config files 2015-02-21 19:30:50 +00:00
Jools Wills
e63176d4f0 update copyright date 2015-02-21 17:03:46 +00:00
Jools Wills
150ed05ef7 do not print errors inside getDepends - as else we will be duplicating error messages 2015-02-15 21:13:44 +00:00
Jools Wills
56ecb32e56 use md_ret_errors to handle errors from inside a module (and helper functions called from modules). dependency errors will now be handled properly. 2015-02-15 20:40:26 +00:00
Jools Wills
49bdb68955 rework of message / error handling:
* use arrays for info/error messages
 * create a helper function to print our information to console/dialog etc
 * rename prebious printMsg to printHeading
 * fix for duplication of error messages in rp_callModule
2015-02-15 20:28:02 +00:00
Jools Wills
f6a70903c1 do not exit 1 in getDepends - return a value instead 2015-02-15 19:52:24 +00:00
Jools Wills
51534e8a42 lots of emulators benefit from the 320x240 mode configured by snes9x (when not using the dispmanx sdl - which has it's own problems - one being it can introduce performance issues due to the forced vsync).
instead of adding it for each emulator that can use it, let's just set it by default.
2015-02-15 02:20:48 +00:00
Jools Wills
aabe641a83 fix the iniSetting where we have a space delimiter and we have keys like display_resize/display_resizeeffect as the former would have matched the latter due to the stripping of the delimiter for fussy matching of existing keys 2015-02-11 19:20:58 +00:00
Jools Wills
b82d9c6fae rather than the hack to reset platform for rpi2 back to rpi, let's use rpi1 and rpi2, but make isPlatform rpi match both. This allows us to easily do logic so choices can be made for either or both models. 2015-02-07 17:41:02 +00:00
Jools Wills
453c5b8f41 mkdir if it doesn't exist in setDispmanx 2015-02-06 19:11:22 +00:00
Jools Wills
f9fc180419 modify getDepends to force installing our custom libsdl1.2 for the rpi 2015-02-06 01:56:17 +00:00
Jools Wills
c51fbb0ffe function ordering 2015-01-28 03:18:51 +00:00
Jools Wills
7c71277f7c get rid of fancy permissions for the rom directory structure - let's just have it owned by $user:$user 2015-01-28 00:50:32 +00:00
Jools Wills
9bc97ffd95 chown the retro arch configs directory (recursively) after creating initial file 2015-01-26 21:38:30 +00:00
Jools Wills
cbe13ddeaf the initial system configurations for retroarch should be done by each module, rather than in the retroarch module. 2015-01-26 21:35:01 +00:00
Jools Wills
c3aa86b2ec remove not very useful NS parameter for google git repositories and make the helper do this automatically.
add support for cloning a specific branch - which is more more useful parameter :)
2015-01-13 20:54:57 +00:00
Jools Wills
4bc1e36d86 added helper function for setting dispmanx config 2015-01-13 16:34:38 +00:00
Jools Wills
5b986ec7e9 let's not be overly dramatic :) Fatal Error -> Error 2015-01-12 13:51:57 +00:00
Jools Wills
bbaaad975c various fixes based on recommendations from shellcheck
changed order of retronetplay module so functions can be found
2015-01-11 21:26:10 +00:00
Jools Wills
b84162f9e7 styleguide changes:
* functions to function () {
2015-01-11 18:03:12 +00:00
Jools Wills
afa61f58a0 styleguide changes:
* some errors fixed from previous styleguide fixes
 * some missed [ ]
2015-01-11 17:28:57 +00:00
Jools Wills
81fdba97fc styleguide changes:
* [[ "a" == "" ]] -> [[ -z "a" ]]
2015-01-11 17:15:36 +00:00
Jools Wills
641178f761 styleguide changes:
* [ ] -> [[ ]]
  * [ a = b ] -> [[ a == b ]]

note asplashscreen script left with [ ] as it doesn't specify bash directory
2015-01-11 17:11:11 +00:00
Jools Wills
3982eb4ed5 added isPlatform helper function and an example usage in sdl2 2015-01-08 22:04:49 +00:00
Jools Wills
6e1fef7813 added support for !platform flag to hide/disable a module for a specific platform
fix up / change logic in rp_callModule so you can't call modules that are not supported for a platform
add checkFlag function to simplify checking for a flag
added !odroid to dispmanx / modules / sdl1dispmanx as an initial example
2015-01-08 22:03:27 +00:00
Jools Wills
f937baa863 rename checkNeededPackages to getDepends 2015-01-08 22:03:12 +00:00