Commit graph

392 commits

Author SHA1 Message Date
Conn O'Griofa
8f9653e731 helpers: downloadAndExtract: assume .exe files are sfx zip format 2018-03-18 16:45:23 +00:00
Jools Wills
05a97a8360 helpers / addPort - change order to not process install files in remove mode 2018-03-07 19:54:43 +00:00
Jools Wills
ffa98f7b0a helpers / addPort - call delEmulator on port removal 2018-03-07 19:20:05 +00:00
Jools Wills
db4ec6e4fc helpers / downloadAndExtract - make destination folder for tar archives 2018-03-07 19:19:23 +00:00
Jools Wills
d983a738d4 Revert "joy2key: use USR1 signal handler with more graceful exit handling"
This reverts commit d4c653a3d2.

on the RPI1 the wait in runcommand can sit there forever. Adding a sleep helps, but
this isn't ideal. Problem is likely due to the signal hander not yet being set up on the rpi1
when launching joy2key when the kill is executed.
2018-01-31 18:10:21 +00:00
Jools Wills
d4b1bffccb helpers - skip patchVendorGraphics on jessie as patchelf is not available in Raspbian repositories. 2017-12-30 19:24:52 +00:00
Conn O'Griofa
c74940fd54 helper: implement temporary patchVendorGraphics function
Needed to patch binary-only software to maintain compatibility with
new graphics driver names on latest Raspberry Pi firmware images.
2017-12-28 00:49:18 +00:00
Conn O'Griofa
d4c653a3d2 joy2key: use USR1 signal handler with more graceful exit handling
The INT signal won't kill the python process if called before the
script has had time to register the signal handler. Avoid this case
by using the USR1 signal, which will terminate the process under the
same conditions.

Unfortunately, terminating the process will lead to unwanted terminal
output - "User defined signal 1" - due to bash job control monitoring.
Solve this by adding a wait command that redirects the process output
to /dev/null.

Additionally, register joy2key's signal handler for INT and TERM cases
so that it will gracefully exit in all possible cases.
2017-11-02 01:14:47 +00:00
Luis Felipe Strano Moraes
276ca85f3a Fixing a few typos around the project. 2017-10-16 13:18:15 -07:00
Jools Wills
a8e0f53f60 helpers - $SSH_TTY isn't available by default when run as sudo so this never worked 2017-10-13 16:38:59 +01:00
Jools Wills
ee0b5fac99 don't start joy2key on ssh sessions - fixes #2150
* can't use $SSH_CLIENT $SSH_TTY as lost using sudo by default
 * this seems to work in most cases, but feels like a hack.
2017-10-13 16:28:55 +01:00
Jools Wills
47eee2e9b2 Revert " helpers: joy2keyStop: wait for successful SIGINT" 2017-10-11 19:19:02 +01:00
Jools Wills
aa5bf1bad1 gitPullOrClone - minor logic change / remove regexp 2017-10-11 19:00:48 +01:00
Conn O'Griofa
9ae1f23c09 helpers: joy2keyStop: wait for successful SIGINT
Under certain scenarios, joy2key.py does not receive the INT signal
which leads to the process staying resident. Avoid this situation by
sending the signal repeatedly until a successful exit code is received.
2017-10-10 01:40:31 +00:00
Jools Wills
06b64a5a23 helpers - use "ne" for sdl package comparisons to simplify logic 2017-09-04 20:02:27 +01:00
Jools Wills
8e28970372 helpers - make sure libraspberrypi-dev/libraspberrypi0 is up to date
* this will ensure the libbrcm* named libraries are available for linking #2091
2017-09-04 19:59:34 +01:00
Jools Wills
474319e35b helpers - move package renaming in getDepends before sdl version checks 2017-09-04 19:58:35 +01:00
Jools Wills
1cc4543f93 helpers - added zip support to downloadAndExtract 2017-08-10 21:39:04 +01:00
Jools Wills
42fd198875 helpers - added downloadAndExtract function for use in modules
* replace many of the existing wget | tar commands with the new function
 * include error logging in the function via runCmd, to trap download/unpacking issues
2017-08-10 20:45:49 +01:00
Jools Wills
6e88131fad helpers - only do sdl2-dev version check if own_sdl is 1
* caused apt-get install to be used for sdl2 when not needed
2017-08-05 01:16:40 +01:00
Conn
96e6efca46 joy2key: implement key verification & dpad support
* Allow dpad control in addition to axis for cursor keys
* Verify existence of keys before mapping

The cursor keys will now be mapped to both the axis and dpad, but if
the dpad is not present, only the axis mappings will be used.

This should also make it possible to add default mappings for X/Y
buttons without having to worry about pad compatibility.
2017-07-20 08:05:45 +01:00
Jools Wills
b96bf727fc helpers - allow disabling of our custom sdl2
* via config file /opt/retropie/configs/all/retropie.cfg with entry
   own_sdl2 = "0"
2017-06-09 22:09:35 +01:00
Jools Wills
04c4438848 more consistent sed parameters (just drop the -e) 2017-05-04 20:10:57 +01:00
Jools Wills
fe6beed9df we should follow symlinks when editing files with sed 2017-05-04 20:05:32 +01:00
Jools Wills
e1a9303164 debian stretch support
* only force gcc version to 4.9 on debian/raspbian 8
 * use libpng-dev for debian 9+
 * set debian version to 9 for ubuntu 16.10 and above (for libpng naming).
2017-04-20 19:13:52 +01:00
Jools Wills
05b7eb875e helpers / moveConfigDir - use copy/rm -rf to avoid issues with existing source/destination. 2017-03-04 21:11:23 +00:00
Jools Wills
edd019276b helpers / renameModule - make sure destination is removed before moving 2017-02-26 23:48:34 +00:00
Jools Wills
09ebcaa950 helpers / renameModule - use "to" parameter for destination mv / should fix mupen renames 2017-02-26 23:00:19 +00:00
Jools Wills
fa351c24f7 helpesr / rpSwap - chmod swapfile to 600 for security 2017-02-23 17:21:54 +00:00
Jools Wills
2498322637 helpers - fix sdl1.2 check 2017-02-20 19:18:29 +00:00
Jools Wills
7a7aff8a63 sdl2 - use custom sdl2 for all platforms 2017-02-17 19:21:10 +00:00
Jools Wills
a43a1f9831 sdl2 - enable custom retropie sdl2 for x11 targets 2017-02-17 18:48:45 +00:00
Jools Wills
97c8be4e1a helpers / gitPullOrClone - use runCmd to catch / log errors 2017-02-14 17:15:49 +00:00
petrockblog
283babc4ed Support for Git submodules 2017-02-13 21:19:20 +01:00
meleu
fe0286c3f1 loadModuleConfig's value can have spaces
I was having problems when using loadModuleConfig and the variable's value has spaces.
Example: when using `loading_text="NOW LOADING"`, loadModuleConfig was getting `key=loading_text` and `value=NOW`. After this change it's getting `value="NOW LOADING"`.
2017-02-10 03:23:31 -03:00
Jools Wills
ba6252d5a2 documentation typo 2017-02-09 15:45:14 +00:00
Jools Wills
413b182d7a helpers / addEmulator - no need for regular expression match 2017-01-29 19:54:07 +00:00
Jools Wills
909d5d8974 helpers - only set up retroarch commandline automatically if module cmd doesn't include own commandline with retroarch - fixes lr-dinothawr port 2017-01-29 19:38:15 +00:00
Jools Wills
7db8ccc590 added support for xbian 2017-01-10 03:28:52 +00:00
Jools Wills
2b5b3f054f helpers / addPort - fix addEmulator parameters 2017-01-08 04:13:10 +00:00
Jools Wills
cea68cd4ed helpers - make sure ports system is created in addPort (after split of addSystem -> addEmulator/addSystem) 2017-01-08 01:53:21 +00:00
Jools Wills
6ffc04238f Merge pull request #1814 from joolswills/addsystem
Split addSystem to addEmulator / addSystem
2017-01-06 01:00:47 +00:00
Jools Wills
c23eee1be3 helpers - don't run joy2key if connected over ssh 2016-12-31 14:01:07 +00:00
Jools Wills
92b624ec15 helpers - split out addSystem to addEmulator / addSystem so we can avoid updating frontend system config everytime we just want to add an emulator to a system 2016-12-31 02:33:46 +00:00
Jools Wills
b561884608 use platforms.cfg for managing of platform/theme for arcade etc, to simplify addSystem 2016-12-31 02:33:46 +00:00
Jools Wills
a4908e52c3 add an __os_ubuntu_ver global to deal with Ubuntu based distros - add support for elementary os and kde neon 2016-12-24 20:19:04 +00:00
Jools Wills
80047cb396 helpers / delSystem - move check for emulators.cfg to delSystem 2016-12-24 02:34:33 +00:00
Jools Wills
3ff63a4fa9 allow overriding of emulationstation "platform" eg - for switching scraping to genesis from megadrive 2016-12-23 22:17:01 +00:00
Jools Wills
12901a53b1 joy2key - support reading from multiple joysticks
* if device parameter is /dev/input/jsX it will read from all joysticks
 * if a joystick is removed or another reconnected it will be picked up
 * default runcommand and helpers to use all joypads
2016-12-21 23:48:15 +00:00
Jools Wills
2a93965072 attractmode - added _del_system_attractmode for removing systems/displays from the attractmode configuration 2016-11-25 23:49:48 +00:00