Commit graph

121 commits

Author SHA1 Message Date
Henrik Rydgård
dd61552364 Merge pull request #623 from unknownbrackets/savestates
Fix some file-related savestate issues
2013-02-09 00:18:01 -08:00
Unknown W. Brackets
1759bb8051 Use RemoveFile instead of DeleteFile in fs.
Windows defines DeleteFile to DeleteFileA/W, causing confusion.
2013-02-08 10:26:33 -08:00
Unknown W. Brackets
7806f9835a Correct a missing field from savestates in files. 2013-02-08 07:58:10 -08:00
Unknown W. Brackets
f875e3699f Handle the emit screenshot headless command.
But, it doesn't work.  Shouldn't the vram have the graphics?
2013-02-07 22:44:54 -08:00
Unknown W. Brackets
65b32dc31d Fix an uninitialized return value in sceIoCancel. 2013-01-31 00:02:53 -08:00
Unknown W. Brackets
f6cfeba6ff Fix some minor warnings. 2013-01-31 00:02:51 -08:00
Claus Østergaard
aa5996d028 File seek beyond file size should not fail
This caused Ridge Racer 2 to freeze after a few seconds
2013-01-25 13:13:32 +01:00
Xele02
8e719d4c8c Log in all build game output. This can help debugging with user log. 2013-01-23 01:20:38 +01:00
Xele02
0633c18438 submodule sync 2013-01-21 01:38:24 +01:00
Xele02
3825df5c6a Improve sceIo to pass io autotest.
io/io, io/cwd, io/directory ok
io/file still have a file mode fail
2013-01-21 01:25:48 +01:00
Unknown W. Brackets
862c88d61a More warning fixes, switches and printfs, etc.
This time ones not reported by Visual Studio.
2013-01-19 18:32:37 -08:00
Unknown W. Brackets
140fd171ef Fix some 64-bit type conversion warnings. 2013-01-19 13:48:20 -08:00
Unknown W. Brackets
7d0e78b0f0 Revert part of 289b0eb which broke some games.
Although defAction isn't a good solution, removing it outright seems
to break things.
2013-01-18 01:22:48 -08:00
raven02
289b0eb81e Add/update stubs in sceIo 2013-01-17 20:05:45 +08:00
KentuckyCompass
cd923ed13b helper function should be static 2013-01-10 16:25:30 -08:00
KentuckyCompass
320c0d06c3 Implement per-thread current directory 2013-01-10 16:18:02 -08:00
Henrik Rydgard
b8eab42add Add support for a couple of sceIoIoctl commands. Init some vars. 2013-01-06 09:54:43 +01:00
Henrik Rydgard
07dffb530c Check some addresses - prevent possible crashes. 2013-01-05 23:40:39 +01:00
Arthur Blot
e4ce0592c1 Make previous code cleaner 2013-01-02 19:42:15 +01:00
Arthur Blot
1519600441 Implemented sceKernelLoadModuleByID, better logs 2013-01-02 19:42:15 +01:00
Unknown W. Brackets
62b1fe0fb1 sceIo doesn't have to do emu output, headless can. 2012-12-30 00:00:58 -08:00
Unknown W. Brackets
ade0f4103b Don't let native's log output spoil tests.
Also, log to stderr, makes more sense anyway.
2012-12-29 23:21:56 -08:00
Unknown W. Brackets
0edbcdc955 Fix some missing things / bugs in save states. 2012-12-29 02:56:56 -08:00
Unknown W. Brackets
269a776363 Add a simple devctl to verify the state.
Could do more, but this should be useful.
2012-12-28 14:13:34 -08:00
Unknown W. Brackets
042e515037 Warniof the sceIo defAction is used when stating.
This is broken anyway so skipping for now.
2012-12-28 13:55:28 -08:00
Unknown W. Brackets
4b39e39455 Start save stating the filesystem state.
Plus minor fixes and at least an attempt to make states the same
on both 32 and 64 bit.
2012-12-28 13:55:27 -08:00
Unknown W. Brackets
595759ef78 Implement a factory for kernel objects.
Couldn't think of a better way to do this, maybe there's some fancy
one I don't know about.

Also finished up a couple left over kernel objects.

Maybe a quarter the way there?
2012-12-28 13:55:22 -08:00
Unknown W. Brackets
724640d308 Revert rescheduling in sceIoOpen().
Broke Orbit and Breakquest, maybe my tests are wrong.  Scheduling is hard.

This reverts commit f75f2748b1.
2012-12-26 02:26:17 -08:00
Unknown W. Brackets
0587104c16 No need to register now, actually.
Was using NotifyCallbackType before but that wasn't necessary
anyway, so this is cleaner/better.
2012-12-26 02:17:47 -08:00
Unknown W. Brackets
be779d7f77 Actually run callbacks for async IO.
Probably needs to actually be delayed though.
2012-12-26 01:33:43 -08:00
Unknown W. Brackets
8d946a7a3a Ensure we don't close the wrong fd in async io. 2012-12-26 01:33:43 -08:00
Unknown W. Brackets
a4154dbc17 Clean up a few IO wrappers with deferred HLE. 2012-12-26 01:33:42 -08:00
Unknown W. Brackets
f75f2748b1 Tests show io open also rescheds, async or not. 2012-12-26 01:33:42 -08:00
Unknown W. Brackets
b2ef54e194 Make waiting on async IO reschedule. 2012-12-26 01:33:42 -08:00
Unknown W. Brackets
4b9b23dfb4 Correct arguments in sceIoGetAsyncStat(). 2012-12-26 01:33:41 -08:00
Unknown W. Brackets
41db5c46a5 Fix random modules not reseting on shutdown. 2012-12-23 22:52:40 -08:00
Unknown W. Brackets
8188df4c8a Oops, don't think this belongs here after all. 2012-12-21 17:03:11 -08:00
Unknown W. Brackets
66e942c545 Fix some "might be null" warnings. 2012-12-21 16:25:05 -08:00
Henrik Rydgard
4d4370232c Assorted minor cleanup and fixes. 2012-12-21 10:20:22 +01:00
Henrik Rydgard
fede297f30 Fix sceIoGetStat, memstick capacity check 2012-12-19 21:21:46 +01:00
Henrik Rydgard
d640bdd032 Fix memory stick status check - now saving works in Lumines 2012-12-19 11:11:27 +01:00
Henrik Rydgard
1400237d0e Lots of various work on sceSas. ADSR envelopes, correct looping, etc etc... Still far from perfect but better. 2012-12-17 18:07:25 +01:00
Sacha
a1781b854a Symbian support for project.
New UNUSABLE_MMAP code path for platforms that cannot use the required flags (Xbox 360, Symbian). Falls back to malloc() instead.
N1 define for compilers (GCCE) that don't like to assume (int)-1 will safely cast to (char)-1.
Miscellaneous space->tab fixes.
2012-12-13 13:15:20 +10:00
Unknown W. Brackets
c08a2ba00b Make sceIoLseek() correctly return 64-bit. 2012-12-11 22:57:05 -08:00
TMaul
b7b40ba6d6 Make the flash filesystem a real directory
Not really needed yet, but it will be.
2012-12-09 23:32:44 +00:00
TMaul
f33adf5341 Clean up sceIoIoctl log message 2012-12-09 22:07:23 +00:00
TMaul
87af452e68 Stub sceIoIoctl
Just to see what games are calling
2012-12-09 18:48:28 +00:00
Xele02
63b0b61232 Change filesystem for mounted memory card
Clean some code and comment
2012-12-09 16:59:07 +01:00
Henrik Rydgård
a3fe130c0f Fix/paper-over some build compatibility issues. Warning fixes. 2012-12-07 01:09:15 +07:00
Henrik Rydgård
f909605e6e sceIo: tidy op obsolete comments, switch to one bracing style 2012-12-07 00:50:05 +07:00