Commit Graph

102 Commits

Author SHA1 Message Date
Timo Strunk 95f02d12f4 Basenames should now be correct also when using zipfiles. It is now always only the basename of the file in the zipfile. So if zipname == internalname, its zipname, like requested here: https://github.com/libretro/RetroArch/issues/1030#issuecomment-55810822 2014-09-17 18:41:23 +02:00
twinaphex 4550f3707b Cleanups 2014-09-16 06:01:49 +02:00
twinaphex 4fd185bffb Split up dir_list functions into its own source/object file 2014-09-15 18:59:59 +02:00
twinaphex 6deb51332b Split up string_list functions into its own object/source file 2014-09-15 18:46:07 +02:00
twinaphex cbce0c7b8a Create write_empty_file helper function in file_path.c 2014-09-15 05:49:48 +02:00
twinaphex 0c1a2dd8d7 Cleanups 2014-09-13 02:36:13 +02:00
Timo Strunk 1883b03497 All files and not just content file can now be compressed 2014-09-12 19:06:36 +02:00
Timo Strunk c83dced0d2 Made safe version of string concat with delimiter 2014-09-12 17:46:40 +02:00
Timo Strunk 502475f6c7 Added function to check whether path contains a compressed file 2014-09-12 17:05:05 +02:00
Timo Strunk 674a8b5f33 Added zipfile support to all compressed file factories - i.e. file_list, path_is_compressed and read_compressed_file 2014-09-09 16:00:38 +02:00
Timo Strunk cfd9e64f78 Added factory functions to list a compressed archive as a file list, currently only supporting 7z 2014-09-06 20:49:15 +02:00
Timo Strunk d939965aec Reordered everything a bit in the non win32 case in dir_list_new to avoid a few tests 2014-09-04 22:09:41 +02:00
Timo Strunk 86d708d67c Reordered everything a bit in the win32 case in dir_list_new to avoid a few tests 2014-09-04 22:06:01 +02:00
Timo Strunk 16ecc685fb Changed file handling in dir_list_new functions to allow for different filetypes already then. Added path_is_compressed_file function. This commit is unsafe, it breaks all menus 2014-09-04 21:42:49 +02:00
Timo Strunk 0c4c749f81 Added commandline 7z support 2014-09-02 17:05:15 +02:00
twinaphex 0856091296 Cleanups - 80-char limit 2014-09-02 05:57:53 +02:00
Higor Eurípedes ebeec0d056 (Haiku) Fix fill_pathname_application_path() 2014-08-28 13:45:12 -03:00
twinaphex 5c2006c072 Remove extraneous elses 2014-08-27 02:06:39 +02:00
twinaphex c3c0341f8c (file_path.c) Declare variables at top 2014-08-02 12:01:11 +02:00
twinaphex 216a3e4ea7 (QNX) Change __BLACKBERRY_QNX__ define to __QNX__ 2014-05-20 02:48:11 +02:00
twinaphex bbce01a449 (Lakka) Lakka now uses assets directory instead of hardcoded
/usr/share/retroarch
2014-05-10 05:25:50 +02:00
Themaister 2d840ef826 Small bugfix and docs fix. 2014-04-04 15:13:44 +02:00
Themaister 6e42f4485d Join core info lists with new string_list_join_concat(). 2014-03-04 10:17:00 +01:00
twinaphex d4f9c211ee (PSP) Build fixes 2014-02-11 16:10:40 +01:00
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