LibretroAdmin
88bdaffa87
path_basedir_wrapper - get rid of unnecessary strlcpy
2022-07-31 12:42:50 +02:00
LibretroAdmin
36edb15c5b
path_parent_dir - don't do implicit strlen inside
2022-07-31 12:31:55 +02:00
libretroadmin
05622ebe85
Some trivial strlen usage simplifications where possible, removing
...
the need for strlen
2022-07-20 17:23:28 +02:00
libretroadmin
ba35f0de93
(file_path.c) Do away with trivial strlen checks (checked if
...
return number was <= 2/>= 2, instead check first two characters
of the string directly instead for NULL
2022-07-19 23:23:37 +02:00
LibretroAdmin
29774f5b7a
Small opts ( #14186 )
...
* (joypad_connection) Small optimizations -
* Turn functions static where possible
* Hose strlen call out of loop
* (input_driver.c) General cleanups:
* Some small code/style nits
task_screenshot.c:
* Move widget callback function for screenshots to task_screenshot.c
(file_path.c):
* Turn get_pathname_num_slashes into static function
* path_linked_list_free - always returns true, so get rid of return value
* path_linked_list_new - fix function signature
* path_get_archive_delim - do not NULL-terminate string, already done by strlcpy later on
General:
* Slight optimizations - use int/size_t for loop counter variable instead of unsigned
* Take advantage of fact that strlcpy already NULL-terminates, so don't do this explicitly
outside if we're just going to end up calling strlcpy/fill_pathname_join on it anyway
2022-07-19 10:01:33 +02:00
libretroadmin
01d68fdb7e
Remove unused fill_pathname_basedir_noext
2022-07-12 00:09:22 +02:00
libretroadmin
293722ac38
Get rid of fill_pathname_join_concat_ext
2022-07-11 22:01:20 +02:00
libretroadmin
b7926605f4
Remove fill_short_pathname_representation
2022-07-11 21:40:09 +02:00
libretroadmin
b1c9f93903
(file_path) remove deprecated functions
2022-07-11 21:29:01 +02:00
libretroadmin
adf9994828
Deprecate fill_pathname_base_noext
2022-07-11 20:13:44 +02:00
libretroadmin
7186d75c44
Designate fill_pathname_noext as deprecated function
2022-07-11 20:03:42 +02:00
libretroadmin
d706c9c5bf
Start deprecating trivial functions in file_path.c
2022-07-11 19:56:46 +02:00
libretroadmin
0d4ef1cef4
(file_path.c) Call trivial strlcpy/strlcat operations directly
...
instead of going through functions
2022-07-11 17:23:06 +02:00
libretroadmin
6438d575d4
(file_path.c) Simplifications
2022-07-11 17:14:09 +02:00
libretroadmin
0e85113eb3
(libretro-common) Style nits/cleanups
2022-07-10 18:13:49 +02:00
HyperspaceMadness
8d177ed865
Shader Load Extra Parameter Reference Files
...
When a shader preset is loaded now when there are more than one #reference line the parameter values will be loaded from the references after the first one
2022-06-04 20:12:21 -04:00
LibretroAdmin
6ba8fe225d
Revert "Shader Preset Loading of Multiple additional #references lines for settings"
2022-05-30 02:39:25 +02:00
Remi McGill
684889507b
Shader Loading of Multiple References for settings
...
Multi reference settings working
Config fixes
Multi-Reference Loading Working, Checking for shader chain not working
Checking References is working
Improved path_linked_list_add_path
Simplify path list stuff
Fixed Static Definition
Fixes
Fixes
Fix to Trigger PR Update
Removed Legacy Orbis which got left in a merge
Memory Leak Fix
2022-05-24 14:07:55 -04:00
Vladimir Serbinenko
2f130a23e4
Allow loading files from archive subdirectory ( #13443 )
...
* Allow loading files from archive subdirectory
Common example is "games.7z#game1/version1.ext" current code assumes that
everything that is before last slash is part of filesystem directory which
is false in this case.
* Fix listing of archive subdirectories
Currently file_archive_get_file_list_cb returns 0 on skipped entries.
It's wrong as calling convention for it is "0 means to stop iterating".
So on first extensionless file or an explicitly listed directory
further listing has stopped
2022-01-11 13:59:38 +01:00
Manuel Alfayate Corchete
e5215d9e29
Fix incorrect file names for remap files when the content path doesn't have a preceding slash. ( #13385 )
2021-12-20 23:24:19 +01:00
tunip3
6c123dd078
Mitigate need for vfs cores on ntfs drives [UWP/XBOX] ( #13368 )
...
* make check for standard io by access rather than the just assuming based on path string
* add code to auto permissions so files can be accessed by non vfs cores
(no exfat or fat32 support yet)
* remove commit from macro because apparently it causes issues
Co-authored-by: Tunip3 <tunip3@users.noreply.github.com>
2021-12-17 13:46:04 +01:00
twinaphex
619398bbe4
Backport parts of 73c0760236
2021-11-09 23:12:57 +01:00
twinaphex
b375e08c67
(libretro-common) fill_pathname_abbreviated_or_relative - fix warning -
...
variable is uninitialized
2021-08-11 18:50:03 +02:00
Autechre
375eb4b852
Merge pull request #12459 from toshixm/fix_12103
...
Fix garbled path string
2021-07-08 12:05:07 +02:00
jdgleaver
eafeb83d0b
Fix archive delimiter detection when file path contains no slashes
2021-06-28 10:40:37 +01:00
jdgleaver
b5df2b883a
Fix loading of archived content with file names containing '#' characters
2021-06-03 16:40:13 +01:00
toshixm
1218aebfbf
static allocation instead of malloc()
2021-06-03 15:26:33 +09:00
toshixm
935c7d0e2c
use _wfullpath() instead of _fullpath()
2021-05-30 09:17:06 +09:00
twinaphex
637cff628f
* Simplify RARCH_CTL_IS_CORE_LOADED
...
* Create specialized function path_basename_nocompression
2021-04-11 17:27:31 +02:00
twinaphex
5aaf4150e2
(file_path.c) Use strlcpy for these instead of snprintf
2021-03-24 17:26:34 +01:00
twinaphex
c43b0f53bf
(file_path) Get rid of all the platform-specific headers
2021-02-21 18:50:17 +01:00
twinaphex
552f973833
Cleanups/remove unused variables
2021-01-16 17:17:16 +01:00
Autechre
9797ba9f27
Merge pull request #11743 from HyperspaceMadness/Shaders_Fix_Simple_Preset_Relative_Texture_Paths
...
Shaders Load Refactor and Fix Referenced Texture Loading
2020-12-31 16:13:20 +01:00
twinaphex
c4dc28319f
Remove obsolete headers
2020-12-30 00:22:31 +01:00
twinaphex
b1af12efc9
Add more PSL1GHT ifdefs
2020-12-27 18:56:00 +01:00
HyperspaceMadness
0c526b6498
Shaders Load Refactor and Fix Referenced Texture Loading
...
Partial update to work with shaders directly
More Edits
More changes
more shader fixes
More Fixes Compiling, reference load still wrong
Added Feedback & things are working
Logging Fixes
Log Fix
More Fixes
Added Feedback Logging
Fixes for file pathing in Linux
Fix GLCore and Crash in QT Saving
Code Cleanup
Removed Unused Function filepath.c
Code Cleanup
2020-12-26 21:09:27 -05:00
twinaphex
870707dbe8
Remove obsolete __CELLOS_LV2__ references - use PSL1GHT instead
2020-12-19 15:32:26 +01:00
twinaphex
0e49f058f3
Use strcpy_literal in more places
2020-09-19 23:59:06 +02:00
twinaphex
74a3e5be8a
Simplify is_path_accessible_using_standard_io
2020-08-24 23:41:10 +02:00
twinaphex
3680804217
Undo path_basedir_size
2020-08-04 03:05:20 +02:00
twinaphex
be0148406e
fill_pathname_application_dir - cleanup
2020-07-11 19:45:24 +02:00
twinaphex
8656b3d6f8
Create specialized optimized path_basedir_size
2020-07-11 19:29:43 +02:00
twinaphex
e727e85b1d
Updates
2020-06-25 14:01:19 +02:00
twinaphex
aa48eeb98e
Turn path_default_slash uppercase, and do some optimizations
2020-06-25 13:36:01 +02:00
twinaphex
601a73fa8b
Use string_starts_with_size where possible - avoids the strlen
2020-06-25 12:51:04 +02:00
jdgleaver
0a33e562f4
Add option to backup/restore installed cores
2020-06-04 12:20:58 +01:00
twinaphex
0edd97d5db
file_path.c) Cleanup
2020-05-21 20:04:36 +02:00
jdgleaver
f522cfcce8
Optimise 'path_is_absolute()'
2020-05-21 13:28:42 +01:00
Francisco Javier Trujillo Mata
1eeb3dcf30
Adapt PS2 port to new SDK with newlib support (CDVDFS support is missing)
2020-05-20 20:13:19 +02:00
jdgleaver
c346e1f816
Various file path handling optimisations
2020-05-20 17:05:22 +01:00
twinaphex
4f9a3f6813
Update
2020-04-28 16:25:00 +02:00
twinaphex
bdf9969c7e
Update libretro-common
2020-04-23 07:20:06 +02:00
Vladimir Serbinenko
2fb7ba22e5
PSL1GHT port
...
Working:
* packaging
* running cores
* switching cores
* gamepad including axis
* rgui
* audio
* video
Not working:
* OSD
* menus other than rgui
* shaders
* Graphical acceleration
* Proper signing
* ODE build
* rumble
* keyboard
* mouse
Not tested:
* A lot
2020-03-30 05:39:22 +02:00
twinaphex
cd9ca691ca
(libretro-common) Update copyright
2020-01-31 15:43:42 +01:00
twinaphex
d631da7d11
Start taking settings dependencies out of rarch_log_file_init
...
function
2020-01-30 19:04:05 +01:00
twinaphex
df8f93e9d5
Split up VFS file_path code into separate file
2020-01-09 15:44:48 +01:00
Twinaphex
ae7d956341
Silence warning
2019-09-23 01:44:53 +02:00
twinaphex
b94b9e2adb
Go back to plain strlcpy/strlcat - probably best to look at
...
opportunities to reduce these calls vs. replacing them with
unsafe macros
2019-09-23 00:19:01 +02:00
LazyBumHorse
db723df879
fix path_relative_to
2019-09-22 16:29:54 +02:00
twinaphex
7cfd996802
Add return value to fill_pathname_noext
2019-09-21 01:41:56 +02:00
twinaphex
6d8bc91220
Start returning sizes for file_path functions
2019-09-21 00:01:09 +02:00
twinaphex
3b057d9605
Start using STRLCAT_CONST_INCR and STRLCPY_CONST
2019-09-20 23:33:17 +02:00
twinaphex
15470596ad
Remove 'puts' lines
2019-09-19 04:19:18 +02:00
twinaphex
f4c6b06b49
(file_path.c) Remove some strlcpy/strlcat invocations
2019-09-19 03:45:18 +02:00
twinaphex
8fa6230426
Cleanups
2019-09-18 02:16:47 +02:00
twinaphex
5024b77492
Prevent more strlcats that are quite trivial
2019-09-17 02:43:40 +02:00
twinaphex
4d45174940
file_path.c - cleanups
2019-08-11 22:37:23 +02:00
Brad Parker
7935cc80ee
media: add function to parse cue and detect system from first data track
2019-07-30 02:37:00 -04:00
LazyBumHorse
6285c05948
add resolve_symlinks parameter to path_resolve_realpath() and cleanup playlist_resolve_path()
2019-07-22 13:44:35 +02:00
LazyBumHorse
7006764c12
replace realpath() by custom code which does not resolve symlinks
2019-07-22 12:10:28 +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
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
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
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
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