Commit graph

6370 commits

Author SHA1 Message Date
Unknown W. Brackets
9d3cf346c3 Clarify GetSureBranchTarget() for fpu branches.
They also have CONDTYPE_ flags.  Looks like this was just getting lucky
that rs can't equal rt, but the code looks confusing when you're looking
at it from an fpu/vfpu perspective.
2014-08-18 07:46:48 -07:00
Henrik Rydgård
486461a725 Merge pull request #6735 from unknownbrackets/psmf-loop
Only loop psmf players at video end
2014-08-18 11:08:34 +02:00
Unknown W. Brackets
78296d15c6 Don't recurse when disasming an emuhack.
Although, should this happen?  Apparently does in Peace Walker.
2014-08-17 18:43:59 -07:00
Unknown W. Brackets
3fbab33c91 Only loop at video end.
In case of a short video that runs out of data but isn't ready to loop
yet.
2014-08-17 15:46:04 -07:00
Unknown W. Brackets
78ddffee2c Merge pull request #6733 from hrydgard/psmf-loop-fix
Reload the stream on loop. Fixes #6703.
2014-08-17 13:49:40 -07:00
Henrik Rydgard
8560e317d0 Reload the stream on loop. Fixes #6703. Thanks to @unknownbrackets 2014-08-17 22:29:01 +02:00
The Dax
75e280e6fe Default to a deadzone 0.6f (60%) instead, as suggested. 2014-08-17 14:39:34 -04:00
The Dax
784f311d76 Make it available for everybody. 2014-08-17 14:36:35 -04:00
The Dax
cb07da198b Make the keyboard analog limiter customisable. 2014-08-17 14:36:35 -04:00
The Dax
37b8f62997 Don't show upgrade notifications if PPSSPP is too new, regardless of iRunCount. 2014-08-16 16:31:07 -04:00
sum2012
6024fe7e13 Don't need duplicate the whole table 2014-08-15 23:30:51 +08:00
sum2012
9f4efaf142 Add sceLibFttt
Same as sceFont
2014-08-15 22:42:08 +08:00
The Dax
3c19eda851 Win32 buildfix.
Somehow these weren't added to the project.
2014-08-12 22:34:05 -04:00
daniel229
a1f922baff fix typo,add sceUsbGpsGetState() function 2014-08-13 01:47:24 +08:00
daniel229
88124952a2 add sceUsbGpsOpen() function 2014-08-13 01:18:03 +08:00
daniel229
1ff9507f7c Add sceUsbGps module 2014-08-13 00:11:26 +08:00
Unknown W. Brackets
3bd945c2a8 Ignore displaybuf in psmfplayer when warming up.
Should fix #6704.
2014-08-10 21:56:05 -07:00
Unknown W. Brackets
cd413ab659 Correctly break when disabled and temp bps overlap.
Only affects debugging, not usual gameplay.  Fixes #6700.
2014-08-08 08:53:44 -07:00
Henrik Rydgård
60eaefa6ad Merge pull request #6680 from unknownbrackets/replace-funcs
Disable most replacements and use checked mem access in them
2014-08-04 23:44:20 +02:00
Unknown W. Brackets
ac94dbcc69 Show the replaced instruction in disassembly.
Useful while debugging.
2014-08-03 19:23:29 -07:00
Unknown W. Brackets
abd1f4e58a Disassemble bne/etc. using rs, rt order.
The order makes more logical sense from game disassembly, and matches the
assembler.  Fixes #6632.
2014-08-03 19:22:18 -07:00
Unknown W. Brackets
245a2a3be0 Don't zero out downcount in replacements.
It doesn't write out js.downcountAmount in any of these cases, so zeroing
it is wrong.
2014-08-03 13:22:30 -07:00
Unknown W. Brackets
5525c0a485 Use a lookup for function replacements.
Ought to be a tiny bit quicker.
2014-08-03 13:17:55 -07:00
Unknown W. Brackets
d060a06fa6 Disable a bunch of function replacements.
These are just for speed, let's turn them off.  Using a flag because:
 * I think there's still some issue with savestates, not sure.
 * We might swap this flag to a separate option.
2014-08-03 13:15:41 -07:00
Unknown W. Brackets
f198a7f587 Use checked pointers in all function replacements.
Some games are still hitting bugs and there's no way to disable this "fast
memory" without losing graphical effects.  Better to do it evenly than
weird hacks and extra logging/checks.
2014-08-03 13:04:00 -07:00
Henrik Rydgard
bc3b4c5512 Disk swap: Remount the ISOBlockSystem too. Should fix #6662 2014-08-02 12:35:27 +02:00
Henrik Rydgård
682e1c1f74 Merge pull request #6643 from hrydgard/umd0-openiso
umd0 solution: Add "OnlyEntireISOFileSystem" to fix #6638
2014-07-28 22:17:34 +02:00
Henrik Rydgard
b7ac539420 Fix crash after loading state from within Psmf movie
(a variable was not initialized)
2014-07-28 00:01:28 +02:00
Henrik Rydgard
c5861f4277 Rename to ISOBlockSystem, savestate workaround (?) 2014-07-28 00:01:10 +02:00
Henrik Rydgard
8146ff85f3 umd0 solution: Add "OnlyEntireISOFileSystem"
Wraps around an ISOFileSystem, redirecting all the filenames to "" to
achieve the desired effect (should fix Bleach Soul Carnival 2 without resorting
to CPkmn's hack from #6638)

Probably breaks savestates as-is...
2014-07-27 23:42:46 +02:00
Henrik Rydgard
82421f4dcf x86 jit: Further fix for nor, thanks unknown
See #6638
2014-07-27 22:26:35 +02:00
Henrik Rydgard
903ddbc513 x86 JIT: Fix bug where NOR would not get computed correctly in corner case
(CompTriArith can end up not actually mapping rd to a register when taking
a shortcut)

May fix the JIT issue mentioned by CPkmn and located by daniel229 as an aside in #6638
2014-07-27 21:41:41 +02:00
Henrik Rydgård
936dd58367 Merge pull request #6640 from JimLee168/master
Atrac buffer validate RIFF header
2014-07-27 21:08:32 +02:00
sum2012
21e024eeda sceMpegRingbufferAvailableSize might use a different
Based on http://code.google.com/p/jpcsp/source/detail?r=1813
Fix #5112
2014-07-27 23:40:46 +08:00
JimLee168
9722e1eb03 Atrac buffer validate RIFF header 2014-07-27 19:02:01 +08:00
Unknown W. Brackets
c7a2753a00 Fix savestates when there are psmfplayers.
Oops.  Fixes #6613.
2014-07-25 09:19:07 -07:00
Krude
f81d36a90c Fix Cwcheat code type for address compare
0xD code type took wrong address argument. Hopefully fixes #6624.
2014-07-25 13:11:28 +02:00
Sacha
6ce3765b12 Sailfish: More compatibility with SailFish OS. It also needs stddef where Maemo does.
Set packaging by default for iOS with b.sh.
2014-07-24 23:20:09 +10:00
Henrik Rydgard
272f0b8c70 Add a TODO (handling corrupt CSO data) 2014-07-22 16:07:10 +02:00
Henrik Rydgard
7802bf57f0 Add sanity checks to refuse to delete bad savedata (resulted in devastating delete of SAVEDATA/ in MGS PW!)
Thanks QWEmct for reporting in #6600.

This is not a full fix, really, a "NEW DATA" savegame should not show up in the delete list, but at least this prevents the bad thing from happening.
2014-07-21 20:29:41 +02:00
Henrik Rydgard
399d71373f Change pauseWhenMinimized default to false 2014-07-21 10:30:53 +02:00
Henrik Rydgard
85cb55cb84 Check some addresses in sceAtracDecodeData 2014-07-21 10:30:52 +02:00
The Dax
9af40da53e Make the ini tweak available for everybody. 2014-07-21 10:30:52 +02:00
The Dax
1fbd94d589 Win32: Make pausing when minimizing optional in the ini. 2014-07-21 10:30:51 +02:00
Henrik Rydgård
9efefeb89c Merge pull request #6598 from unknownbrackets/debugger
Limit stack walk distance a bit
2014-07-21 09:21:59 +02:00
Unknown W. Brackets
6aa9b8aa36 Limit stack walk distance a bit.
It was spending 0.5s in debug scanning all of memory for an entry (due to
some fp/sp tricks that aren't well detected yet.)  Let's just assume a 1MB
func doesn't need to be walked properly.
2014-07-20 21:52:55 -07:00
Henrik Rydgard
0986f27f33 Detect screen size and choose resolution defaults accordingly.
Also prevent recreate on older Android versions where it doesn't seem reliable.
2014-07-21 00:35:36 +02:00
Unknown W. Brackets
b03460c169 Improve function range detection.
This improves a pattern like this:

  j endOfLoop;
  li v0, 0;
  startOfLoop:
  addiu v0, v0, 1
endOfLoop:
  bne v0, a0, startOfLoop;
  nop
  jr ra
  nop

Where it jumps to the end of the loop, which only jumps back to the top of
the loop.  This might misdetect a few cases of tail recursion, but only
when the funcs are right next to each other.

Also, stops scanning at a jr ra, which was causing funcs to be incorrectly
long in cases.
2014-07-20 14:42:20 -07:00
Unknown W. Brackets
640c1231f3 Improve a crash in disassembly on game shutdown. 2014-07-20 14:42:20 -07:00
Henrik Rydgård
0e5679c833 Revert "Detect Peace Walker's anti-cheat hash func" 2014-07-20 23:39:11 +02:00