Commit Graph

6156 Commits

Author SHA1 Message Date
Unknown W. Brackets
38dde1f6b5 Fix a debugger crash on shutdown. 2014-06-08 16:35:39 -07:00
Henrik Rydgard
a31194a877 Add some sanity checks when looking up syscalls.
This may avoid crashing the emu when it starts executing junk (still not good of course, heh).
2014-06-08 13:03:03 +02:00
Unknown W. Brackets
84d69de7a1 Enable "simulate block transfer" by default. 2014-06-07 22:43:40 -07:00
sum2012
cfa0e752e1 Fix Replace_memcpy crash
Fix Replace_memcpy crash in #5496
2014-06-08 01:01:47 +08:00
Sacha
8ac1c17f74 Fix a warning. Update native (fix SDL joystick). Fixes #6241. 2014-06-08 00:56:57 +10:00
Unknown W. Brackets
90b30f8bfe Use module start func, not entry, if specified.
Fixes #5539, Ranshima Monogatari Rare Land Story.  Still logging in case
it causes a problem.
2014-06-07 06:28:23 -07:00
Unknown W. Brackets
a7b9ce205b Enable function replacements by default.
So things like Star Ocean work, and game memcpy()'s to GPU work.

This will make game start on mobile a bit slower, though.  And there could
still be bugs so leaving as an option, but seems pretty stable.  Didn't
realize it wasn't enabled by default.
2014-06-07 00:13:45 -07:00
Sacha
b57c3e0fe5 Qt: Some bug fixes. Get Meego Harmattan compiling with gcc4.8.2 2014-06-06 14:17:47 +10:00
Henrik Rydgård
80301ef053 Merge pull request #6231 from thedax/cwcheats-minor
Win32/CWCheats: Make sure to convert paths properly so that non-English paths are supported.
2014-06-05 13:26:18 +02:00
Unknown W. Brackets
aa3a429a0b Avoid unaligned 32 bit reads.
They make Symbian do odd things.
2014-06-05 01:12:27 -07:00
The Dax
285640dbdf CWCheats: Make sure to convert paths properly so that non-English paths are supported. 2014-06-04 23:01:03 -04:00
Unknown W. Brackets
66d0cef0de Avoid calling select() with an error pointlessly.
It's just a spin loop unfortunately anyway.
2014-06-03 01:48:10 -07:00
Unknown W. Brackets
0bba5310b6 Fix lagsync with alternate speed set. 2014-06-03 01:36:20 -07:00
Unknown W. Brackets
39b1d97beb Make the lag sync adapt to minor variance. 2014-06-02 23:34:48 -07:00
Unknown W. Brackets
29f2519861 Add an experimental sync to keep real time sync.
May help input, audio, and network related lag problems.
2014-06-02 23:34:48 -07:00
Henrik Rydgård
71a6a4ba04 Merge pull request #6183 from sum2012/scemp4
Small improve in scemp4 part 2
2014-06-01 15:44:48 +02:00
Unknown W. Brackets
f6d4be1d49 Hook Star Ocean's function to upload stencil data.
Hurray, it seems to work properly.
2014-05-31 21:48:11 -07:00
Unknown W. Brackets
b603a71281 Fix Star Ocean movement problems due to memcpy.
It needs to handle overlap correctly, ugh.
2014-05-31 21:48:10 -07:00
Unknown W. Brackets
a09b738879 Fix exit replacement hooks. 2014-05-31 21:48:10 -07:00
Unknown W. Brackets
c142207a93 Fix a few warnings, mostly type comparisons. 2014-05-31 21:42:57 -07:00
sum2012
a711e3eadd Remove the hack 2014-06-01 05:09:14 +08:00
Henrik Rydgård
fd19b8d271 Merge pull request #6197 from unknownbrackets/replace-funcs
Function replacement hooks and some GLES compat replacements
2014-05-31 20:30:30 +02:00
Unknown W. Brackets
5ccc227462 armjit: Minor const optimization in Comp_VV2Op. 2014-05-31 11:12:36 -07:00
Unknown W. Brackets
df289e46a9 armjit: Use sat0/1 method from prefixes in vsat. 2014-05-31 11:12:35 -07:00
Unknown W. Brackets
1433b98c46 Clean up the framebuffer force downloads. 2014-05-31 10:03:03 -07:00
Unknown W. Brackets
085931dd1c Clear replacements on savestate outside jit too. 2014-05-31 10:03:02 -07:00
Unknown W. Brackets
b2dc92b942 Add a hook for Hexyz Force's "monoclome" thread.
This fixes missing graphics in some areas in GLES, due to direct framebuf
access.
2014-05-31 10:03:02 -07:00
Unknown W. Brackets
5dd8ebe2b4 Add a hook for Gods Eater Burst's swizzled copy. 2014-05-31 10:03:01 -07:00
Unknown W. Brackets
d09be5a4bc Update PC before going into a replacement func.
This way we can report the PC properly on errors, and the replacement func
can even look at PC.
2014-05-31 10:03:01 -07:00
Unknown W. Brackets
f489694515 Add the option to hook, rather than replace, funcs.
This can be useful for debugging or developing translations/game hacks,
and also gives us options when dealing with GLES incompatibilities.
2014-05-31 10:03:00 -07:00
Unknown W. Brackets
72eb15f282 Speed up debug build hashfunc lookup. 2014-05-31 10:03:00 -07:00
Henrik Rydgård
c2778d9a2a Merge pull request #6184 from daniel229/patch_04
World Neverland Qukria Kingdom Stories Chinese translate bypass EBOOT
2014-05-30 09:55:58 +02:00
Unknown W. Brackets
a5fc0c49bc Look at the right bytes for screenshot mode.
Although, there's a bunch more needed to make this work properly.
2014-05-29 23:28:27 -07:00
daniel229
7aa75e6e81 World Neverland Qukria Kingdom Stories Chinese translate bypass EBOOT 2014-05-30 12:28:27 +08:00
sum2012
9f269c39d4 Fix space bug
VS2013 bad thing
2014-05-30 06:15:05 +08:00
sum2012
b308052077 Small improve in scemp4 part 2 2014-05-30 06:07:58 +08:00
Henrik Rydgård
770d0d7adb Merge pull request #6178 from unknownbrackets/audiocodec-fix
Cleanup sceAudiocodec some
2014-05-29 20:04:25 +02:00
Henrik Rydgård
018468d9e0 Merge pull request #6180 from sum2012/log
Remove sceUtilityLoadAvModule report
2014-05-29 20:03:26 +02:00
sum2012
38844ac0e7 Remove sceUtilityLoadAvModule report
Now no need
2014-05-29 23:36:36 +08:00
sum2012
bf0f0b87d6 Small improve scemp4 part 1 2014-05-29 23:33:17 +08:00
Unknown W. Brackets
95414d6727 Get rid of some duplicate code. 2014-05-29 08:30:00 -07:00
Unknown W. Brackets
4bb6709eb2 More cleanup in sceAudiocodec. 2014-05-29 08:19:26 -07:00
Unknown W. Brackets
0b59cc4c35 Use a std::map in sceAudiocodec. 2014-05-29 08:16:47 -07:00
Unknown W. Brackets
a09f1fd80f Clean up a leak in sceAudiocodec load state. 2014-05-29 08:11:00 -07:00
Unknown W. Brackets
77b5cb7629 Reset decodePos in lowlevel decode.
FFmpeg was smart enough to do this for us, but not when we loaded a
savestate.  This is because without a savestate, we returned an initial
small header packet of this size, which gave FFmpeg the idea that seeking
there might help.

But, since we're forcing the decode at a certain position the better thing
is to seek ourselves.
2014-05-29 00:38:20 -07:00
Unknown W. Brackets
f29233386c Initialize some variables. 2014-05-29 00:16:16 -07:00
Unknown W. Brackets
a229593105 Erp, forgot to amend, sorry. 2014-05-28 22:49:49 -07:00
Unknown W. Brackets
63bb52bc42 Use the correct size in sceAudioCodec savestates.
ARRAY_SIZE(ptr) ain't gonna work.  Fixes #6173, thanks Lioncash.
2014-05-28 22:45:51 -07:00
Sacha
f787a1cbe1 Fix Windows build. 2014-05-29 10:33:02 +10:00
Sacha
9b7ab3816f Clean up MemArena and MemMap. Remove Symbian from MemArena (shouldn't have more ifdefs than code) 2014-05-29 03:30:23 +10:00
Lioncash
c54b7c1ec4 Get rid of unnecessary c_str calls in VirtualDiscFileSystem.cpp 2014-05-27 21:57:10 -04:00
Unknown W. Brackets
29a9ff369e Make a note when we need to reset the shader.
Hmm, not sure this is the cleanest way.
2014-05-27 22:12:25 +02:00
Henrik Rydgård
585050de27 Fix crash in block cache 2014-05-27 22:02:20 +02:00
Henrik Rydgård
ca01313715 Merge pull request #6160 from xsacha/master
Symbian: Over allocate VRAM (x4) in attempt to solve crash
2014-05-27 19:58:25 +02:00
Sacha
f94f28fb4a Symbian: Over allocate VRAM (x4) in attempt to solve crash caused by 0.9.8-601. This brings allocation to the same as before the commit. See #6103 2014-05-28 01:52:38 +10:00
Henrik Rydgård
94810e2451 Merge pull request #6159 from sum2012/sceio
sceio:Remove fix Buzz Ultimate Music Quiz Crash Sporadically code
2014-05-27 17:44:00 +02:00
Unknown W. Brackets
0de41cd028 Don't savestate replacement funcs.
This makes it so we can reorder them as we like, which is nicer, and also
makes sure there won't be weird compatibility problems or etc.
2014-05-27 08:02:41 -07:00
Unknown W. Brackets
8dcc09c9e1 Use a separate func for gpu memset(). 2014-05-27 07:50:01 -07: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
Unknown W. Brackets
b73c575418 Support swizzled framebuffer downloads.
Used in God Eater 2 when showing the load save screen.
2014-05-27 01:17:09 -07:00
Unknown W. Brackets
64f6012dba Support memsets of framebuffers as uploads.
Technically should clear stencil too... maybe it'd be better to handle
separately.
2014-05-27 01:17:09 -07:00
Henrik Rydgård
3836871af7 Merge pull request #6155 from unknownbrackets/ui-tweaks
Allow jit and fast memory to be reconfigured at runtime
2014-05-27 09:37:12 +02:00
Unknown W. Brackets
bd31b776c7 Report GHA phase shifting. 2014-05-27 00:03:28 -07:00
Unknown W. Brackets
a70b5abfb9 Allow jit to be enabled/disabled at runtime. 2014-05-27 00:02:51 -07:00
Unknown W. Brackets
8afd1f028c Add a couple more memcpy() variants. 2014-05-26 11:20:34 -07:00
Henrik Rydgård
2275c3a457 Merge pull request #6142 from unknownbrackets/psmfplayer
End the video when we run out of packets
2014-05-26 10:56:33 +02:00
Unknown W. Brackets
8275f613ce UpdateMemory() now returns whether to skip the cpy.
This way it can do it itself as necessary in the right order.
2014-05-25 21:48:41 -07:00
Unknown W. Brackets
df22d0609f End the video when we run out of packets.
If there are no audio or video packets left, even if we haven't hit the
pts, the video is over.
Fixes #6135, hanging in Chinese translation of Clannad.
2014-05-25 18:45:31 -07:00
Henrik Rydgard
90f2d06697 Add setting to enable/disable GPU block transfer 2014-05-25 10:18:14 +02:00
Henrik Rydgård
270fc2daf7 Merge pull request #6079 from sum2012/log
Report sceUtilityLoadAvModule
2014-05-25 09:24:57 +02:00
Henrik Rydgård
95c95d07a4 Merge pull request #6131 from sum2012/Net
Small improve of sceNetAdhocMatching*
2014-05-25 09:24:32 +02:00
Henrik Rydgård
cc8ae194da Merge pull request #6132 from unknownbrackets/module-ver
Report devkit for blacklisted modules too
2014-05-25 09:23:53 +02:00
Unknown W. Brackets
27f8eb6d8a Call gpu->UpdateMemory() from memcpy() funcs. 2014-05-24 21:59:25 -07:00
Unknown W. Brackets
0248b0ba09 Add memchecks to replaced functions. 2014-05-24 21:53:42 -07:00
sum2012
1d36836d2d Add some constant 2014-05-25 10:51:00 +08:00
Unknown W. Brackets
c1fdb5fc5b Might as well allow imports to blacklisted.
If someone's trying to read their code.
2014-05-24 17:15:25 -07:00
Unknown W. Brackets
8ef00232d3 Parse exports of blacklisted modules.
But ignore them.  This allows us to get the devkit version and other
potentially useful information.
2014-05-24 17:13:26 -07:00
sum2012
b8e0fc8fa7 Small improve of sceNetAdhocMatching*
Now Metal Slug XX can display online screen.
2014-05-25 07:57:02 +08:00
Unknown W. Brackets
213646b218 Correct errors in minor psmfplayer funcs. 2014-05-24 15:35:51 -07:00
Unknown W. Brackets
68bccebdeb Clear the psmfplayer handle on delete. 2014-05-24 14:13:18 -07:00
Unknown W. Brackets
c651a0d1e9 Correct status check in scePsmfPlayerStop(). 2014-05-24 12:46:34 -07:00
Unknown W. Brackets
64df42d613 Don't change status in scePsmfPlayerBreak().
It was changed to INIT in d37100b30a, but I
think that only fixed the game because STANDBY was wrong.  Not changing
the status is the correct behavior.
2014-05-24 12:41:40 -07:00
Unknown W. Brackets
d4e548013e Don't zero paused, but do zero end in psmfplayer.
To make sure the video/audio sync up.

If an audio frame was already decoded, it should technically be returned,
but after that it will return an error.
2014-05-24 01:31:50 -07:00
Unknown W. Brackets
222be04b38 Cleanup err codes in scePsmfPlayerGetAudioData().
Even if there's no *more* audio, if the current audio is valid return 0.
2014-05-24 01:10:26 -07:00
Unknown W. Brackets
bc661f4f10 Clean up a duplicate if branch. 2014-05-23 23:02:23 -07:00
Unknown W. Brackets
28a9f7155a Handle a default video with of 0 in psmfplayer. 2014-05-23 23:01:26 -07:00
Unknown W. Brackets
c03aa31240 Write video frames even while paused.
This function just writes the video data to the buffer if at all possible.
2014-05-23 23:00:48 -07:00
Unknown W. Brackets
13b735fd02 Validate more params in scePsmfPlayerGetVideoData. 2014-05-23 23:00:01 -07:00
Unknown W. Brackets
6c52ec524d Fix typo (warning.) 2014-05-23 08:47:12 -07:00
Unknown W. Brackets
ab57bcd4b3 Fix errors and scheduling in psmfplayer stop. 2014-05-22 23:41:38 -07:00
Unknown W. Brackets
75e4575ffe Properly schedule psmfplayer video finish.
Fixes #2251, hurray.
2014-05-22 23:40:44 -07:00
Unknown W. Brackets
b9ede6aade Add a class to create helper threads from HLE.
This should be usable from sceIo as well.
2014-05-22 23:38:21 -07:00
Unknown W. Brackets
a2031cdc62 scePsmfPlayerGetVideoData() keeps going at end.
Even if the video has ended, this happily returns the last frame (with the
same pts value) over and over.  Audio or no audio.

It only returns no data when it's called too early.
2014-05-22 22:19:10 -07:00
Unknown W. Brackets
e79d700bf0 Fix error codes in scePsmfPlayerGetVideoData(). 2014-05-22 22:17:42 -07:00
Unknown W. Brackets
da03308bfa Small correction to psmfplayer seeking.
Should be the specific position after the fileoffset, and should be offset
by the start pts thing...
2014-05-22 00:34:47 -07:00
Unknown W. Brackets
1c4053f3c6 Correct scePsmfPlayerUpdate() finished timing.
With or without audio, it always sets the end on the second call after the
last frame.  Makes sense.
2014-05-22 00:08:18 -07:00
Unknown W. Brackets
288d867588 Fix a type comparison warning. 2014-05-21 08:00:31 -07:00
Unknown W. Brackets
29bd4b63e4 Fix a bunch of formatting warnings. 2014-05-21 07:59:58 -07:00
Unknown W. Brackets
67fc607671 Oops, dumb mistake in reporting. 2014-05-21 01:17:15 -07:00
Unknown W. Brackets
5c13d482e0 When reporting module versions, include devkit ver.
Looks like this'll be the ticket for scePsmfPlayer, which has different
functionality in different versions (including when and how end of video
is flagged, which FF2 depends on.)

Now let's see what versions are out there.
2014-05-21 01:11:33 -07:00