Commit Graph
176 Commits
Author SHA1 Message Date
Unknown W. Brackets 879060f008 Use a CORE_POWERUP state when starting.
Otherwise, we could startup in CORE_POWERDOWN in a second game, which is
confusing.
2013-11-09 23:07:52 -08:00
Henrik Rydgard 3d5a85f1a7 Restore accidental change to sceAtracGetInternalInfo, minor indentation reduction, demote a log message 2013-10-22 10:53:48 +02:00
Sacha fafe4fc4f2 Fix multi-threading crashes on shutdown with Linux and Blackberry. Fixes issue #3133 -- thanks @unknown 2013-10-17 17:39:04 +10:00
The Dax c7bdeb3084 Eliminate GetSysDirectories and instead provide a new function: GetSysDirectory.
On Win32, call InitSysDirectories before the emuthread starts just to be safe.
2013-10-15 03:41:10 -04:00
Henrik Rydgard 40ee00bf46 Add pfat0: as another synonym for ms0:
Might fix Fired Up save issues as reported in #1290.
2013-10-13 13:52:48 +02:00
Unknown W. Brackets b54e557d19 Actually, let's not wait at all in Core_Stop().
It just triggers the action on the other thread.
2013-10-12 23:20:27 -07:00
Unknown W. Brackets 585f86c805 Make sure the io thread doesn't revive itself.
Stupid zombies.  Stay dead.
2013-10-12 10:54:57 -07:00
Unknown W. Brackets 73d5c42596 Don't allow a new async cmd while one is busy.
Fixes Valhalla Knights 1.  Also some logging tweaks.
2013-10-08 23:49:24 -07:00
Unknown W. Brackets 10e446d225 Notify of shutdown *after* setting coreState. 2013-09-30 23:36:57 -07:00
Henrik Rydgård f8bc2f6c76 Merge pull request #3909 from raven02/patch-5
Return SCE_KERNEL_ERROR_ILLEGAL_PRIORITY when priority < 0
2013-09-30 03:27:33 -07:00
Unknown W. Brackets 086294b495 Listen for shutdown in thread loops.
This way we don't need to use wait_for(), much better.
Also because there are slightly more correct cond vars on win32.
2013-09-28 00:45:54 -07:00
raven02 3d210b9e85 Add comment "priority = -1 is valid" 2013-09-25 22:19:43 +08:00
raven02 99d1bfbe89 Add ERROR_LOG for Illegal Priority 2013-09-25 21:52:16 +08:00
raven02 ac95819ec1 Return SCE_KERNEL_ERROR_ILLEGAL_PRIORITY when priority < 0 2013-09-24 21:51:05 +08:00
Unknown W. Brackets 197b4a34f4 Improve error handling in sceIoLseek*(). 2013-09-22 23:37:51 -07:00
Unknown W. Brackets 301884428f Buildfixes for Symbian and iOS/etc. 2013-09-15 08:18:20 -07: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
Unknown W. Brackets 64b75ed3ff Decentralize callback registration.
Callbacks are always tied to THEIR thread, and the registration was all
based on the current thread which is just not the right way.
2013-09-09 00:21:15 -07:00
Henrik Rydgard 324cde5a79 Let's actually use the log category mechanism. A first step. 2013-09-07 21:19:21 +02:00
Unknown W. Brackets 1eb858602c Add io async wait callback handlers. 2013-09-07 11:22:48 -07:00
Unknown W. Brackets d8d8d3b0ec Use a different wait type for async io. 2013-09-07 11:04:42 -07:00
Unknown W. Brackets 46b52ca552 Wake up waiting threads on file delete. 2013-09-07 10:53:59 -07:00
Unknown W. Brackets cddfd2f3b2 Allow separate threads to wait on async io. 2013-09-07 10:53:59 -07:00
Unknown W. Brackets 15a0f39fa1 Return yet more errors while inside interrupts. 2013-08-28 23:15:13 -07:00
Unknown W. Brackets 211c2bd955 Refuse a few more waits w/ dispatch/intr disabled. 2013-08-28 22:35:05 -07:00
Unknown W. Brackets 1ed8edb0d3 Avoid some dangerous hex constant widths. 2013-08-22 23:23:48 -07:00
Unknown W. Brackets 2ef650aa2d Add a bunch of HLE functions for better reporting. 2013-08-22 23:04:55 -07:00
Henrik Rydgard c46b7fbe1b Let's try doing all I/O on the thread if threading is enabled, no matter how short. 2013-08-21 20:50:45 +02:00
Unknown W. Brackets 49c7b9628a Fix some correctness warnings. 2013-08-12 23:40:22 -07:00
Unknown W. Brackets fe8850b34d Set the IO thread's name for debugging. 2013-08-11 12:22:01 -07:00
Unknown W. Brackets dd1cbe55d4 Give sceIoWrite the same treatment, for savedata. 2013-08-11 12:04:38 -07:00
Unknown W. Brackets 193a336189 Run sceIoRead operations on a separate thread.
This should improve stutter.  Also verified via a timer to improve
performance (although, not very much, ~0.07 seconds during an entire
game load.)
2013-08-11 11:53:21 -07:00
Unknown W. Brackets 85ad4a80dd Start and stop a separate thread for IO.
Not actually running anything on it yet.
2013-08-11 11:51:36 -07:00
Unknown W. Brackets 54ca1e212f Unmount filesystems during HLE shutdown.
Fixes #3115.
2013-08-10 14:04:07 -07:00
Unknown W. Brackets 333cc33efb Handle OpenFile() errors in a more threadsafe way.
Probably needs better cleanup though.
2013-08-10 09:54:14 -07:00
Unknown W. Brackets bafe8391fd Memory layout for sceIo. 2013-07-27 15:41:19 -07:00
Unknown W. Brackets 81f7103e0b Use *_le for the sceKernel* funcs. 2013-07-25 08:04:34 -07:00
Unknown W. Brackets 3decbba334 Correctly output NULs, etc. (i.e. UTF-16.) 2013-07-21 12:56:55 -07:00
mattweb28 b38e6dd02d fix ioctl cmd=0x01020004 2013-07-08 15:11:58 +08:00
tpu 3ac9aa9cfb bug fix about ISOfilesystem and sceIo 2013-07-06 23:42:49 +08:00
Lioncash b823bb7543 Change PSPPointer function name Valid to IsValid.
Improves readability and shows intent better.
2013-06-25 09:51:39 -04:00
Unknown W. Brackets c8ee2c0739 sceIoRename() ignores any path on dest.
Also, change the interface so it can return an error code.  Currently not
returning perfect error codes but it's better than before.
2013-06-23 20:09:44 -07:00
Unknown W. Brackets 933c8abb55 Check kernel object types when looking up ids.
Some games misuse it, need to return an error.
2013-06-18 23:54:29 -07:00
Unknown W. Brackets 2bc3da5b94 Return fds in the range 0 - 64 like the PSP.
Some games appear to check ids are valid specifically by checking this
range.  Reproduced on a PSP.
2013-06-16 10:07:49 -07:00
Unknown W. Brackets c1ed09949d Initial impl of sceIoGetFdList(). 2013-06-16 09:11:19 -07:00
Unknown W. Brackets 4c730a60c9 Eat cycles in devctl 0x02425823, fix params.
I can't seem to reproduce a way to change its return value, though...

Significant performance improvement for Star Ocean, especially in intro.
2013-06-08 18:03:28 -07:00
Unknown W. Brackets 7687bccce6 Try to avoid possible global var name conflicts. 2013-05-31 23:14:28 -07:00
The Dax cda9881cb9 Fix some logging typos and a comment typo. 2013-05-31 12:59:39 -04:00
The Dax e4e642b2a7 Fix Call of Duty Road to Victory black screen caused by Pangya fix. It was just a simple oversight. 2013-05-30 23:02:53 -04:00
The Dax 370b50a328 Fix Pangya: Fantasy Golf hang when going in-game via emulating SCE_KERNEL_ERROR_NOCWD correctly, or at least, more correctly than it was before. 2013-05-30 16:15:15 -04:00