1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 12:15:49 +00:00
Commit Graph

233 Commits

Author SHA1 Message Date
Rob Loach
41db4b022a
vfs_implementation: Fix warning of unused include_hidden parameter (#16540)
This fixes a warning of the `include_hidden` parameter not being used outside of `_WIN32`.

```
vfs/vfs_implementation.c:1063:30: error: unused parameter ‘include_hidden’ [-Werror=unused-parameter]
 1063 |       const char *name, bool include_hidden)
      |                              ^
cc1: all warnings being treated as error
```
2024-05-17 08:12:33 -07:00
LibretroAdmin
0bbfba8137
Update vfs_implementation.c 2023-09-30 10:41:35 -07:00
greenchili2
fdd5e7cea0
Fix bug that was causing weirdness in Wii builds. (#15752)
Things like the info files not being read.  User defined directories not sticking ( likely not detected ) and all kinds of other goodness.
2023-09-30 10:38:32 -07:00
libretroadmin
10c60cdd4d Rewrite retro_vfs_file_remove_impl 2023-08-20 05:36:03 +02:00
libretroadmin
d167c4f62e (PSL1GHT) Buildfix 2023-08-20 04:56:19 +02:00
libretroadmin
a9733ab418 (VFS/libretro-common) Cleanups 2023-08-20 04:29:42 +02:00
libretroadmin
246cceeb27 Silence more signedness warnings 2023-06-14 19:51:31 +02:00
libretroadmin
48e551a2e6 (libretro-common/PSL1GHT) Don't redefine defines 2023-02-20 19:32:59 +01:00
libretroadmin
258c161d84 (libretro-common/vfs_implementation) Don't rely on ps3_defines.h which pulls in a ton of other header files
which might not be available for a given core
2023-02-20 19:26:54 +01:00
libretroadmin
6624126885 (MSVC) silence warnings 2023-02-18 17:04:23 +01:00
libretroadmin
daa9e352cc Remove asserts 2023-01-09 00:51:05 +01:00
gblues
c51b1491ef
Get mkdir working on wiiu (#14490)
== DETAILS
Looks like Wii U's mkdir() implementation doesn't like trailing
slashes either.

Since we already have an implementation to handle this, I just added
Wii U to it.
2022-10-07 06:19:54 +02:00
LibretroAdmin
4251eb5f61 Turn uwp_mkdir_impl function static 2022-09-30 17:50:07 +02:00
Filipe Azevedo
788d602ec7
Fix various vfs / file stream issues (#14384)
* VFS: Fix stream size after truncate / write calls
Those changes ensure the stream size get updated correctly after a
truncate or write call.
* File Stream: Fix file stream eof
After a write call, EOF would be incorrect because it was only updated
after a read call.
2022-09-04 23:11:54 +02:00
LibretroAdmin
ab39c6c2c8 * VFS:
- Simplify retro_vfs_file_seek_impl
- Some cleanups of vfs_implementation_uwp.cpp - backport some of the
improvements made to the non-UWP version
2022-09-03 01:42:57 +02:00
LibretroAdmin
fcbc71fef8 retro_vfs_opendir_impl - one less unnecessary strlen for Win32 2022-08-29 10:04:18 +02:00
LibretroAdmin
b2634ea588 * Create fill_pathname_join_special - and specify fill_pathname_join
as deprecated.
* Use fill_pathname_join_special in the vast majority of cases where
we can ensure out_path is a new empty string
* Get rid of some extension concatenation with strlcat where encountered
* Some general cleanups with NULL termination of strings that get immediately
passed to strlcpy/strlcpy-adjacent functions
2022-08-04 14:19:38 +02:00
LibretroAdmin
c240340c91 (vfs_implementation.c) We need to include stdstring.h for string_is_empty 2022-08-03 19:49:02 +02:00
LibretroAdmin
8e6369ef33 (vfs_implementation.c) An unnecessary repeated conditional removed 2022-08-03 15:19:54 +02:00
LibretroAdmin
7871e9fbc1 retro_vfs_file_open_impl - bunch of inefficiencies here:
- was doing a strlen first on path to calculate the length
- stored at least three local variables for string constants
- did another memcmp check after doing the length comparison conditional first
Simplify all this into a simple string comparison checking if the
path starts with the string 'vfsonly://' and/or 'cdrom://' -
avoid both strlen and memcmp cost. Also removed the need for
stdstring.h header include - just translated STRLEN_CONST into
(sizeof(x)-1) - no header file dependency for the only usage of stdstring.h
in this file
2022-08-03 15:07:02 +02:00
libretroadmin
8d12918243 (libretro-common) Small cleanups - don't NULL-terminate string
if we pass it off to fill_pathname_join (or another function that
uses strlcpy under the hood)
2022-07-22 19:33:30 +02:00
libretroadmin
113b9e96d1 Miscellaneous cleanups to VFS layers:
* Indents
* Simplifications
2022-07-17 07:29:00 +02:00
OsirizX
c6d51fdb32 [ORBIS] Initial changes for PS4 2022-05-21 16:31:10 +02:00
tunip3
fc16da3440
remove copy perms as its inefficient as we can just directly assign the new acl and that works (#13926) 2022-05-11 19:16:04 +02:00
twinaphex
460f5e745d Silence some MSVC 2019 code analysis warnings 2022-03-05 14:39:56 +01:00
Francisco Javier Trujillo Mata
86b47b4859
[PSP] Update Retroarch to latest PSPDev status (#13544)
* Added newlib changes

* Add action to launch PPSSPP simulator

* Remove legacy config for the stack and heap

* Add pthread

* Simplify kernel_functions and improve references to HAVE_KERNEL_PRX

* Add some flags

* Improve audio init/deinit

* Improve exit by clicking home

* Add CI for PSP1

* Update PSP.yml
2022-01-25 03:50:18 +01:00
twinaphex
5241d3e5d6 Cleanups 2022-01-20 06:09:43 +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
tunip3
62528a483f
Fix roms over 4gb (approx) failing to load, improve copy times, fix scanning for playlists [UWP/XBOX] (#13348)
* Fix scanning for playlists

* Fix issues where games over 4gb (approx) would fail to load and also speed up loading times
2021-12-12 17:29:57 +01:00
tunip3
d75127e9c2
Fix issue where files over 2.5gb approx would fail to load on uwp/xbox (#13150)
* fix issue where files over 2.5 gb would fail to read

* fix issue where trying to get the file size on excessively large files would fail
2021-10-26 01:43:44 +02:00
Tunip3
be7d6832d3 strip out winrt storagefiles 2021-10-01 09:58:17 +01:00
Tunip3
d85919d0e3 delete functions that were commented out 2021-09-30 18:59:20 +01:00
Tunip3
9d25ba7ac5 reimplent vfs files without using storagefile 2021-09-25 17:44:25 +01:00
tunip3
895676430f
make dir stuff more like the normal win32 stuff (#13006)
Co-authored-by: Tunip3 <tunip3@users.noreply.github.com>
2021-09-17 17:41:56 +02:00
jdgleaver
bae6f8e097
(vfs_implementation.c) Place 'memmap.h' include behind '#if defined(HAVE_MMAP)' guard (#13003) 2021-09-17 14:25:44 +02:00
tunip3
249e24fbe7
fix issues where provided paths could sometimes contain a double slash, this would cause issues as path formatting was disabled (#12999)
Co-authored-by: Tunip3 <tunip3@users.noreply.github.com>
2021-09-15 21:44:58 +02:00
Tunip3
2991e82575 fix issue where it would fail to get a handle for a file as the path was too long 2021-09-12 20:26:09 +01:00
tunip3
5ae7bc2ce2
use findfirst file and manually get all items in a dir to reduce errors and increase access (#12947)
Co-authored-by: Tunip3 <tunip3@users.noreply.github.com>
2021-09-06 14:27:49 +02:00
Tunip3
bb0fe6c2d1 fix extraction issues 2021-08-26 23:18:42 +01:00
Tunip3
45a16fab1b clean up retro_vfs_file_open_impl 2021-08-25 23:12:29 +01:00
Tunip3
8396bd599d strip out unneeded uwp specific file io functions 2021-08-25 15:54:09 +01:00
Tunip3
4116cb6fa5 fix issue where filesizes where not returned properly, this fixes loading arcade dat files 2021-08-13 20:33:27 +01:00
Tunip3
a4017e69e4 fix cd based beetle cores 2021-08-10 17:24:31 +01:00
Tunip3
be1a768bca improve uwp fileio by using from app variants whereever possible 2021-07-31 04:36:08 +01:00
Ash Logan
a3be19214e vfs: Use 128k vbufs for Wii U
We have loads of RAM and large vbufs are *very* beneficial
2021-07-18 22:33:17 +10:00
twinaphex
46dcf1204e Revert "Backport tunip3 - replace win32 functions with UWP safe variants in UWP vfs driver"
This reverts commit 585af66b5c.
2021-06-27 05:39:48 +02:00
twinaphex
585af66b5c Backport tunip3 - replace win32 functions with UWP safe variants in UWP vfs driver 2021-06-23 18:45:07 +02:00
twinaphex
de88edf56c Fix header include now that defines/ files are in libretro-common 2021-05-19 16:47:40 +02:00
U-LAPTOP-0BS9KNOH\crystal
23acacf436 PSL1GHT salamander build fix 2021-05-19 00:31:09 +02:00
CrystalCT
96a1320977 Improved vfs implementation on PSL1GHT using lv2 functions 2021-03-15 08:38:34 +01:00