Commit graph

7724 commits

Author SHA1 Message Date
Yoshi Sugawara
4d2313ed9f fixed indenting from soft spaces to hard tabs 2015-12-29 04:23:41 -05:00
Yoshi Sugawara
73c04e59fa [iOS]: prevent crashing (EXC_BAD_ACCESS) when releasing FFMPEG context by adding NULL check on codec context pointer 2015-12-28 21:43:11 -05:00
Henrik Rydgård
6764ff295e Merge pull request #8321 from unknownbrackets/jit-invalidate
Invalidate jit blocks on IO read and a few other places
2015-12-28 19:48:25 +01:00
Henrik Rydgård
d70125f953 Merge pull request #8319 from unknownbrackets/jit-branch
Jit: Always link RA, even if branch not taken
2015-12-28 19:47:14 +01:00
Henrik Rydgård
b117896b63 Merge pull request #8317 from unknownbrackets/minor
Minor fixes to SDL + resolution display
2015-12-28 19:46:18 +01:00
Henrik Rydgård
d5121cd974 Merge pull request #8306 from unknownbrackets/lang-fuzzy
Fuzzy match lang when user locale doesn't exist + XP support
2015-12-28 19:44:32 +01:00
Unknown W. Brackets
ddcfed1b5e Jit: Invalidate on dmac copy as well. 2015-12-27 22:06:05 -08:00
Unknown W. Brackets
51016eb1c5 Jit: Invalidate after module loads.
Just to be safe, let's invalidate the entire range.
2015-12-27 22:05:53 -08:00
Unknown W. Brackets
3687be42bc Jit: Invalidate blocks after IO reads.
Fixes #7617.
2015-12-27 21:58:29 -08:00
Unknown W. Brackets
3ec7404d2d Jit: Always link RA, even if branch not taken.
The ops don't write RA conditionally.
2015-12-27 20:47:15 -08:00
Unknown W. Brackets
0c46d7c081 Correct scratchpad memory range checks. 2015-12-27 14:29:12 -08:00
Unknown W. Brackets
1c852ac482 Remove old alphamask hack setting.
No longer used.
2015-12-27 12:04:53 -08:00
Unknown W. Brackets
86127b3d0d Update armips to latest version.
The new version has some speed and other improvements.
2015-12-26 20:30:35 -08:00
Unknown W. Brackets
5fdc72f893 Fuzzy match lang when user locale doesn't exist.
So for example, fr_CA would select fr_FR rather than en_US.  Wrong dialect
can sometimes be pretty far off, but it's still likely a better default.
2015-12-26 07:59:20 -08:00
Henrik Rydgård
b278299324 Merge pull request #8301 from unknownbrackets/savestates
Fix iOS savestate compatibility issue
2015-12-26 10:42:52 +01:00
Henrik Rydgård
dc94b8622b Merge pull request #8308 from unknownbrackets/gamedata
Improve sceUtilityGamedataInstall a bit
2015-12-26 10:41:10 +01:00
Unknown W. Brackets
7471516d05 Gamedata: Reduce the transfer per call.
The standard value made my desktop drop frames without the data cached.
2015-12-25 23:24:04 -08:00
Unknown W. Brackets
34fc03068a Gamedata: Create a basic PARAM.SFO in data dir.
Fixes #7903.  Have not really tested, just based on game behavior.  Could
be inaccurate.
2015-12-25 21:54:14 -08:00
Unknown W. Brackets
e4c6a8398e Gamedata: Copy in chunks instead of all at once.
This way the game's progress shows correctly.  Also, correct the progress
calculation for < 100% (integer rounding.)
2015-12-25 21:39:24 -08:00
Unknown W. Brackets
fb9e5d4741 Gamedata: Refactor out file iteration.
Goal here is to process files in chunks, rather than one file at a time.
Files are often > 100MB, so we don't want to copy all in one frame.
2015-12-25 21:13:55 -08:00
Unknown W. Brackets
43e7d9dbc2 Gamedata: Use status delays in init/update/etc.
Like with savedata.
2015-12-25 21:01:13 -08:00
Unknown W. Brackets
7b921d3bb7 Avoid crash when savestate is for different ISO. 2015-12-24 14:31:23 -08:00
Henrik Rydgård
21bf73a612 Merge pull request #8281 from unknownbrackets/ui-tweaks
Add feature to auto-hide buttons after X seconds
2015-12-24 23:15:59 +01:00
Henrik Rydgård
27c6770c74 Merge pull request #8297 from unknownbrackets/warnings
Warnings fixes
2015-12-24 23:14:10 +01:00
Unknown W. Brackets
9b91713308 Right, Symbian doesn't have vector.data(). 2015-12-24 13:21:03 -08:00
Unknown W. Brackets
f3df6b307f Use a FileLoader for PBPs.
Improves consistency, caching, etc.
2015-12-24 12:21:40 -08:00
Unknown W. Brackets
a53f0360f3 Use a less leak prone interface for PBP reading. 2015-12-24 10:20:27 -08:00
Unknown W. Brackets
7b4315bc70 Respect MEMSIZE for ISOs also, cleanup. 2015-12-24 10:04:08 -08:00
Unknown W. Brackets
d6cd3bd5ad Remove some unused variables. 2015-12-23 15:22:28 -08:00
Unknown W. Brackets
103b959d50 Fix a type comparison warning. 2015-12-23 15:22:13 -08:00
Unknown W. Brackets
d273deedeb Use MEMSIZE SFO param to detect 64MB homebrew.
Now, use 32MB for normal games even in PSP-2000 mode, which is how real
firmware behaves.
2015-12-23 15:16:48 -08:00
Unknown W. Brackets
80cc5a4a9c Default to hide controls after 20 seconds. 2015-12-20 16:14:08 -08:00
Unknown W. Brackets
a3f9b954d1 Add feature to auto-hide buttons after X seconds. 2015-12-20 12:40:47 -08:00
Unknown W. Brackets
7807598690 Mutex around PBP file access.
There's some thread safety issue in there, this makes it so we can read
thumbnails without crashing sometimes - fixes #7330.
2015-12-20 09:35:50 -08:00
Unknown W. Brackets
edf3bf4a8e Silence some unused result warnings. 2015-12-19 19:58:32 -08:00
Unknown W. Brackets
95abf332d1 Disable ISO RAM cache if out of memory.
Better to fail to preload than to crash.
2015-12-19 15:29:34 -08:00
Unknown W. Brackets
dd5c91108c Use a background thread to load ISO into RAM.
This way we don't get slow startup.  This will also cache the CSO data,
for example, rather than the raw data, using up less RAM.  It might even
be reasonable to enable on 32-bit.
2015-12-19 15:23:25 -08:00
Henrik Rydgård
a2e09eada7 Merge pull request #8216 from unknownbrackets/sas-thread
Move SAS mixing to a thread
2015-12-06 18:59:09 +01:00
Unknown W. Brackets
f759a2a3fd Sas: Sync result when mix calling thread returns. 2015-11-25 18:44:43 -08:00
Unknown W. Brackets
546590106f Sas: Fail to mix when dispatch disabled. 2015-11-25 18:44:42 -08:00
Unknown W. Brackets
23441d12fb Sas: Estimate time taken for mixing.
Tests seem to show it's not affected by mhz.
2015-11-25 18:44:34 -08:00
Unknown W. Brackets
75290cfd56 Sas: Enable SAS thread on multicore only. 2015-11-25 18:44:33 -08:00
Unknown W. Brackets
5a6c8b513c Sas: Drain thread before reading/writing SAS state.
This should be the safest option, but I'm pretty sure some operations give
a BUSY operation or have different behavior, actually.
2015-11-25 18:44:32 -08:00
Unknown W. Brackets
fc8acc781e Sas: Add config for SAS thread. 2015-11-25 18:44:31 -08:00
Unknown W. Brackets
0394319e89 Sas: Drain thread on savestate. 2015-11-25 18:44:30 -08:00
Unknown W. Brackets
6290ac6cbd Sas: Process SAS on a separate thread.
Remaining issues:
 * Need a config setting.
 * Locking for voices / config?
 * Locking for atrac interop?
2015-11-25 18:44:30 -08:00
Unknown W. Brackets
7bfe100b0f Fix some unused variable warnings.
The CheckAlpha one looks like it will matter.
2015-11-25 16:11:53 -08:00
Henrik Rydgard
9825dad340 Zero deleted objects in the kernel object pool
Just doing this to narrow down the possible causes of our crashes in WaitSema/SignalSema that I can't reproduce and only have Android auto-reports of... The crash comments do mention the GTA games though.
2015-11-25 14:24:32 +01:00
Henrik Rydgard
06eee7bc1b Oops, fix #8234 2015-11-25 14:23:39 +01:00
Henrik Rydgard
7dd631b7f2 Some code reformatting of the kernel object pool
Also deletes an unused [] operator
2015-11-25 13:00:29 +01:00