Commit Graph

1637 Commits

Author SHA1 Message Date
Jan Holthuis 4bd5154c9f stdclass: Use access to check if file is readable 2015-09-02 15:49:00 +02:00
Jan Holthuis 5f6480e983 linux-dist: Also add /etc/reicast as system config dir 2015-09-02 15:48:59 +02:00
Jan Holthuis b6d0cddcaa stdclass: Add support for separate config/data dirs and system wide dirs
This adds support for separate config and data dirs.

On Linux, these will be compliant XDG Basedir Specification, i.e.
XDG_CONFIG_HOME and XDG_CONFIG_DIRS (or XDG_DATA_HOME and XDG_DATA_DIRS
respectively). On all other platforms, there currently just set to the
homedir path (so no previous behaviour has been changed).

If reicast wants to read and write a data file, it just calls
get_data_path("/samplefile.txt"). If it does not need to write to
that file, it just uses get_data_path("/samplefile.txt", false). That
way, we can also use system-wide dirs (like /usr/share/reicast on
linux), that the user usually doesn't have write access to.

The same applies for config file, where you use get_config_path(args)
respectively.
2015-09-02 15:48:53 +02:00
Jan Holthuis c24a5faf5b Linux: Use $XDG_CONFIG_HOME if possible
This coommit makes reicast use $XDG_CONFIG_HOME from XDG Base Directory
Specification[1] if possible.

For backwards-compatability with older installations, it checks if the
old-style config directory at $HOME/.reicast exists. If so, it'll use
that instead.

All new installation should use $XDG_CONFIG_HOME/reicast (or if
that environment variable is not set: $HOME/.config/reicast).

[1] http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
2015-08-29 01:05:39 +02:00
Stefanos Kornilios Mitsis Poiitidis 1a751e3b5b xcode: Update projects for libpng 2015-08-27 15:40:12 +02:00
Stefanos Kornilios Mitsis Poiitidis 78f4890535 Merge pull request #791 from sergiobenrocha2/libpng16
Update libpng to 1.6.18.
2015-08-28 13:50:58 +02:00
Jan Holthuis 61a6975601 Merge pull request #822 from reicast/holzhaus/makefile-improvements
linux/Makefile: Fix regession caused by commit dc92124
2015-08-28 04:36:33 +02:00
Jan Holthuis a704b0b46a linux/Makefile: Fix regession caused by commit dc92124 2015-08-28 04:36:06 +02:00
Jan Holthuis 661b3d3538 Merge pull request #817 from reicast/holzhaus/makefile-improvements
Linux/Makefile: Add preliminary NAOMI support
2015-08-28 04:14:25 +02:00
Jan Holthuis dc921249cf Linux/Makefile: Use different folder for NAOMI object files 2015-08-28 04:13:42 +02:00
Jan Holthuis cbb8c11cf4 Merge pull request #821 from reicast/holzhaus/use-escape-to-exit-reicast-in-x11
linux/x11: Map X11 ESC key to exit emulator
2015-08-28 04:08:10 +02:00
Jan Holthuis def93ca4be linux/x11: Map X11 ESC key to exit emulator 2015-08-28 04:06:36 +02:00
Jan Holthuis 826853a0a4 Linux/Makefile: Fix 'uninstall' target 2015-08-27 14:59:46 +02:00
Jan Holthuis a4c475a26c Linux/Makefile: Add preliminary NAOMI support 2015-08-27 14:57:44 +02:00
Jan Holthuis 6ada8179be Merge pull request #816 from reicast/holzhaus/makefile-improvements
Linux/Makefile: Readd .elf file ext and remove it during 'install' target
2015-08-27 14:51:02 +02:00
Jan Holthuis 5ae82b7f4f Linux/Makefile: Readd .elf file ext and remove it during 'install'
target
2015-08-27 14:49:53 +02:00
Jan Holthuis 4fa0119f24 Merge pull request #815 from reicast/holzhaus/improve-man-pages
Improve man pages
2015-08-27 14:46:33 +02:00
Jan Holthuis 60d4ee19ea Linux/Makefile: Add missing commands to 'uninstall' target 2015-08-27 14:44:31 +02:00
Jan Holthuis 402e7eca70 Linux: Add man page for reicast-joyconfig 2015-08-27 14:42:07 +02:00
Stefanos Kornilios Mitsis Poiitidis 223bc3c185 Merge pull request #790 from sergiobenrocha2/master
makefiles: Add a generic linux 32-bit ARM rule.
2015-08-27 14:39:12 +02:00
Jan Holthuis bc4c1ab47c Linux/man page: Add documentation about evdev mappings 2015-08-27 14:15:40 +02:00
Stefanos Kornilios Mitsis Poiitidis 053ea61137 readme: Add link for windows builds 2015-08-27 10:55:07 +02:00
Jan Holthuis 021acb51af linux: Fix typo in Makefile 2015-08-27 00:45:10 +02:00
Jan Holthuis 2456bc9c82 Merge pull request #769 from reicast/holzhaus/evdev-mappings-from-file
Read evdev mappings from file
2015-08-26 20:13:42 +02:00
Stefanos Kornilios Mitsis Poiitidis 2ecb688e40 Merge pull request #811 from reicast/feat/rename-appveyor-artifacts
Appveyor: Deploy to S3
2015-08-26 11:08:19 +02:00
Stefanos Kornilios Mitsis Poiitidis 64942450fb Appveyor: Deploy to S3
- Add S3 credentials, bucket reicast-builds-windows
- Don't split platform with - (win_x86 and win_x64, makes for easier regex)
- Naming consistent with current android builds naming
2015-08-26 09:52:58 +02:00
Jan Holthuis 62029a40b1 linux-dist/joystick: Disable legacy joystick API by default 2015-08-26 01:34:49 +02:00
Jan Holthuis 67b4af8818 linux/Makefile: install mappings to /usr/share/reicast/mappings
Until we have some decent way to load system wide files, users can
easily copy the mappings folder from /usr/share/reicast into ~/.reicast
to get the pre-defined mappings.
2015-08-26 01:31:57 +02:00
Jan Holthuis 382d5db415 linux/Makefile: Add reicast-joyconfig to 'install' target 2015-08-26 01:31:10 +02:00
Jan Holthuis 9b5e997ddc linux-dist/evdev: Use default python version in joyconfig.py 2015-08-26 01:17:45 +02:00
Jan Holthuis 25b8bb5f29 linux-dist/evdev: Move *_inverted in mappings to compat section 2015-08-26 01:11:16 +02:00
Jan Holthuis 7eab958472 linux-dist/evdev: Print error msg if unable to open mapping file 2015-08-25 21:45:39 +02:00
Jan Holthuis c97727984d linux-dist/evdev: Add absolute mapping file path support 2015-08-25 21:45:39 +02:00
Jan Holthuis f46ae2567c linux/reicast-joyconfig: Fix crash if evdev module < v0.4.4 2015-08-25 21:45:39 +02:00
Jan Holthuis 76ce592aa7 linux/reicast-joyconfig: Add exitcodes 2015-08-25 21:45:38 +02:00
Jan Holthuis 760371e1d6 linux/reicast-joyconfig: Add python2 support 2015-08-25 21:45:38 +02:00
Jan Holthuis e3b796e812 linux-dist/evdev: Always show Keycode names if possible 2015-08-25 21:45:38 +02:00
Jan Holthuis cb3b001974 linux: Added python tool to create evdev mappings 2015-08-25 21:45:38 +02:00
Jan Holthuis b12f1fa199 linux-dist/evdev: Remove unecessary newlines 2015-08-25 21:45:38 +02:00
Jan Holthuis 785b819cb9 linux-dist/evdev: Introduce a more consistens button naming scheme 2015-08-25 21:45:38 +02:00
Jan Holthuis ceb2a11441 linux-dist/evdev: Clean up namespace a bit 2015-08-25 21:45:38 +02:00
Jan Holthuis 7018ca42c4 linux-dist/evdev: Make controller axes invertable 2015-08-25 21:45:37 +02:00
Jan Holthuis 72778bdf39 linux-dist/evdev: Replace evdev_keycodes.cpp/.h with dynamic libevdev call 2015-08-25 21:45:37 +02:00
Jan Holthuis e4e7e092c2 linux-dist/evdev: Add controller axis value autoconversion 2015-08-25 21:45:37 +02:00
Jan Holthuis b8716e3008 shell/linux: Add mappings for evdev 2015-08-25 21:45:37 +02:00
Jan Holthuis 528cd5a793 linux-dist: Drop hardcoded mappings in favor of mapping files 2015-08-25 21:45:32 +02:00
Jan Holthuis 5c01098cab linux-dist/evdev: Support custom mapping files 2015-08-25 21:38:18 +02:00
Stefanos Kornilios Mitsis Poiitidis 3eee909801 Merge pull request #767 from reicast/holzhaus/reimplement-cfg-ini-with-maps
cfg: Reimplement ConfigFile using C++ maps and strings
2015-08-25 20:12:12 +02:00
Stefanos Kornilios Mitsis Poiitidis 6b12ffc6b7 Merge pull request #783 from reicast/holzhaus/remove-unneeded-code
linux-dist: Remove unused code
2015-08-25 19:41:39 +02:00
Stefanos Kornilios Mitsis Poiitidis 5bee39a917 Merge pull request #810 from reicast/holzhaus/appveyor-artifacts
AppVeyor: Add build artifacts
2015-08-25 19:38:08 +02:00