Commit Graph

865 Commits

Author SHA1 Message Date
LazyBumHorse 7006764c12 replace realpath() by custom code which does not resolve symlinks 2019-07-22 12:10:28 +02:00
Twinaphex 388c4857d3
Merge pull request #9140 from LazyBumHorse/shader_paths
much improved handling of relative shader paths
2019-07-20 21:54:58 +02:00
LazyBumHorse 2245af23e9 much improved handling of relative shader paths
- save texture paths in relative format as well
 - always write portable relative paths on Windows using '/' instead of '\'
 - remove an ancient piece of code that could sometimes fail loading relative paths
 - fix absolute path handling between different drives for Windows
 - integrate video_shader_resolve_relative() into video_shader_parse_* functions
2019-07-20 18:29:46 +02:00
twinaphex efb98a8a01 Cleanup file_archive_get_file_backend 2019-07-20 16:01:56 +02:00
twinaphex c2c7c106a1 Add conf->path for config_file_new_from_path_to_string 2019-07-20 00:39:55 +02:00
twinaphex 0cdfd4c542 Use config_file_new_from_path_to_string entirely 2019-07-18 16:15:02 +02:00
twinaphex 41a2fabb4e Create config_file_new_from_path_to_string 2019-07-18 12:03:50 +02:00
twinaphex a6d6c21e52 Rename config_file_new_null to config_file_new_alloc 2019-07-17 19:50:32 +02:00
twinaphex 0c31437c24 Create config_file_new_null 2019-07-17 18:27:53 +02:00
Yoshi Sugawara dba1302360 Playlist (iOS): support abbreviating and expanding application and home directory paths so that playlist entries are valid across installs
iOS: add call to realpath() when setting directory to ensure expanding special chars in paths work; fixed braces style
2019-07-15 16:11:22 -10:00
twinaphex 594dd84e6e Fix 'declaration hides parameter' 2019-07-14 13:21:14 +02:00
twinaphex 6bc0f0fcbd (config_file) Be more safe with free 2019-07-13 15:23:28 +02:00
Brad Parker 15d97dbaf3 cdrom: add disc dump option 2019-07-08 16:06:35 -04:00
twinaphex 33d4d8b7c9 Update libretro-common 2019-06-14 13:13:49 +02:00
twinaphex 133c38c601 (file_path.c) Cleanups 2019-06-14 04:57:17 +02:00
jdgleaver feae08e5e7 (Wii) Fix recursive path_mkdir() operations 2019-06-10 14:26:41 +01:00
LazyBumHorse d67a118ad4 path_relative_to: fix return in void function 2019-06-08 19:15:52 +02:00
LazyBumHorse 2816730b2f make shader presets use relative paths
Also change fill_pathname_resolve_relative() to apply path_resolve_realpath() as well
2019-06-07 16:11:06 +02:00
twinaphex c3c3eedfa2 file_archive_get_file_list - file_archive_walk returns boolean type,
not integer
2019-05-31 07:48:10 +02:00
twinaphex 22d762be67 We need to split up zlib headers in libretro-common to its own separate
dir
2019-05-27 03:40:14 +02:00
twinaphex 32f9b9ab9a (PS4/ORBIS) Move path_is_directory code parts to VFS layer - hope I did
it right
2019-05-22 02:32:22 +02:00
twinaphex f117d763d6 Create path_stat and use it 2019-05-22 02:21:30 +02:00
twinaphex 64f9477ef6 Simplify find_last_slash for non-WIN32 2019-05-12 05:02:45 +02:00
twinaphex 985ed6cd2b Small cleanups 2019-05-12 04:47:27 +02:00
twinaphex 74388d8490 Remove string_concat 2019-05-10 18:05:58 +02:00
twinaphex 5794c2051c path_mkdir - safety check 2019-05-06 03:09:44 +02:00
twinaphex 0919cd9746 (Legacy Win32) Be more careful with retro_vfs_stat_impl 2019-05-06 03:00:51 +02:00
twinaphex 39eadbab6f Use string_concat in more performance critical areas 2019-04-30 21:17:51 +02:00
twinaphex bc2bdd5734 config_file_read not needed anymore 2019-04-30 13:37:10 +02:00
twinaphex 0984a13665 We can't use RARCH_LOG and friends inside libretro-common code 2019-04-29 14:49:24 +02:00
twinaphex 4c3e0d44b8 Revert "Start using string_is_equal_memcmp and"
This reverts commit 26d6aee1eb.
2019-04-29 04:04:33 +02:00
twinaphex 26d6aee1eb Start using string_is_equal_memcmp and
string_is_equal_memcmp_fast
2019-04-28 17:23:11 +02:00
Twinaphex 4c154f347d
Merge pull request #8649 from Ghabry/uwp-vfs
UWP VFS: Calculate buffer offset correctly when read fails due to EOF
2019-04-28 12:20:13 +02:00
Ghabry 5faf6a124d UWP VFS: Calculate buffer offset correctly when read fails due to EOF 2019-04-28 12:15:46 +02:00
twinaphex 6888a0cc71 (config_file.c) Seems unnecesary to check if a config file is a
directory first
2019-04-28 03:12:59 +02:00
Ghabry c209b0b3d9 UWP: Improve IO performance by manually buffering short reads.
Reduce copies by binding by reference in the lambdas
2019-04-27 23:47:52 +02:00
Ghabry 4390317992 Revert "(UWP/WinRT)"
This reverts commit b43b3e2bb0.
2019-04-27 15:01:01 +02:00
twinaphex b43b3e2bb0 (UWP/WinRT)
- Disable VFS for now - seems to be very problematic right now
- Move uwp_is_path_accessible_using_standard_io to file_path.c
since it seems to have no VFS dependencies, and rename it to
is_path_accessible_using_standard_io so it could possibly be later
used for other platforms as well that also have sandboxed filesystems
2019-04-27 09:20:19 +02:00
twinaphex 3e72c502a8 strlen optimizations :
- use STRLEN_CONST for constant strings, translates to sizeof
which should be computed at compile-time
- found some places where we are needlessly calling strlen two
times instead of just once
2019-04-27 04:21:10 +02:00
twinaphex 2b401ce13b (archive_file) Small optimizations - use one strlen less in one instance 2019-04-27 02:39:33 +02:00
twinaphex a2cb3f60a4 path_get_extension - fix regression 2019-04-27 02:17:17 +02:00
twinaphex fbae4efc97 Simplify path_basename and path_get_extension 2019-04-27 02:07:25 +02:00
twinaphex 1598cc773c More small cleanups 2019-04-26 12:53:12 +02:00
twinaphex 68ab984603 (archive_file) Safe optimizations 2019-04-26 12:46:44 +02:00
twinaphex aa156bd804 Have to revert this for now 2019-04-26 11:28:08 +02:00
twinaphex 60c028a562 (archive_file) Some optimizations 2019-04-26 10:26:48 +02:00
twinaphex ddace03872 (config_file.c) Cleanups 2019-04-26 06:28:10 +02:00
twinaphex fb653d22dc (file_path.c) Small simplifications 2019-04-26 04:49:42 +02:00
twinaphex f573626144 Simplify path_parent_dir 2019-04-23 23:21:16 +02:00
twinaphex b8694ff127 (file_path.c) More simplifications 2019-04-23 23:10:53 +02:00
twinaphex 7fe3f5f7ff (file_path.c) Turn path_stat into a macro 2019-04-23 22:59:57 +02:00
twinaphex cca51030d7 simplify path_mkdir 2019-04-23 22:53:07 +02:00
twinaphex 69168ec6bc Core info list iteration was calling path_stat two times on the same
paths - unnecessary file I/O is an issue with UWP/WinRT so let's cut
this down to only one path_stat. config_file_read function created -
acts the same as config_file_new except it doesn't check if the path
provided is actually a directory, which in turn would lead to another path_stat call
2019-04-22 01:13:19 +02:00
Francisco Javier Trujillo Mata 4c24a17119 Extract IRX variables 2019-03-15 20:19:14 +01:00
twinaphex 5cce51ed8d Move runtime_file to RetroArch 2019-03-01 01:22:35 +01:00
jdgleaver 5ddf0b948f Runtime logging: Fix xcode build errors 2019-02-28 16:00:32 +00:00
jdgleaver 5d8ea231be Use JSON format for runtime log files 2019-02-28 15:35:24 +00:00
jdgleaver 3ffb52121c Move runtime logs to <playlist_dir>/logs 2019-02-28 11:09:37 +00:00
jdgleaver 38c54eaebe Add persistent content runtime logging 2019-02-27 16:20:59 +00:00
radius 8936faf21f fix [Config]: blah blah blah printing on the OSD on save configuration
fix new configurations having two periods in the filename
2019-02-21 13:57:06 -05:00
twinaphex 5d1c45e8f9 (orbis) 'else ifdef' not necessary 2019-02-06 19:03:07 +01:00
orbea 28ff4b391a Clean up white space. 2019-02-03 16:00:50 -08:00
twinaphex 1796d359c5 Don't use setvbuf for PSP too 2019-02-02 16:43:17 +01:00
twinaphex 64460824aa Fix another CXX_BUILD warning 2019-01-31 20:21:04 +01:00
Twinaphex b5d8b8b3bc
Merge pull request #8020 from krzys-h/vfs-v3
VFS v3 (improved)
2019-01-17 03:14:35 +01:00
Brad Parker 16fffd67ea Normalize archive progress calculation 2019-01-16 17:22:46 -05:00
krzys-h f93ae772f3 Fix error in path_get_size 2019-01-16 21:03:15 +01:00
krzys-h 5a97738f3e Revert "Revert "Cleanups""
This reverts commit 5c2d271f9f.
2019-01-16 21:01:37 +01:00
krzys-h e6fc4220fa Revert "Revert "VFS v3: stat, mkdir, directory listings""
This reverts commit a549e28f01.
2019-01-16 21:01:29 +01:00
Twinaphex a549e28f01
Revert "VFS v3: stat, mkdir, directory listings" 2019-01-16 03:53:34 +01:00
twinaphex 5c2d271f9f Revert "Cleanups"
This reverts commit 73e78f5135.
2019-01-16 03:53:23 +01:00
twinaphex 73e78f5135 Cleanups 2019-01-16 02:58:08 +01:00
Twinaphex d4b33ac1ad
Merge pull request #7995 from krzys-h/vfs-v3
VFS v3: stat, mkdir, directory listings
2019-01-16 02:38:54 +01:00
krzys-h cc7541338c Fix parent of root directory turning into ./ on Windows (#7803) 2019-01-14 20:48:55 +01:00
krzys-h 4b2278688b Unix buildfix for dirent_is_directory 2019-01-13 14:49:01 +01:00
krzys-h 109de0bebb VFS v3: stat, mkdir, directory listings 2019-01-13 00:33:24 +01:00
twinaphex c98b2e2292 Buildfixes and more static code analysis warning fixes 2019-01-10 22:24:43 +01:00
Francisco Javier Trujillo Mata 9c7c5e0814 This commit revert part of the changes done for the PS4 implementation but fixes PS2 crash 2019-01-10 02:20:49 +01:00
twinaphex 9b801aee17 Buildfixes 2019-01-08 20:43:03 +01:00
twinaphex 6bd4d91038 Cleanups 2019-01-08 20:32:40 +01:00
Twinaphex 40997473ed
Merge branch 'master' into orbis2 2019-01-08 20:18:08 +01:00
orbea bfc366decc Squeeze extra blank lines with cat(1).
Example:

find . -type f -iname '*.c' | while read -r i; do
  cat -s "$i" > "$i.new"
  mv "$i.new" "$i"
done
2019-01-08 11:04:58 -08:00
krzys-h dcdcc938bf (UWP) Fix win32 nbio 2019-01-06 15:45:51 +01:00
orbea 34f3eb7277 qb: Fix '--disable-rgui'.
Also fixes a crash on startup with '--disable-rgui'.

Thread 1 "retroarch" received signal SIGSEGV, Segmentation fault.
0x0000000000529f52 in strlcpy_retro__ (dest=0x7fffffffbb17 "treaming_toggle",
    source=0x1 <error: Cannot access memory at address 0x1>, size=250)
    at libretro-common/compat/compat_strl.c:38
38	      while (--n && (*dest++ = *source++)) src_size++;
(gdb) bt
    dest=0x7fffffffbb17 "treaming_toggle",
    source=0x1 <error: Cannot access memory at address 0x1>, size=250)
    at libretro-common/compat/compat_strl.c:38
    size=250) at libretro-common/compat/compat_strl.c:60
    out_path=0x7fffffffbb10 "input_", dir=0x94b460 "input", path=0x0,
    delim=95 '_', size=256) at libretro-common/file/file_path.c:964
    prefix=0x94b460 "input", btn=0x0, bind=0x151e180 <input_autoconf_binds+4672>)
    at input/input_driver.c:2483
    binds=0x151cf40 <input_autoconf_binds>) at tasks/task_autodetect.c:172
    params=0x26adb40, task=0x26b74f0) at tasks/task_autodetect.c:252
    params=0x26adb40, task=0x26b74f0) at tasks/task_autodetect.c:393
    at tasks/task_autodetect.c:851
    at libretro-common/queues/task_queue.c:182
    at libretro-common/queues/task_queue.c:609
    at frontend/frontend.c:146
    at frontend/frontend.c:170

Fixes https://github.com/libretro/RetroArch/issues/7893
2019-01-05 16:54:40 -08:00
orbea 849259d8f6 libretro-common: Sort config file conditionally.
This allows optionally sorting configure files and is needed to fix the
order of inputs in the autoconfig profiles which should not be sorted
alphabetically.

Fixes https://github.com/libretro/RetroArch/issues/7873
2019-01-03 15:28:32 -08:00
psxdev 967bca8f9d [ORBIS] Add partial support for file_path 2019-01-03 21:23:44 +01:00
psxdev 1fd88b865e [ORBIS] Add retro_dirent support 2019-01-03 21:23:44 +01:00
psxdev d52de24e79 [ORBIS] Add support to config save for orbis 2019-01-03 21:23:44 +01:00
psxdev 63d61b05ca [ORBIS] Added nbio implementation for orbis 2019-01-03 21:23:44 +01:00
krzys-h 54ac14e205 Fix path problems after b201d669b5, again
My previous patch sometimes generated double slashes. All of these
problems are because the original version of this function assumed that
the app path always ends with a slash and the home path never does,
which is not true on UWP (they both have a slash)
2019-01-01 17:53:02 +01:00
krzys-h ad782e6eb4 Fix HOME path issues after b201d6 (libretro#7836) 2018-12-29 15:21:18 +01:00
krzys-h b201d669b5 First iteration of UWP support
Enough to kind of run

Working drivers: xinput, d3d11
Still missing: input driver with keyboard support, audio driver
2018-12-28 22:09:22 +01:00
Francisco Javier Trujillo Mata 69ad3273b9 Disable use of `setvbuf` for the PS2 2018-12-26 14:17:25 +01:00
Francisco Javier Trujillo Mata 5ba2509e7c Now the directories are working 2018-11-09 22:40:50 +01:00
Francisco Javier Trujillo Mata b4aedc801b Fixed issue on retro_dirent with if clausules 2018-11-09 22:40:50 +01:00
Francisco Javier Trujillo Mata 0880bd00b0 PS2 is compiling with null drivers 2018-11-09 22:40:50 +01:00
twinaphex 49a3514147 Revert "Revert "bugfix cheat saving""
This reverts commit 9862579610.
2018-10-11 03:27:06 +02:00
twinaphex c443d6b475 Revert "Revert this - was getting crashes in both OSX and MSVC 2003"
This reverts commit 7d0dba3007.
2018-10-11 03:26:58 +02:00
twinaphex 7d0dba3007 Revert this - was getting crashes in both OSX and MSVC 2003
in config_file.c inside config_get_entry
2018-10-10 23:34:16 +02:00
twinaphex 9862579610 Revert "bugfix cheat saving"
This reverts commit 4c3b06d640.
2018-10-10 23:27:19 +02:00
Sven 4c3b06d640 bugfix cheat saving 2018-10-10 11:10:49 -04:00
Sven f53e1ca4b1 fix new rumble types ; increase max displayed cheats to 6000 2018-10-10 09:15:46 -04:00
lifajucejo 9be2321c02 Add networking support to libnx 2018-09-27 21:23:01 -04:00
Rob Loach 9da261c6d9
Update config entries pointer to the new beginning of the list after sorting 2018-09-03 13:31:46 -04:00
twinaphex 7250181319 Add some __WINRT__ ifdefs 2018-08-17 14:51:27 +02:00
Brad Parker a1b831abdb allow 7z archives to have multiple files extracted at once 2018-08-06 20:44:59 -04:00
twinaphex 5b9115c848 C89_BUILD fixes 2018-08-01 01:27:30 +02:00
Sven c750235414
Merge branch 'master' into cheater 2018-07-26 19:40:20 -04:00
Sven 5f35249216 Implement robust cheat searching interface with rumble features 2018-07-25 19:19:14 -04:00
Brad Parker 7e609d6a05 fix some config entries not being saved 2018-07-16 23:01:21 -04:00
Brad Parker 62e89974af sort config file variables 2018-07-16 00:15:49 -04:00
twinaphex 5ba2a621c0 Silence warnings 2018-07-14 00:45:16 +02:00
Sven 83da70586e implement a way to set rewind_buffer_size via the UI 2018-07-13 16:12:09 -04:00
Stuart Carnie 167ad3b57d fix(Metal): Various Metal fixes
* OSD message background
* clear glui background
* add Metal to configuration
* added optional config to compile Metal build without OpenGL
* fixed fill_pathname_join_delim; if out_path and dir are same, don't
  strlcpy, as the results are undefined.
2018-07-12 21:33:18 -07:00
twinaphex 23b0444afe Update libretro-common 2018-05-28 17:30:56 +02:00
twinaphex 768ebbfdb5 Merge commit 'ce9ce1d35387ef8144e53bf071396fa075bfb6c5' as 'libretro-common' 2018-05-12 17:56:34 +02:00
twinaphex 0548349991 Remove libretro-common 2018-05-12 17:56:14 +02:00
twinaphex fd76c3b8b1 Change back to previous behavior 2018-05-07 01:29:21 +02:00
twinaphex e18f81eb74 Update libretro-common 2018-05-06 17:11:18 +02:00
twinaphex 7bc66ae710 Buildfixes for MSVC 2015 2018-05-03 15:20:06 +02:00
twinaphex 1f2ef858ab Update libretro-common 2018-04-27 23:12:24 +02:00
twinaphex de111ea903 Should fix some zip archives potentially not working on Linux; the
stream member of zlib was being set to random memory, so it was
attempted
 to be freed on line 73 of trans_stream_zlib.c
2018-04-25 10:10:22 +02:00
twinaphex be7eb4de1c Update libretro-common 2018-04-16 08:57:17 +02:00
David Walters adf4ed960e Handle null and empty string calls to retro_opendir with a consistent null return. 2018-04-13 10:31:21 +01:00
twinaphex 1751f4a0af Make it possible to read bigger files by replacing ssize_t with int64_t
and size_t with uint64_t
2018-04-13 00:18:11 +02:00
twinaphex e7bed050bc Fix memory leak 2018-04-12 20:54:06 +02:00
David Walters 801ecb019a patch retro_opendir to handle nullptr and empty-string input 2018-04-12 12:44:42 +01:00
twinaphex e71f56d4a3 Update libretro-common 2018-03-28 16:45:05 +02:00
twinaphex 89e912087b Put RARCH_INTERNAL ifdef around this 2018-03-28 16:41:37 +02:00
twinaphex 167b977c4d Fix some build errors with MSVC 2003/2005 cores 2018-03-28 16:22:35 +02:00
twinaphex 242eef6a6d Prevent problems with empty strings in the future 2018-02-17 11:41:25 +01:00
Brad Parker aaf35f53f8 fill_pathname_parent_dir_name: return failure if path has no slash 2018-02-08 23:19:12 -05:00
twinaphex 75b48a866f (3DS) Fix compilation error 2018-02-02 21:44:24 +01:00
twinaphex acdbf6f069 Cleanup retro_dirent.c 2018-02-02 19:09:25 +01:00
Brad Parker dbe270476a Prevent undefined behavior reported by UBSan
runtime error: member access within null pointer of type 'const struct dirent'
2018-02-02 11:43:24 -05:00
twinaphex e81ee5f0cb Simplifications 2018-01-31 23:13:47 +01:00
twinaphex f9a412dc11 Create fill_pathname_join_concat_noext and use it 2018-01-31 22:43:55 +01:00
Brad Parker a7f134b5a7 forgot to free memory 2018-01-28 15:56:35 -05:00
Brad Parker 722137296d add fill_pathname_parent_dir_name function 2018-01-28 15:55:27 -05:00
kwyxz b9585df325 Update Haiku port to allow it to build again 2018-01-20 00:19:01 -08:00
twinaphex bd73d4b98a Cleanups 2018-01-17 06:44:16 +01:00
twinaphex 11f26ed549 Refactor verbosity code - try to avoid log calls if verbosity is not
set
2018-01-17 06:28:26 +01:00
Twinaphex 57df01bbaa (Apple) Buildfix 2018-01-17 00:48:25 +01:00
twinaphex 61ff51be2f Start using string_is_equal predominantly 2018-01-16 22:53:38 +01:00
Rob Loach 26b9cb3c78
libretro-common: Clean up dependencies of file_path
This moves a few functions that were defined in file_path_special to libretro-common to clean up the dependency tree.
2018-01-13 00:27:49 -05:00
radius 3b334b60d6 add display name and config name to autoconf 2018-01-11 17:06:14 -05:00
Andrés dedcd26495
Merge pull request #6053 from aliaspider/master
(WIIU) add preliminary multi-pass shader support.
2018-01-05 21:48:30 -05:00
aliaspider 55d262f5d8 (WIIU) add preliminary multi-pass shader support.
can load *.slangp and *.slang files. since there is no runtime compiler,
precompiled shaders (*.gsh) need to be present next to each *.slang
source file.
2018-01-06 03:39:53 +01:00
twinaphex 8ca98e0a18 Buildfix 2018-01-05 14:14:42 +01:00
Twinaphex f4250a1ad5 Silence unused variable warnings 2018-01-05 14:13:58 +01:00
Brad Parker 228049df11 7zip: only use Unicode file open on Windows 2018-01-02 20:48:19 -05:00
bparker06 c51b107d9c
Update archive_file_7z.c 2018-01-02 20:24:48 -05:00
Brad Parker 54e7ec8e79 win32: use Unicode file I/O for 7zip archives when available 2018-01-02 20:21:55 -05:00
twinaphex d1ad5c336e Silence warnings 2018-01-02 06:28:05 +01:00
Alcaro e0eb5e698e We'll want a test suite at some point, here's the first test 2018-01-01 20:55:26 +01:00
Alcaro a79b3250ce why is -common trying to call out of -common 2018-01-01 20:42:10 +01:00
twinaphex 07f13876fc Fix playlist issues with extract_value - the name of the last playlist
entry in history list was being reused for the next playlist entry
2018-01-01 20:17:41 +01:00
twinaphex 21c1acac73 Prevent another Coverity warning - memory corruption 2018-01-01 17:24:00 +01:00
twinaphex b279dfcb64 Simplify extract_value 2018-01-01 16:45:18 +01:00
twinaphex 515918f80c config_file.c - fix Coverity warning - resource leak of
path
2018-01-01 16:37:20 +01:00
twinaphex e566a5591b Revert "Revert config_file.c"
This reverts commit 2f422a457f.
2018-01-01 07:45:57 +01:00
twinaphex f2ddc8eff0 Revert "Simplify config_file_write"
This reverts commit a4500eeafc.
2018-01-01 07:45:56 +01:00
twinaphex 20122d21ee CXX_BUILD buildfix 2017-12-30 08:12:38 +01:00
Brad Parker a3a5f6e07e win32: add Unicode versions of getenv, GetModuleFileName, LoadLibrary and _mkdir 2017-12-27 02:55:53 +00:00
twinaphex a4500eeafc Simplify config_file_write 2017-12-20 17:07:31 +01:00
twinaphex 2f422a457f Revert config_file.c 2017-12-20 02:52:01 +01:00
Alcaro b7249525d4 guess drunk is better than untested 2017-12-19 00:13:19 +01:00
Alcaro b2d5fad4f5 strtok is drunk 2017-12-19 00:08:25 +01:00
twinaphex c6217ef14b (file_path.c) Get rid of libretro.h dependency 2017-12-14 20:06:15 +01:00
twinaphex c7c4b723d6 Move path_file_exists to filestream and do away with filestream
dependencies in file/file_path
2017-12-14 20:05:46 +01:00
Brad Parker 8c0adf3594 move path_file_rename and path_file_remove into VFS 2017-12-14 13:32:26 -05:00
gblues 6904101c44 Clean up trailing whitespace
== DETAILS

Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
twinaphex 61d3f90cae Add hint defines to libretro.h 2017-12-11 12:53:47 +01:00
twinaphex 318f17c4cb Start using VFS API constant defines 2017-12-11 12:15:00 +01:00
twinaphex e1461cc0de Get rid of hashes in config_file.c 2017-12-11 11:40:36 +01:00
twinaphex 2fd8210e59 Create shareable filestream_getline 2017-12-10 22:35:08 +01:00
twinaphex 2e979ec537 Replace function signatures of file_stream file functions 2017-12-10 22:25:38 +01:00
twinaphex 95cc8e12d2 Get rid of RFILE_MODE_READ_TEXT dependency for config file/playlist 2017-12-10 21:28:13 +01:00
Alcaro e07ed18105 Fix text mode dependency 2017-12-10 21:00:24 +01:00
Brad Parker 1a928b9c50 omit extra slash at end of path, Win95/98 doesn't like them 2017-12-09 16:38:33 -05:00
Brad Parker 49d0299808 LEGACY_WIN32: check for target of less than Win2K instead of < vc2005, since Win98 does not support Unicode 2017-12-04 22:49:08 -05:00
Alcaro a6ef704369
Update config_file.c 2017-12-04 16:47:27 +01:00
twinaphex 059354de2f Cleanup for config_file_write 2017-12-04 16:26:28 +01:00
Alcaro ff4dca86f9
Turns out this is char*, let's cast because CXX_BUILD wants that 2017-12-04 15:01:58 +01:00
Alcaro 300052626f
Use FILE* all the way
Fixes platforms where RFILE isn't using the FILE* backend, needed for #5664
2017-12-04 14:30:32 +01:00
twinaphex 9558e569f1 We can still make use of this for PowerPC Mac 2017-12-04 05:56:03 +01:00
twinaphex f53093de4d Default to nbio stdio for PowerPC Mac 2017-12-04 03:12:45 +01:00
twinaphex 97529ade6e OSX PowerPC might not define O_CLOEXEC 2017-12-04 02:48:08 +01:00
twinaphex 2203deb499 Need to include config.h here 2017-11-30 03:43:51 +01:00
twinaphex 6ed5a911d7 Create path_mkdir_error 2017-11-28 08:59:33 +01:00
Brad Parker ae6892a89a nbio: buildfix for Windows versions older than 2000 2017-11-27 17:48:07 -05:00
Alcaro a96e3e1ead
fix missing %s 2017-11-27 17:16:22 +01:00
Alcaro 4fb12c4bd3
#5802 2017-11-27 17:09:16 +01:00
orbea 768b1b433c libretro-common: Silence redefined warning. 2017-11-26 20:14:06 -08:00
twinaphex 00d57af005 C89_BUILD fixes 2017-11-26 22:53:42 +01:00
twinaphex e35394d4bd Fix MSVC 2003 build 2017-11-26 22:41:34 +01:00
Alcaro 3fa035ba2a This include doesn't go here 2017-11-25 20:25:59 +01:00
twinaphex 369be389f4 Don't need HAVE_MMAP for linux 2017-11-25 18:42:12 +01:00
Twinaphex ff7a244f5b use Unix mmap for OSX/macOS now 2017-11-25 18:39:09 +01:00
twinaphex e78ec12973 Can't have redefinitions of nbio_t in Griffin 2017-11-25 18:33:22 +01:00
twinaphex fe12e079bb Reimplement NBIO windows mmap 2017-11-25 17:38:37 +01:00
twinaphex 72b157bfcd DOn't rely on HASVE_MMAP for nbio_windowsmmap.c 2017-11-25 07:26:06 +01:00
twinaphex 0485bab0ef Add HAVE_CONFIG_H to nbio_intf.c 2017-11-25 06:15:30 +01:00
twinaphex d4c3108b88 Implement new nbio interface implementations 2017-11-25 05:51:33 +01:00
twinaphex 7a772b9cd4 Create nbio_intf.c 2017-11-25 05:35:55 +01:00
twinaphex 81e543a4c9 Cleanups 2017-11-25 05:21:35 +01:00
twinaphex 64a6d6f184 Turn nbio_windowsmmap.c Unicode compatible 2017-11-25 05:18:30 +01:00
twinaphex 395e84ede2 Style nits 2017-11-25 02:18:24 +01:00
twinaphex ac651b7581 Cleanups 2017-11-25 02:12:15 +01:00
twinaphex 0f6c453428 Cleanups 2017-11-25 02:10:04 +01:00
Alcaro 5999999cd3 Add Linux-native nbio too 2017-11-24 23:56:05 +01:00
Alcaro 5a6aad3dc7 Add mmap nbio for Windows too 2017-11-24 22:43:22 +01:00
Alcaro 7817ba2340 Add ugly check 2017-11-24 22:14:03 +01:00
Alcaro 053fbd6f27 Add mmap-based nbio implementation (which is too fast for the tests but otherwise passes) 2017-11-24 22:08:57 +01:00
twinaphex 92ea40d96e Fix edge case when file is empty 2017-11-24 21:39:10 +01:00
Brad Parker 07f3919811 only call setvbuf right after opening file, and use our own buffer for C89 compliance 2017-11-17 02:28:45 -05:00
twinaphex b05b27bff6 config_file.c - cleanups 2017-11-07 08:08:22 +01:00
twinaphex 13e0bd1932 Change function signature of file_path_rename 2017-11-06 19:17:42 +01:00
twinaphex e5d4e2ac0a Silence a lot of warnings 2017-11-06 19:13:54 +01:00
twinaphex 451dc774b0 Update libretro-common 2017-11-06 05:26:07 +01:00
Rob Loach e29e8d9c62
Fix for included 7zip headers 2017-11-04 16:21:02 -04:00
Brad Parker 68a8198e4a convert more file IO functions to use filestream, fixes encoding issues on Windows 2017-10-29 12:08:24 -04:00
Brad Parker 1842471eb1 use filestream_open to check if a file exists 2017-10-28 16:00:51 -04:00
Brad Parker f3aceefe84 win32: use W-functions for nbio file IO too 2017-10-18 12:30:44 -04:00
twinaphex f8a60b2b76 Create LEGACY_WIN32 ifdef 2017-10-16 01:51:59 +02:00
twinaphex 8464ad30bd (Xbox 360) Buildfixes 2017-10-16 01:33:17 +02:00
Brad Parker 1b1d5c468d win32: use unicode functions for file IO if supported 2017-10-15 17:41:34 -04:00
Brad Parker a7c8cc88e5 win32: support local multibyte encoding for file paths 2017-10-14 23:13:24 -04:00
twinaphex 8238545bef Cleanups 2017-10-04 06:53:47 +02:00
twinaphex 702f1276d6 Silence warnings 2017-10-03 00:53:09 +02:00
Alcaro c91c4ff9c0 Nuke some more ifdefs and warnings 2017-10-03 00:35:41 +02:00
twinaphex 5379b12e7c FIx some new Coverity errors 2017-09-29 05:39:06 +02:00
Alcaro 3374b0ffde Add why we're doing this 2017-09-29 04:04:51 +02:00
twinaphex 8eb28eaae9 Add this for Wiiu debugging 2017-09-29 04:03:13 +02:00
twinaphex 0f1d0ebfa9 config_file.c - use malloc instead of calloc 2017-09-29 03:56:33 +02:00
twinaphex df60512a0d Cleanup our dep version of 7zip - we don't want non-stdint types.
Other misc. cleanups
2017-09-21 19:23:09 +02:00
Brad Parker 07566c51a1 VC6 buildfixes, add Makefile.griffin target for it 2017-09-07 11:50:10 -04:00
Brad Parker 0a1b3fedc0 VC6 support (targets NT 3.51) 2017-09-06 23:03:02 -04:00
Brad Parker 1204715525 msvc throws debug assert with fopen on a null string 2017-09-03 23:52:58 -04:00
twinaphex c7e6f19920 Cleanup retro_dirent_is_dir 2017-08-06 14:21:18 +02:00
twinaphex e3192ad3c5 Get rid of some incompatible implicit declaration warnings 2017-08-06 13:55:32 +02:00
twinaphex 3a141cb891 Create retro_dirent_include_hidden 2017-07-04 04:09:45 +02:00
twinaphex 2fda0b7e66 Simplify retro_dirent 2017-07-04 03:30:53 +02:00
twinaphex 4813019c58 Cleanup 2017-06-28 07:53:05 +02:00
twinaphex 25c18bb3ce (config_file.c) Cleanups 2017-06-28 06:41:58 +02:00
twinaphex 8fbcf34e02 Cleanup config_file.c 2017-06-28 06:25:32 +02:00
twinaphex ddb4867c52 (file_path.c) Cleanups 2017-06-28 04:51:58 +02:00
twinaphex e1041030a2 Get rid of stdstring.h dependency for file_path.c 2017-06-28 04:44:33 +02:00
twinaphex 50b07ad8c4 Move retro_le to archive_file_zlib.c 2017-06-28 04:20:52 +02:00
twinaphex d3868cc06f Get rid of retro_assert usage in file_path.c 2017-06-26 05:33:47 +02:00