Commit Graph

56 Commits

Author SHA1 Message Date
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
Twinaphex
daff4fb27c (PS3/UNIX-type FS) Skips '.' and '..' directories from being
included in the dir list when doing dir_list_new
2012-07-30 00:36:09 +02:00
Themaister
e5a7ef7cf5 Fix subtle bug in file_path_basedir.
Also applies minor stylistic fixes to file_path.c.
Adds return type to wchar/char conversion functions.
2012-07-29 09:23:04 +02:00
Twinaphex
6ada9080f1 Move char to wchar and wchar to char conversion functions to
file_path.c
2012-07-28 22:36:49 +02:00
Twinaphex
f4559bf636 Move rarch_extract_directory to file_path.c and rename it
fill_pathname_basedir
2012-07-28 20:43:34 +02:00
Twinaphex
3a661bff71 (RARCH_CONSOLE) Add new load_game_wrap function that all
console ports use - this abstracts away ZIP loading of ROMs too
(PS3) Add new 'ZIP Extract' mode - 'Current dir and load first
file'
2012-07-27 14:32:23 +02:00
TwinAphex51224
38abfd9ed1 (Xbox 1) Include 'include' dir for Xbox 1 so xtl.h is accessible 2012-06-24 23:14:49 +02:00
TwinAphex51224
0ef1e9e4ab (Xbox 1) Fixups to PACKAGE_VERSION define / settings function 2012-06-24 22:54:43 +02:00
Themaister
e5b3a61f9f Replace use of unsafe strtok() with strtok_r.
Implement compatibility for strtok_r() on Win32.
2012-06-24 02:37:19 +02:00
Twinaphex
322473f348 (Salamander) Fixes for new dir_list_new code 2012-06-23 19:17:41 +02:00
Themaister
14f7f641f3 Refactor directory listing to greatly optimize sorting. 2012-06-23 15:32:46 +02:00
Themaister
f0fab577e7 Take the slow but more correct path for directory sorting. 2012-06-19 00:16:59 +02:00
Themaister
7d05d051b4 Sort directories before files. 2012-06-19 00:01:13 +02:00
Twinaphex
d8b9d4b4f6 (PS3) Got rid of cell_fs includes 2012-06-18 23:43:21 +02:00
Themaister
bebc4462a6 Should fix dir_list_new on 360. 2012-06-18 23:43:24 +02:00
Twinaphex
75f1cef303 (PS3) Directory / extension filtering works on PS3 now 2012-06-18 23:29:43 +02:00
Themaister
e252ab8f61 Optimize dir reading on Unix. 2012-06-18 23:27:49 +02:00
Twinaphex
f81c9c3166 (PS3) use stat for PS3 - get rid of cellFsStat 2012-06-18 22:59:33 +02:00
Themaister
84cf67525a Use strcasecmp() for sorting. 2012-06-18 20:37:35 +02:00
Themaister
214f8563c4 Fix bug when ext is NULL in dir_list_new. 2012-06-18 10:02:00 +02:00
TwinAphex51224
21a344e61b (360) Works now too with refactored filebrowser code 2012-06-18 06:12:37 +02:00
Twinaphex
805ca7e027 (PS3) More refactoring of filebrowser - should be mostly platform-
agnostic now
2012-06-18 05:31:43 +02:00
Themaister
a1f5715431 Add sorting and size query to dir_list_new. 2012-06-18 01:11:03 +02:00