Commit Graph

78 Commits

Author SHA1 Message Date
twinaphex
0a15a17d44 Update years on all license headers 2014-01-01 01:50:59 +01:00
Themaister
e5bedc343a At least use long for return type of read_file().
int is not acceptable as a return type for anything regarding sizes.
long is dubious as well, but better (64-bit on sane ABIs and the return
type of ftell()).
2013-12-31 22:54:11 +01:00
twinaphex
c5cbec6fdc Build fix - don't include msvc_compat.h reference in file_path.h -
instead just change return type for file_read to int
2013-12-31 21:55:09 +01:00
twinaphex
cf4c68a072 Make return type of read_file ssize_t again - include
msvc_compat for Win32 boxes to get typedef for ssize_t
2013-12-26 22:51:17 +01:00
twinaphex
75306f7057 (XDK Salamander) Build fix - ssize_t not there on MSVC 2003 - but
size_t is
2013-12-26 21:30:31 +01:00
twinaphex
84c489d0da file_path.c - Fix unused variable warning 2013-12-25 01:28:55 +01:00
Themaister
4ac75a8058 Don't allow more than one abbrev to take place. 2013-12-24 23:40:16 +01:00
Themaister
5f1c3b48b3 Safeguard a bit in fill_pathname_abbrev*. 2013-12-24 23:37:03 +01:00
Themaister
c52f328a4e Some style nits. 2013-12-24 23:02:45 +01:00
meancoot
4d671fe116 Make settings abbreviate paths when saving config file. 2013-12-24 12:23:21 -05:00
twinaphex
a6e012e747 (iOS) Refactor out path_make_and_check_directory 2013-11-22 01:56:54 +01:00
twinaphex
cf20416aab Make file_path.c more self-contained.h 2013-11-06 14:21:12 +01:00
twinaphex
ed1b012250 (360) Build fixes 2013-11-01 17:16:02 +01:00
twinaphex
d2c87e3039 Convert most C99-style for loop initial declarations to C89-compliant
ones
2013-10-22 15:08:17 +02:00
Themaister
7df4500024 Use native side asset extraction. 2013-10-14 21:08:41 +02:00
Themaister
34ce65d9c4 Rework extension files to only consider basename.
Only consider last '.' in the basename of a file.
2013-10-06 12:16:44 +02:00
Themaister
3d212c1d7c Start refactoring file_extract.
Add support for low-level parsing of zip contents.
2013-10-05 18:07:38 +02:00
twinaphex
452dd2cad8 (RARCH_CONSOLE) Replace rarch_make_dir with path_mkdir 2013-10-01 17:00:49 +02:00
Themaister
57cbbde420 Create a default config file if it doesn't exist. 2013-10-01 11:57:07 +02:00
Themaister
17e2da87e1 Don't hardcode rgui.cgp/glslp as default.
In a multi-config environment, shader manager could conflict.
Instead, infer the default RGUI shader cgps/glslps from config path.

Fallback to old rgui.cgp/rgui.glslp if we use a default config.
2013-09-27 00:19:02 +02:00
Themaister
df79b8ea3d Ensure that g_settings.libretro is absolute path.
Avoid issues when relative libretro paths are stored in ROM history.
2013-05-13 23:25:37 +02:00
twinaphex
f659151c8f (PS3) Clean up FS defines 2013-05-01 04:04:38 +02:00
Themaister
e2229ec3c3 Use strcasecmp in extension checking. 2013-04-30 23:58:49 +02:00
Themaister
ab377bf1ec Fix symlink directories on POSIX. 2013-04-20 11:30:42 +02:00
twinaphex
da8bbde11d Simplify some _WIN32 includes 2013-04-11 22:35:15 +02:00
twinaphex
ddd6acd4e2 (Blackberry) S_ISDIR would be broken if left undefined on Blackberry -
figure out what the deal is here
2013-04-11 19:05:28 +02:00
twinaphex
30e190bdae Remove superfluous wcstombs / mbstowcs wrappers 2013-04-11 17:18:23 +02:00
Themaister
54cf6bc06f Remove . and .. from dir_list_new win32. 2013-04-04 23:05:21 +02:00
Themaister
2e03a4b3ba Refactor slash handling slightly. 2013-03-17 12:59:52 +01:00
Themaister
2588e60180 Add relative-to-application querying to config. 2013-03-17 12:28:26 +01:00
twinaphex
343a85c6dc (Playbook) Add Playbook ifdefs - cut down on compilation errors 2013-02-25 01:19:12 +01:00
Themaister
dac5976c87 Don't hardcode in an ext in fill_dated_*. 2013-02-17 10:20:10 +01:00
twinaphex
0a0aba068d Rename screenshot_generate_filename 2013-02-17 03:50:19 +01:00
Themaister
b928d6d2e9 Fix path logic bug for Windows. 2013-01-12 23:34:24 +01:00
Themaister
4212a93eef Fix logic bug with Windows path handling.
Fixes bug when a path contains different slash types
in same path, e.g. C:/foo\bar.
2013-01-12 01:58:06 +01:00
Themaister
0b4cf2d053 Update license headers to 2013. 2013-01-01 01:41:15 +01:00
Themaister
efa78bded7 Make the correct strlcat assertion. 2012-11-25 16:29:34 +01:00
Themaister
98ed53f17d Fix strlcat calling bug. 2012-11-25 16:28:05 +01:00
Themaister
8b09314aa3 Add fill_pathname_parent_dir. 2012-11-25 16:22:53 +01:00
Themaister
df40f854cd Add fill_pathname_join(). 2012-11-25 16:03:16 +01:00
Themaister
b499206a00 Handle DT_UNKNOWN special case.
Some filesystems return DT_UNKNOWN in dirent.
Fallback to stat().
2012-11-23 23:28:05 +01:00
twinaphex
2ecc926e8b (PSP1) Add workaround for d_type missing in PSP1 dirent (but
d_stat instead can serve as a substitute)
2012-11-23 20:21:35 +01:00
Themaister
2961c26e08 Check more special cases for absolute path on Win32. 2012-11-18 17:41:09 +01:00
Themaister
86e21686f7 Refactor out buggy 'in-line' path handling. 2012-11-18 17:16:20 +01:00
Themaister
08f64edc84 Fix set_savestate_auto_index. 2012-10-11 22:54:07 +02:00
Themaister
8a1327cefd Add directory support for libretro_path/-L. 2012-10-11 22:31:47 +02:00
Twinaphex
e2348714ee (PSL1GHT) PSL1GHT gets further now due to changes made in gl
driver
2012-09-11 09:17:51 +02:00
Themaister
bca1694183 Make path shell-style reading part of config reader. 2012-09-08 00:31:30 +02:00
Themaister
6a169513c9 Allow ~/ to be used in config for regular paths on *nix. 2012-09-07 22:20:49 +02:00
Themaister
07560e25b4 Allow dir_list_new to compare against dotted exts as well. 2012-08-22 22:43:44 +02:00