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
Ghabry
5faf6a124d
UWP VFS: Calculate buffer offset correctly when read fails due to EOF
2019-04-28 12:15:46 +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
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
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
Francisco Javier Trujillo Mata
4c24a17119
Extract IRX variables
2019-03-15 20:19:14 +01: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
orbea
28ff4b391a
Clean up white space.
2019-02-03 16:00:50 -08: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
109de0bebb
VFS v3: stat, mkdir, directory listings
2019-01-13 00:33:24 +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
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
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
psxdev
967bca8f9d
[ORBIS] Add partial support for file_path
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
0880bd00b0
PS2 is compiling with null drivers
2018-11-09 22:40:50 +01:00
lifajucejo
9be2321c02
Add networking support to libnx
2018-09-27 21:23:01 -04:00
twinaphex
5b9115c848
C89_BUILD fixes
2018-08-01 01:27:30 +02: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
1f2ef858ab
Update libretro-common
2018-04-27 23:12:24 +02:00
twinaphex
be7eb4de1c
Update libretro-common
2018-04-16 08:57:17 +02: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
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
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
57df01bbaa
(Apple) Buildfix
2018-01-17 00:48:25 +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
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
Brad Parker
a3a5f6e07e
win32: add Unicode versions of getenv, GetModuleFileName, LoadLibrary and _mkdir
2017-12-27 02:55:53 +00: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
2e979ec537
Replace function signatures of file_stream file functions
2017-12-10 22:25:38 +01: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
twinaphex
6ed5a911d7
Create path_mkdir_error
2017-11-28 08:59:33 +01:00
Alcaro
3fa035ba2a
This include doesn't go here
2017-11-25 20:25:59 +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
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
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
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
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
d3868cc06f
Get rid of retro_assert usage in file_path.c
2017-06-26 05:33:47 +02:00
twinaphex
cf71d465a3
Turn mkdir_norecurse into static function
2017-06-16 15:33:06 +02:00
twinaphex
6af5bd01bf
Merge retro_stat and file_path
2017-06-16 15:00:11 +02:00
twinaphex
dd517f4660
Try to avoid directly calling strcmp
2017-04-21 13:56:15 +02:00
twinaphex
64bb848daf
Update headers (pt. 2 - libretro-common)
2017-01-22 13:58:20 +01:00
twinaphex
d4796caabd
(libetro-common) Turn path_contains_compressed_file into a macro
2016-12-17 14:01:25 +01:00
twinaphex
96ffd8e025
Revert "Remove HAVE_COMPRESSION ifdefs in file_path.c"
...
This reverts commit 4103b70833
.
2016-12-17 12:55:38 +01:00
twinaphex
4103b70833
Remove HAVE_COMPRESSION ifdefs in file_path.c
2016-12-17 12:20:49 +01:00
twinaphex
5364b0b837
Move compression-related code outside of libretro-common file_path.c
...
and move it into RetroArch's file_path_special.c file instead
2016-12-17 11:54:46 +01:00
twinaphex
bd67208d74
Remove some unnecessary ifdefs for file_path.c
2016-12-17 11:16:43 +01:00
twinaphex
4fb6808321
libretro-common is MIT and we don't want individual copyright
...
per authors here; RetroArch is GPL and it's fine there
2016-10-27 19:52:58 +02:00
Brad Parker
d1d5584d18
update copyright
2016-10-27 11:47:10 -04:00
twinaphex
481ebced22
Prevent implicit memsets
2016-10-09 09:56:03 +02:00
twinaphex
5f5571e241
(libretro-common) don't do implicit memset
2016-10-08 20:04:48 +02:00