Commit Graph
14 Commits
Author SHA1 Message Date
Flyinghead 1d40e23654 get rid of wchar 2020-06-02 16:31:56 +02:00
jdgleaver 3575cf8679 Add optional 'per game' VMU save files 2019-05-30 17:10:34 +01:00
twinaphex f0eed64854 Cleanups 2016-10-11 01:15:41 +02:00
twinaphex 887d48b446 Don't need file_exists 2015-12-22 08:04:43 +01:00
twinaphex 084e0073bc remove unused get_writable_config_path 2015-12-22 07:59:04 +01:00
twinaphex 3f35380a7b get rid of hardcoded slash in data paths - would not work for
Windows
2015-12-22 07:43:42 +01:00
twinaphex cd146a91cf Implement get_writable_data_path 2015-12-16 01:51:22 +01:00
twinaphex 1a5f620b77 Remove some more files 2015-10-17 23:28:09 +02:00
twinaphex 40fc5b7e99 Use _MSC_FIRST 2015-10-13 03:56:54 +02:00
twinaphex e1bab7a6fc Get rid of more unnecessary stuff 2015-10-13 00:15:44 +02:00
Jan Holthuis 4267d51f90 stdclass: Make path getter function names more verbose 2015-09-02 15:49:00 +02:00
Jan Holthuis 4bd5154c9f stdclass: Use access to check if file is readable 2015-09-02 15:49:00 +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
Stefanos Kornilios Mitsis Poiitidis 7ef9de3cae Moving code around, cleanups 2013-12-28 22:20:08 +01:00