Unknown W. Brackets
5b0748a61c
Merge pull request #17137 from hrydgard/log-fixes
...
Log fixes
2023-03-17 18:51:47 -07:00
Henrik Rydgård
df41a5cebd
Improve default ini, logging fixes
2023-03-17 13:59:57 +01:00
Henrik Rydgård
66d2fb2aa4
Reduce logspam from fonts, and a less angry error message for missing textures.zip.
2023-03-16 23:12:46 +01:00
Unknown W. Brackets
4942692558
Io: Provide directory existence with listing.
...
Sometimes, you need to tell the difference between an empty directory and
one that doesn't exist at all. We can do this in a single call.
2022-10-09 14:42:31 -07:00
Unknown W. Brackets
d473aa6db0
Module: Cleanup file read pattern.
...
Let's always use ReadEntireFile() when we can.
2022-10-09 14:42:30 -07:00
Henrik Rydgård
36079b86d0
Optimize away a couple of existence checks
2021-09-11 19:53:19 +02:00
Henrik Rydgård
8e2b73b05f
Optimize MetaFileSystem::ReadEntireFile
2021-09-11 19:32:37 +02:00
Henrik Rydgård
48310d15a9
Add metafilesystem hook to add optimized implementations of compute recursive directory size
2021-09-11 18:12:29 +02:00
Henrik Rydgård
09f65db91c
Cleanup
2021-09-11 15:35:11 +02:00
Henrik Rydgård
f53eb4ae0d
Fix silly filesystem mounting bug introduced in #14638
...
Fixes #14650 .
2021-07-27 22:55:02 +02:00
Henrik Rydgård
9ae00b80b1
Cleanup the ownership model in MetaFileSystem.
...
The old one was error-prone spaghetti.
2021-07-24 10:31:15 +02:00
Henrik Rydgård
96406364ca
Fix for new bug in GetDirListing, oops
2021-07-19 20:43:10 +02:00
Henrik Rydgård
40ab92fe7b
Remove unused function GetHostPath from filesystems
2021-05-13 10:39:17 +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
shenweip
166035a87b
Simulates memory stick size to get fixed free space.
...
Some games may be sensitive to the changes of free space of memory stick, and Android's free space is usually variable.
2020-10-08 23:51:56 +08: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
1dc5ee424b
SaveState: Split out Do types to reduce headers.
2020-08-10 08:03:44 +00:00
Unknown W. Brackets
4b4e3432cd
SaveState: Split Do() into a separate header.
2020-08-10 08:03:41 +00: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
9b112efa0b
Headless: Handle umd mapping with block devices.
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
3777d32ac8
Io: Cleanup sceIoOpen errors and logging.
2020-05-21 18:56:57 -07:00
shenweip
9fa4ae7b15
fix
2020-01-04 09:11:15 +08:00
shenweip
d09543ebd7
Move umd replace to loaders.
2020-01-02 14:56:24 +08:00
shenweip
fb696f8a71
Just return error if current directory not be setted.
2019-12-25 11:16:56 +08:00
shenweip
c3a489fa90
Don't ignore SCE_KERNEL_ERROR_NOCWD in many cases.
...
Use a error 1 to mean the uccessful mapping but carry with SCE_KERNEL_ERROR_NOCWD error.
2019-12-13 17:59:55 +08:00
shenweip
fd6b0554d6
IO:Re-grab SCE_KERNEL_ERROR_NOCWD.
...
Fix issue#12492,the issue occur since commit e09296b9b1
2019-12-13 11:15:58 +08: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
Henrik Rydgard
26a2d42731
Big mutex overhaul - remove our custom ones, make them non-recursive where possible
2017-02-28 11:40:29 +01:00
Henrik Rydgard
b94572e3ba
Assorted cleanup
2016-03-13 15:17:31 +01: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
Unknown W. Brackets
a6a234add1
Return errors on disk full for file creation.
2014-11-02 12:40:31 -08:00
Unknown W. Brackets
2958c575a1
Check actual free disk space when games ask.
...
Windows only for the moment.
2014-11-01 00:33:19 -07:00
Unknown W. Brackets
63b5ec3d85
Allow specifying a root path for host0:/.
...
This way, similar to the PSP, we can have a root path outside the test.
2014-04-19 21:43:09 -07:00
Henrik Rydgard
a53ecd7da3
More elegant way of solving #5839 (d_private in sceIoDread)
...
We flag filesystems as being FAT32 instead of checking for "ms0:".
2014-04-13 23:22:17 +02:00
raven02
9b272cfc68
Do it inside inColon
2014-03-23 22:37:43 +08:00
sum2012
c208b17a75
Change to comment
2014-03-23 16:48:32 +08:00
sum2012
48b07d46bf
Remove entire block again
2014-03-23 12:15:23 +08:00
sum2012
0694e91fab
Remove entire block
2014-03-23 11:19:37 +08:00
sum2012
ba88be9172
Fix disc0:/ vs. disc0: in path parsing
...
Fix Hot Pixel loading
2014-03-23 11:04:06 +08:00
sum2012
b348c05467
Fix MapFilePath by @unknownbrackets
...
Fix #5377
2014-02-11 21:26:44 +08:00
Unknown W. Brackets
73722d9cee
Support additional prefixes, like memstick:.
...
I also found umd01: and host01: work, etc. May help #5377 and possibly
others.
It seems like games can assign these at will and potentially even
subpaths, but reporting hasn't shown many cases yet. We can still watch
it.
Avoided mapping additional systems because savestates don't handle that
well currently.
2014-02-10 01:41:28 -08:00
Henrik Rydgård
ce378b231f
Delete CPU.cpp/h , cleanup
2013-12-30 00:11:29 +01:00
Henrik Rydgård
79ff2f0ba8
Start untangling our include mess a little.
2013-12-29 23:34:45 +01: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
f6482417ab
Return an int not a u32 for proper error check.
2013-12-09 08:04:33 -08:00
Unknown W. Brackets
0636a65ad9
Use ReadEntireFile() a few more places.
...
This fixes one or two minor memory leaks.
2013-12-08 12:02:37 -08:00
Unknown W. Brackets
18bcf63ee9
Add a convenience helper to load a file oneshot.
2013-12-08 11:05:36 -08:00
shenweip
a611ed3930
Remount all references in Remount func.
2013-11-26 18:20:33 +01:00