235 Commits

Author SHA1 Message Date
Unknown W. Brackets
0abd95e784 Typo. 2014-12-26 01:12:23 -08:00
Unknown W. Brackets
0599c04c1c Properly unschedule IO events on file close.
Oops, was waking threads but not bumping events.
2014-12-26 01:07:21 -08:00
Unknown W. Brackets
3f20b32041 Add an option to prevent cpu stall on slow IO.
This is good for any slow storage, including:
  * Hard disk spinning up.
  * Generally slow (cheap) SD cards.
  * HTTP or Samba streaming.

May possibly cause bugs in some cases where timing is unrealistic.  That
being said, as long as the game is a UMD game, and there's caching (could
enable memory caching for storage), it should not be a problem usually.
2014-12-26 01:07:16 -08:00
Lioncash
cac632424c Core: Add missing override specifiers 2014-12-08 15:20:31 -05:00
Lioncash
4ccb838306 Core: Mark some module functions as static 2014-12-08 04:40:08 -05:00
Unknown W. Brackets
79ff697f9d Return an error code for negative file sizes. 2014-11-06 08:45:45 -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
Henrik Rydgard
d24abb3af0 More GetPointer cleanup. memCardDirectory->memStickDirectory. 2014-10-19 23:20:51 +02:00
Unknown W. Brackets
5db79dcf11 Fix some missing semicolons on log statements. 2014-06-29 19:09:37 -07:00
Henrik Rydgard
38609f3e6b Cleam up thread names a bit, name the Main thread.
Also makes some logging VERBOSE.
2014-06-29 12:53:03 +02:00
Unknown W. Brackets
ac2c44ddd9 Revert the early wake of threads for io waits.
This reverts commit 610ada87214c60a8e5b1f5f742135abbc5cf2544.

It makes sense to let these run longer.  Apparently this caused problems
in Castlevania, see #6432.
2014-06-28 12:29:55 -07:00
Unknown W. Brackets
610ada8721 Wake good pri threads immediately from io waits. 2014-06-24 00:45:26 -07:00
Unknown W. Brackets
633120b895 Fix a crash on read from stdin.
Found in a homebrew demo.
2014-06-22 23:18:39 -07:00
Unknown W. Brackets
c29062de9f Add memory breakpoints on sceIo read/write. 2014-06-12 00:42:25 -07:00
Sacha
c745072b55 Update Symbian to GCC 4.8.3 2014-06-11 03:10:50 +10:00
sum2012
a24b1cf024 sceio:Remove fix Buzz Ultimate Music Quiz Crash Sporadically code
Now no need the code.
link #4497
2014-05-27 22:47:28 +08:00
Henrik Rydgard
f285b12dcf Make strcpy_limit slightly more sane. 2014-04-13 23:43:32 +02: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
6fb2934a6e Only write d_private for memory stick 2014-04-13 20:10:47 +08:00
Unknown W. Brackets
d247a7def6 Don't reschedule when writing to stdout.
Let's still capture the output, though.
2014-04-12 13:21:35 -07:00
kaienfr
604a97bf50 Custom BGM is fixed
Based on this commit https://github.com/hrydgard/ppsspp/pull/5828 on improvements to sceMp3
Custom BGM can be update now. Test on "Miku" is just all right :)
2014-04-10 05:19:03 +02:00
Unknown W. Brackets
05ab192c9c Reduce includes in Core/HLE/.
Especially templates.
2014-03-15 11:22:19 -07:00
Unknown W. Brackets
8d29b583e8 Reduce a few Core/Dialog/ includes. 2014-03-15 10:52:13 -07:00
lioncash
b9886942a7 Fix some vertical alignments in misc Core source files. 2014-03-03 11:16:53 -05:00
Henrik Rydgård
374e12afc3 Merge pull request #5590 from unknownbrackets/xbox
Merge more parts of #4716
2014-03-03 13:37:21 +07:00
Unknown W. Brackets
d7ba8f7312 Correct error code for reads into a bad pointer.
Per tests this is generally -1.
2014-03-02 13:59:34 -08:00
Unknown W. Brackets
2a4cbb7171 Allow two threads to read from a file at once.
It just happens in order, rather than failing with an error (async busy.)
Async operations still fail when used in this way, however.
2014-03-02 13:49:29 -08:00
Unknown W. Brackets
07a2e57932 Synchronize IO operations before any seek.
To prevent it from seeking before the operation.
2014-03-02 13:47:11 -08:00
Unknown W. Brackets
2c40cd509a Avoid overwriting io thread results.
Just block until it's done so that things are synchronous.
2014-03-02 13:45:12 -08:00
Ced2911
b6d37f97b8 [sceIo] 360 thread fixes 2014-03-02 11:31:32 -08:00
Unknown W. Brackets
bd982b2e6f Support PSP_O_TRUNC on Windows.
There are more modes we don't support properly.  May fix savedata
corruption in Gran Turismo and possibly other games.
2014-02-11 23:54:30 -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
Unknown W. Brackets
a0d5610f36 Report usage of sceIoAssign() and sceIoUnassign(). 2014-02-09 12:29:22 -08:00
Unknown W. Brackets
7add81fbd2 Use USING_WIN_UI instead of _WIN32 for differences.
Just makes the code clearer and probably helps other UIs work on Windows
more easily.
2014-02-08 16:38:45 -08:00
Unknown W. Brackets
10f52fa2b0 Just in case, also clear results on shutdown. 2014-01-26 19:10:20 -08:00
Unknown W. Brackets
c03326eed4 Discard any pending result when closing a file. 2014-01-26 18:49:34 -08:00
Ced2911
2941ec7227 [core] some endian fix try
Conflicts:
	Core/HLE/sceIo.cpp
2014-01-26 14:25:54 -08:00
Unknown W. Brackets
c5e11c63c0 Now umd0: size is in sectors, not bytes.
So we have to check based on that correctly.  Darn it.
2014-01-22 22:24:30 -08:00
Unknown W. Brackets
f14361c3b8 Add a bunch more missing cstring includes. 2013-12-30 21:37:19 -08:00
Henrik Rydgård
ce378b231f Delete CPU.cpp/h , cleanup 2013-12-30 00:11:29 +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
23971e9900 Implement ioctl command 0x01020002. 2013-12-27 08:03:59 -08:00
Unknown W. Brackets
dbf86187e3 Add Ioctl() to IFileSystem, cleaner. 2013-12-27 08:03:59 -08:00
Unknown W. Brackets
8c34f5f78e Implement ioctl command 0x01d20001. 2013-12-27 08:03:58 -08:00
Unknown W. Brackets
d916ce7658 Correct result for sceIoRead type ioctls. 2013-12-27 08:03:58 -08:00
Unknown W. Brackets
76d0cd444e Implement ioctl command 0x01f100a6. 2013-12-27 08:03:57 -08:00
Unknown W. Brackets
2433ff5f04 Implement ioctl command 0x01f30003.
Wonder if this will fix anything, it was silently not reading before.
2013-12-27 08:03:57 -08:00
Sacha
3cad2ed850 Use VFS for Flash0 dir on non-Windows/Apple platforms. 2013-12-19 23:30:32 +10:00
Unknown W. Brackets
d704f39981 Report unknown devctl commands. 2013-12-17 01:55:38 -08:00