Commit Graph

3436 Commits

Author SHA1 Message Date
Lioncash
efaba33624 sceMpeg: Remove an unnecessary if statement
stream is previously used in the above memcpy, so this check is not necessary.
2014-12-03 16:49:01 -05:00
Unknown W. Brackets
9d97eb5b12 Oops, fix an old typo.
Thanks Lioncash.  This broke a small range of old savestates.
2014-12-03 12:49:52 -08:00
Lioncash
f830d5dec7 Core: Mark some functions as const 2014-12-03 15:16:11 -05:00
daniel229
6846e8b140 Replace frame download in Kenka Banchou Bros: Tokyo Battle Royale 2014-12-03 18:44:04 +08:00
Unknown W. Brackets
ced555ee47 Oops, fix a mistake in umd replacement. 2014-11-25 12:03:16 -08:00
Unknown W. Brackets
fd2d7406d1 Make LocalFileLoader essentially private. 2014-11-23 14:02:35 -08:00
Unknown W. Brackets
967b589778 Consistently use FileLoader for standard ISOs. 2014-11-23 13:59:56 -08:00
Henrik Rydgard
4ed97f9c60 Don't msgbox on game exit (homebrew can legitimately do this) 2014-11-17 21:25:08 +01:00
sum2012
758ddffc37 Prevent unknown getpointer in sceKernelMemset
Fix #7064
2014-11-08 06:49:24 +08:00
Henrik Rydgård
517ca0569e Merge pull request #7058 from unknownbrackets/io-minor
Handle negative read sizes more correctly
2014-11-07 12:16:09 +01:00
Unknown W. Brackets
79ff697f9d Return an error code for negative file sizes. 2014-11-06 08:45:45 -08:00
Unknown W. Brackets
49aff7c75d Correct unload of imported vars.
From level99procrastinator, just slightly adjusted.
2014-11-05 22:57:25 -08:00
Henrik Rydgård
f1d43e7e90 Merge pull request #7046 from unknownbrackets/perf
Improve load and shutdown performance a bit
2014-11-03 21:50:10 +01:00
Unknown W. Brackets
9d86d3ca9b Use std::unordered_multimaps in a few places. 2014-11-03 08:31:52 -08:00
Unknown W. Brackets
bf50baf698 Cleanup some old typedefs. 2014-11-02 18:46:12 -08:00
Unknown W. Brackets
a391296c17 Small optimization to func/var import.
Should compare the nid first, of course, faster and less likely to match
anyway.
2014-11-02 17:53:46 -08:00
Unknown W. Brackets
a6a234add1 Return errors on disk full for file creation. 2014-11-02 12:40:31 -08:00
Unknown W. Brackets
2958c575a1 Check actual free disk space when games ask.
Windows only for the moment.
2014-11-01 00:33:19 -07:00
Henrik Rydgard
d24abb3af0 More GetPointer cleanup. memCardDirectory->memStickDirectory. 2014-10-19 23:20:51 +02:00
Unknown W. Brackets
0f45c3516d Skip setting a0 in the idle thread.
We don't need the param for our fake syscall.  This is safe since it's all
savestated.
2014-10-12 12:51:48 -07:00
daniel229
5ff098efb9 Another replace frame download in danganronpa 1 2014-10-05 13:46:47 +08:00
daniel229
ef1484da65 Replace frame download in danganronpa 1 2014-10-05 13:44:39 +08:00
daniel229
a7cf3aeafc Another replace frame download in danganronpa 2 2014-10-05 13:42:03 +08:00
daniel229
d7927009d0 Replace frame download in danganronpa 2 2014-10-05 13:39:15 +08:00
Unknown W. Brackets
adef5bbe59 Discard packet data when seeking. 2014-10-03 23:23:36 -07:00
Unknown W. Brackets
50e4eded75 Actually use the temp packet. 2014-10-03 23:08:16 -07:00
Unknown W. Brackets
72e8e6448f Don't eat packet data when using a temp packet. 2014-10-03 22:17:25 -07:00
Unknown W. Brackets
cf7e280185 Attempt to ensure we don't decode partial frames. 2014-10-03 22:11:45 -07:00
Unknown W. Brackets
f421453bf9 Align samples even after a loop.
This corrects the amount of audio after certain loops, but it doesn't seem
to output the right data when this happens.

Possibly, seeking isn't doing the right thing and resetting state that
shouldn't be reset when a loop happens.  Not sure... but it was already
wrong before, this just reads the right amount of it.
2014-10-03 21:33:45 -07:00
Unknown W. Brackets
2f443f52a6 Ensure we request s16 samples.
We won't get these for atrac3+, but we should for atrac3 (seems to be the
default anyway, but better to be clear.)
2014-10-03 20:05:08 -07:00
Unknown W. Brackets
24ab84a0fe Centralize atrac frame decode logic. 2014-10-03 20:04:54 -07:00
Unknown W. Brackets
398646411a Properly handle atrac packets with multiple frames.
This gets us decoding the start of a file and near loops way more
correctly.
2014-10-03 19:48:39 -07:00
Unknown W. Brackets
1b520ea673 Correct first next sample calculation.
If it's exactly matching a frame size, we need to return a full frame,
rather than 0.  Fixes #6967.
2014-10-03 07:49:35 -07:00
Henrik Rydgård
c2a462ceb2 Merge pull request #6949 from daniel229/func_replace_soranokiseki
Functions replace in Sora no Kiseki FC, SC ,and Boku no Natsuyasumi 2 and 4
2014-10-02 15:48:28 +02:00
Unknown W. Brackets
2221951cd9 Correct atrac looping offset by one frame. 2014-09-28 15:19:30 -07:00
Unknown W. Brackets
3856a53503 Handle atrac files with larger "fact" chunks.
Ends up with the a separate offset for loops, it seems like.  This corrects
looping information for these files.
2014-09-28 15:19:29 -07:00
Unknown W. Brackets
58afdfac60 Return an error for MOut on a stereo stream.
It seems like it won't downmix, it returns an error.
2014-09-28 15:19:29 -07:00
Unknown W. Brackets
feada0ee65 Adjust some logging.
Report logic op more correctly, cleanup an incorrect log.
2014-09-28 15:13:52 -07:00
Henrik Rydgård
80a28e5ac7 Merge pull request #6950 from unknownbrackets/gpu-minor
d3d9: Show an error when default shaders fail to compile
2014-09-27 18:38:42 +02:00
Henrik Rydgård
f875b14666 Merge pull request #6954 from unknownbrackets/font-minor
Fix some minor issues in sceFont causing failing tests
2014-09-27 18:35:41 +02:00
Unknown W. Brackets
2c99baf295 Delay sceUtilityMsgDialogUpdate() per tests.
This is an approximate value, but it should be close.
2014-09-27 00:13:27 -07:00
Unknown W. Brackets
ad191cdd3a Correct error codes in sceFontOpenUserMemory(). 2014-09-26 23:44:36 -07:00
Unknown W. Brackets
1d4bd6c695 Add a delay for creating fontlibs and fonts.
Matches tests, low bound on the delay.
2014-09-26 23:44:04 -07:00
daniel229
aad301a97a Replace download frame in Boku no Natsuyasumi 2 and 4 2014-09-27 14:00:37 +08:00
Unknown W. Brackets
358462a7f4 Add a .gitattributes to normalize newlines.
No code changes.
2014-09-26 21:20:50 -07:00
daniel229
4de7e89330 Replace download frame in Sora no kiseki SC,and a comment for Sora no kiseki 3rd 2014-09-26 17:13:01 +08:00
daniel229
ea9a0182e4 Replace download frame in Sora no kiseki FC 2014-09-26 16:55:37 +08:00
Unknown W. Brackets
c88b66b308 d3d9: Emulate some logic ops with blending.
This makes Brave Story's intro visible.  Also add for GLES2/GLES3, but
doesn't seem to work on GLES2.
2014-09-23 21:13:47 -07:00
Unknown W. Brackets
0ebe5325d4 Correct the end from sceAtracGetSoundSample().
I think it's meant to be the last *valid* sample.
2014-09-23 11:33:21 -07:00
Unknown W. Brackets
e717a87f9f Add extra frames if we run out of atrac data.
We could probably insert frames instead for GHA phase shifting, but this
will solve other bugs too, I think.
2014-09-23 11:33:21 -07:00
Unknown W. Brackets
fa42426d21 Clamp the final sample count during decode.
Some games depend on / expect this, or else they'll let important data get
overwritten.
2014-09-23 11:33:20 -07:00
Unknown W. Brackets
68f4a1e7f7 Return the correct next sample at the beginning. 2014-09-23 11:33:20 -07:00
Unknown W. Brackets
0aa7247fea Fix seeking in atrac after the start.
Not sure the very start is right though, arg.
2014-09-23 11:33:19 -07:00
Unknown W. Brackets
4702ae0e41 Add breakpoints to most sceAtrac mem access. 2014-09-23 11:33:18 -07:00
Unknown W. Brackets
6b6bf3f8e6 Correct the dataOff member of atrac context. 2014-09-23 11:33:18 -07:00
Unknown W. Brackets
ac1fcdb269 Skip samples in the first chunk of atrac output.
This seems to be what the PSP actually does, although not sure.  The first
result is always smaller by this amount (numerous atrac files tested.)
2014-09-23 11:32:11 -07:00
Unknown W. Brackets
70705d4a9d Remove incorrect atrac decode ptr nullcheck.
Already shown in decode test to be valid.
2014-09-23 08:32:09 -07:00
daniel229
d452d02aba Update replace function for Toaru Majutsu to Kagaku no Ensemble. 2014-09-21 10:58:56 +08:00
daniel229
a657da91c3 Replace download frame in Toaru Majutsu to Kagaku no Ensemble 2014-09-18 15:37:12 +08:00
daniel229
48b774d143 Replace download frame in Rezel Cross 2014-09-18 15:29:59 +08:00
daniel229
2dd3ab6c20 Replace frame download in suikoden1&2 2014-09-15 00:19:22 +08:00
Henrik Rydgard
f84ebf6bff sprintf->snprintf, fix some too short buffers 2014-09-14 00:14:11 +02:00
Henrik Rydgard
02a89306d1 Warning fixes, sprintf->snprintf 2014-09-13 23:51:07 +02:00
Unknown W. Brackets
a892779f89 Merge pull request #6880 from daniel229/func_replace_sakurasou
Replace frame download in Sakurasou No Pet Na Kanojo

Conflicts:
	Core/HLE/ReplaceTables.cpp
2014-09-12 22:28:27 -07:00
daniel229
5f4a95cdd5 Update as unknown's suggestion 2014-09-13 10:21:00 +08:00
Unknown W. Brackets
4bad83b12b Move a couple funcs outside of loops.
Will cut down on the performance hit.
2014-09-11 22:56:53 -07:00
daniel229
7c1d4234ab Replace frame download in Sakurasou No Pet Na Kanojo 2014-09-11 15:32:07 +08:00
daniel229
22fa431f89 Replace frame download in Ore no Imouto ga Konnani Kawaii Wake ga Nai 2014-09-11 14:34:17 +08:00
daniel229
81ec625d0a Update the hook for Kirameki School Life SP 2014-09-11 12:01:58 +08:00
daniel229
e8efab6d21 Change function name 2014-09-11 00:47:06 +08:00
daniel229
7f6f52a904 Fixes saveicons in Kirameki School Life SP. 2014-09-11 00:18:59 +08:00
daniel229
b1d9461779 Replace frame download in Narisokonai Eiyuutan 2014-09-09 14:33:15 +08:00
Unknown W. Brackets
420eb1bed3 Replace frame download in SD Gundam G Generation. 2014-09-08 22:44:27 -07:00
Unknown W. Brackets
ee6960ff7a Hook the saveicon creation func in Growlanser IV. 2014-09-08 19:10:46 -07:00
Unknown W. Brackets
cddc289675 Use fixed dates for rtc adjusted and reincarnated.
This may be safer in case a game thinks funny business is going on if the
user changed the clock very recently, which wouldn't be the case on a
real PSP.
2014-09-05 09:34:09 -07:00
Unknown W. Brackets
1e31fd54eb Implement rtc date formatting funcs. 2014-09-05 09:13:33 -07:00
Unknown W. Brackets
0180d18449 Correct sceRtcGetDayOfWeek() for odd years. 2014-09-05 09:13:08 -07:00
Andrew Church
6afa948d06 s32 -> int because it doesn't need to explicitly be 32 bits. 2014-09-05 00:31:25 +09:00
Andrew Church
0512a17654 Read lw offset as a signed value. 2014-09-05 00:25:48 +09:00
Andrew Church
230bbad1c6 Read the offset for the framebuffer index from the instruction stream
instead of using a literal constant, so the hook works for other games
using the same function but a different offset (e.g. Zero no Kiseki).
Also remove the memcpy() since the original function will do it anyway
(and may do it differently if other games call the function with
different arguments).
2014-09-04 23:44:32 +09:00
Andrew Church
33264a6b8f Hook Brandish frame capture for menu fadeout and save screenshots. 2014-09-04 17:36:56 +09:00
Henrik Rydgård
8b67f427b0 Merge pull request #6826 from thedax/hle-stub
Add a non-functional stub for sceNetResolverInit.
2014-09-02 22:42:15 +02:00
The Dax
c2afa8f221 Add a non-functional stub for sceNetResolverInit.
Lets a Quake II homebrew port by CROW_BAR boot again.
2014-09-02 15:40:42 -04:00
Henrik Rydgård
b2f5efaa50 Merge pull request #6822 from unknownbrackets/thread-funcs
Improve some timing / thread funcs
2014-09-02 09:49:46 +02:00
Unknown W. Brackets
c9df66a450 Initialize the VFPU revision from a PSP-3000 value. 2014-09-01 23:16:50 -07:00
Unknown W. Brackets
d637de8b4c Eat some cycles when signaling semaphores.
Seems to match tests.
2014-09-01 21:12:56 -07:00
Unknown W. Brackets
2923800217 Eat some cycles when starting a thread.
Seems to improve a test a bit, based on tests.
2014-09-01 21:12:13 -07:00
Unknown W. Brackets
84231c0188 Eat some cycles when canceling/deleting fpls.
Improves tests measuing timeouts remaining after delete.
2014-09-01 21:11:41 -07:00
Unknown W. Brackets
c5b15cc9fc Adjust semaphore timing slightly.
This matches tests a bit better.
2014-09-01 20:03:58 -07:00
Unknown W. Brackets
6599430c04 Improve some timing in msgpipes.
Probably not super important, but makes tests happier.

Also, when unscheduling an event, return the current time left, including
already spent time since last Advance.
2014-09-01 20:03:58 -07:00
Unknown W. Brackets
a42a2864a6 Protect against vtimers scheduled in past. 2014-09-01 20:03:57 -07:00
Unknown W. Brackets
f78712ec3a Simplify alarm timing.
This is from when it seemed like sceKernelSetAlarm() was by cycles.
Corrects handling of large timer / sysclock params.
2014-09-01 20:03:57 -07:00
Unknown W. Brackets
2cad35ad59 Put a 250us minimum on all vtimer scheduling. 2014-09-01 20:03:56 -07:00
Unknown W. Brackets
4e9f54a400 Require 250us lead time to start a vtimer.
Matches tests, improves the threads/vtimers/delete test.
2014-09-01 20:03:56 -07:00
Unknown W. Brackets
baf465500a Fix a bad iterator dereference in sceMpeg.
Though not sure it should actually reach here, let's at least not crash.
2014-08-31 21:15:04 -07:00
sum2012
06fae5bcbc Add a "no loop information" log 2014-09-01 04:47:12 +08:00
sum2012
55cb292bad Correct sceKernelSelfStopUnloadModule 's name and logging 2014-08-29 20:36:21 +08:00
sum2012
26b25052c2 Fix sceKernelSelfStopUnloadModule parameters
According to http://code.google.com/p/jpcsp/source/detail?r=3597
2014-08-29 20:31:25 +08:00
Henrik Rydgard
1d7642fa48 Remove most mentions of the "_XBOX" define 2014-08-24 14:21:35 +02:00
Henrik Rydgard
0f973a3276 Get it running on Android again 2014-08-23 09:48:08 +02:00