lainon
fec708489a
Correct cleaning string and remove unused vars
2022-09-30 12:26:30 +03:00
tunip3
42ae18eea5
Replace Win32 file IO with UWP safe variants and add support for getting drives to UWP build ( #15652 )
...
* replace, all win32 file io with their matching uwp safe variants
* add support for drive listing
* Delete NATIVEAPP.ipch
* Update .gitignore
* fix indentation
2022-07-06 23:59:47 +02:00
Henrik Rydgård
8ab627d6e9
Workaround for the /PSP path thing. Needs testing.
2021-07-25 17:32:12 +02:00
Henrik Rydgård
e73e0dc0be
Fix multiple issues preventing in-game saves from working.
2021-07-19 17:34:51 +02:00
Henrik Rydgård
b397e5c455
Assorted plumbing.
...
wip
Buildfix
2021-06-07 00:24:51 +02:00
Unknown W. Brackets
82cd904e99
Common: Use Path for GetFileSize().
2021-05-15 11:11:37 -07:00
Henrik Rydgård
40ab92fe7b
Remove unused function GetHostPath from filesystems
2021-05-13 10:39:17 +02:00
Henrik Rydgård
2e16e83159
It never ends...
2021-05-13 10:39:16 +02:00
Henrik Rydgård
025bcb1673
Introduce Path, start using it all over the place.
...
Still lots left to convert!
Convert GetSysDirectory to return Path.
More buildfixing
Remove unnecessary Path( constructors
2021-05-13 10:39:16 +02:00
Unknown W. Brackets
fada6583c9
Core: Fix virtual disc index reading.
...
Otherwise it thought the newline was part of the path.
2021-05-09 17:00:48 -07:00
Henrik Rydgård
2999e1cb86
Core: Remove some uses of OpenCPPFile.
2021-05-09 17:00:48 -07:00
Unknown W. Brackets
58d46274ef
Common: FileUtil rename buildfix.
2021-04-25 14:51:39 -07:00
Henrik Rydgård
77b8a14770
Merge GetFileInfo/GetFileDetails into GetFileInfo
2021-04-25 20:52:29 +02:00
Unknown W. Brackets
1aae6e5ffc
Io: Prevent error on bad handle for DevType().
2021-04-21 20:11:23 -07:00
Unknown W. Brackets
da2e722794
Windows: Fix some format warnings.
2021-02-14 10:30:10 -08:00
Unknown W. Brackets
0ffac20fcd
Common: Include unistd.h before ctime on mingw.
...
This is required for localtime_r and similar to be available.
2021-02-14 10:30:10 -08:00
Unknown W. Brackets
2c165c9b6d
Windows: Fix improper case or missing includes.
...
As per mingw errors/warnings.
2021-02-14 10:30:10 -08:00
Henrik Rydgård
4f43cff5ca
Move fileutil, net, image loaders, ui to Common. ( #13506 )
...
* Move and rename file_util/fd_util to Common/File/FileUtil and DirListing
Let's also move net while we're at it.
Move the ZIM/PNG loaders over to Common.
Move the UI framework into Common
iOS buildfix
* Buildfix
* Buildfixes
* Apple buildfix
* This typo again..
* UWP buildfix
* Fix build of PPSSPPQt, such as it is (it's not in good condition...)
* Guess what? Another buildfix.
2020-10-04 20:48:47 +02:00
Henrik Rydgård
9e41fafd0d
Move math and some file and data conversion files out from native to Common.
...
Buildfixing
Move some file util files
Buildfix
Move KeyMap.cpp/h to Core where they belong better.
libretro buildfix attempt
Move ini_file
More buildfixes
2020-10-04 09:12:46 +02:00
Henrik Rydgård
ff8148dd92
Move native/util, native/data and native/i18 to Common/Data.
...
Also move colorutil.cpp/h
linking build fix experiment
Delete a bunch of unused CMakeLists.txt files
CMakeLists.txt linking fix
Don't include NativeApp.h from any headers.
Android.mk buildfix
Half of the UWP fix
Buildfix
Minor project file cleanup
Buildfixes
Guess what? More buildfixes!
2020-10-04 07:28:29 +02:00
Unknown W. Brackets
b8342fb8ec
SaveState: Rename ChunkFile files to Serialize.
...
Makes more sense and less weird than ChunkFileDoMap, etc.
2020-08-10 08:04:05 +00:00
Unknown W. Brackets
4b4e3432cd
SaveState: Split Do() into a separate header.
2020-08-10 08:03:41 +00:00
Unknown W. Brackets
4bd60ed791
Io: Fix LBN timing for virtual discs.
2020-05-22 00:31:17 -07:00
Unknown W. Brackets
d7ad43b1d9
Io: Cleanup access bits for files.
...
Also, we default a lot of these members, so don't need to reset.
2020-05-21 18:58:24 -07:00
Unknown W. Brackets
49abe9ed6c
Io: Open sce_lbn references and whole ISO faster.
2020-05-21 18:58:24 -07:00
Unknown W. Brackets
913121cf2b
Io: Consistently use error codes with OpenFile().
...
This gets rid of OpenWithError(), and just always returns a negative value
on error for OpenFile(). Also fixed the sequence rollover, which could've
returned 0.
0 should be considered a valid handle ideally, but left it never returning
0 to simplify cleanup in some areas.
2019-10-20 11:03:37 -07:00
M4xw
15a9a0ac8f
Switch: Cleanup some includes.
...
Disable dlopen and tty checks too.
2019-09-28 09:22:38 -07:00
Unknown W. Brackets
048afb6d24
UI: Resolve symlinks when adding things to recent.
...
See #11131 . This also normalizes paths, captialization, etc. as
necessary.
2018-08-12 08:25:10 -07:00
Henrik Rydgard
ff2b6b3fca
Assorted cleanup, UWP memory map fixes. PSPFlower runs in both 32-bit and 64-bit.
2017-03-23 10:02:28 +01:00
Henrik Rydgard
c219ae9e63
Further UWP fixes
2017-02-25 09:57:24 +01:00
Henrik Rydgard
fcbc20f240
Small changes to make Common and Core build under my preliminary UWP setup.
2017-02-24 18:59:41 +01:00
Unknown W. Brackets
92cdb583aa
virtfs: Log properly on handler load failure.
2016-08-06 20:04:50 -07:00
Unknown W. Brackets
25c320aa4b
virtfs: Avoid crash if handler cannot be loaded.
...
For example, if it was renamed or is for the wrong OS.
2016-08-06 19:23:46 -07:00
NCDyson
cc829f31b8
Attempt to fix segfault on VirtualDiscFileSystem::GetFileInfo for files where handler is specified
2016-05-31 06:23:53 -05:00
Unknown W. Brackets
0592f56df5
Oops, this modifies the input string it seems.
...
Not sure if ISOs are actually case insensitive, though?
2016-05-30 00:38:20 -07:00
Unknown W. Brackets
9f668a1d31
VirtFS: Normalize leading slashes in index.
...
Otherwise, we might consider "/x" and "x" to be different files, and fail
to use the handler properly.
2016-05-29 22:13:33 -07:00
Henrik Rydgard
6fcbfabdd2
Rename fields to avoid some gross #define hack that linux is doing
2015-09-23 12:10:23 +02:00
Henrik Rydgard
77e9ea38aa
Get rid of remaining uses of stat() on Windows
2015-09-23 11:34:22 +02:00
Henrik Rydgard
58d3137b10
Get rid of a bunch of more uses of stat64 on Windows.
2015-09-23 09:48:55 +02:00
Kingcom
efa2566192
Don't read past the end of sce_lbn files on virtual discs
2015-03-01 00:45:57 +01:00
Unknown W. Brackets
52288f5905
Report any attempt to read a negative size.
...
If this should return an error, that should be handled in sceIo.
2015-01-09 15:50:06 -08:00
Unknown W. Brackets
8f3a8fd233
Very rough approximation of UMD seek delays.
2014-12-26 01:15:18 -08:00
Unknown W. Brackets
d6a113809b
Add basic infrastructure to time io better.
...
This allows the filesystems to more accurately control timing.
But they're not actually doing it yet (same timing as before.)
2014-12-26 01:15:17 -08:00
Lioncash
cd26b200b2
Core: Get rid of a few c_str/strlen calls
2014-12-03 17:15:05 -05:00
Lioncash
c54b7c1ec4
Get rid of unnecessary c_str calls in VirtualDiscFileSystem.cpp
2014-05-27 21:57:10 -04:00
Unknown W. Brackets
943bc7ee78
Oops, close the dir after listing it in ms0:/.
...
This was affecting some savedata modes, and showed up on tests. Not sure
how it might've affected games, probably not much.
2014-03-30 19:34:19 -07:00
Unknown W. Brackets
0bf1ef5773
Improve sceIoGetDevType() return values.
...
At least for block/file devices. Can't find a way to get an alias.
2013-12-27 08:04:00 -08:00
Unknown W. Brackets
dbf86187e3
Add Ioctl() to IFileSystem, cleaner.
2013-12-27 08:03:59 -08:00
Unknown W. Brackets
50e9e45d65
Check version in each DoState() func.
...
They bail on PointerWrap error or bad version.
2013-09-14 20:23:03 -07:00
Kingcom
043c73f354
Fix linux version too
2013-09-08 00:22:30 +02:00