Commit Graph

45 Commits

Author SHA1 Message Date
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
Themaister
e455e52e06 MAJOR refactor of dir_list_new. 2012-06-18 00:34:47 +02:00
Twinaphex
df6a9a0f85 Set up dir_list_new so that we can use it for the 360/PS3 filebrowser 2012-06-10 03:50:06 +02:00
Themaister
ce740f8948 More fixups. 2012-04-21 23:31:57 +02:00
Themaister
aab8fb6151 ssnes_* => rarch_*. 2012-04-21 23:25:32 +02:00
Themaister
9ab51ad23a SSNES => RetroArch. 2012-04-21 23:17:43 +02:00
Themaister
8c426ed49a Split file.c in two. 2012-04-13 21:29:25 +02:00