Commit Graph

1618 Commits

Author SHA1 Message Date
oioitff
489126fa3a Channel volume should be done in __AudioEnqueue.
Fix noise in 7th Dragon 2020.
2013-06-05 16:16:53 +08:00
oioitff
156c4ca78a Fix crash for invalid mpeg header. 2013-06-05 15:46:04 +08:00
Henrik Rydgard
394a6a0f5c Merge branch 'master' into plugindownload 2013-06-04 23:54:50 +02:00
Henrik Rydgard
5e28df26b2 Fixes and cleanup 2013-06-04 23:54:37 +02:00
oioitff
c913f92427 More improvement for mpeg pts.
The mpeglastTimeStamp is probably wrong in some videos. So a video is
end only if there is no more data for decoding.
2013-06-04 23:03:09 +08:00
Henrik Rydgård
e1fe08dc25 Merge pull request #2070 from thedax/sceNetStubs
Implement multiple stubs for sceNet*
2013-06-04 03:01:35 -07:00
The Dax
fadea64ebf Fix sceNetEtherNtostr. 2013-06-04 01:53:32 -04:00
The Dax
50dc015d44 Remove useless dependency in FunctionWrappers.h. 2013-06-04 00:41:50 -04:00
The Dax
b02dbe3f5f Add a multitude of sceNet* stubs.
I tried this in an attempt to fix the Peace Walker hangs, but it didn't seem to help, so it must be related to something else.
2013-06-04 00:39:03 -04:00
raven02
8efff9ab90 Re-enable atrac3+ mono audio 2013-06-04 11:16:55 +08:00
oioitff
c9d07575f5 Implement sceAtracGetBufferInfoForReseting 2013-06-03 21:33:34 +08:00
oioitff
f9a6c95d93 fix a tiny bug for atrac crash 2013-06-03 20:02:44 +08:00
oioitff
a9ba797ce5 Improve mpeg pts.
A real PSP return a value start from 0.
2013-06-03 17:00:58 +08:00
Unknown W. Brackets
e0f05ec382 Oops, lost these two lines editing.
They were important, darn.
2013-06-03 00:23:56 -07:00
Henrik Rydgård
eca3b147a3 Merge pull request #2045 from unknownbrackets/memcpy
Fix crash on ARM in sceKernelMemcpy().
2013-06-03 00:21:05 -07:00
Henrik Rydgård
1d0d13509c Merge pull request #2044 from unknownbrackets/mem-pointers
Use PSPPointer in a few more places
2013-06-03 00:19:42 -07:00
Unknown W. Brackets
9139b037c5 Fix crash on ARM in sceKernelMemcpy().
Happened with unaligned addresses only.  Fixes #1889.
2013-06-02 23:40:31 -07:00
raven02
4399c460aa Temporary disable atrac3+ mono which crash on Android platform 2013-06-03 08:02:00 +08:00
Unknown W. Brackets
aada48cf15 Use a PSPPointer in lwmutexes. 2013-06-02 15:17:24 -07:00
Unknown W. Brackets
b695fdda85 Ignore pixel mode -1 in psmf, seems to default?
This makes videos play fine in Sword Art Online.
2013-06-02 13:52:11 -07:00
Unknown W. Brackets
3468d7ddd9 Fix reporting typo. 2013-06-02 10:27:16 -07:00
Lioncash
a623660435 Nope, they should be ERROR_LOGs. 2013-06-02 04:54:14 -04:00
Lioncash
d99d4de2b7 Should be DEBUG_LOGs in the last change. Accidentally put WARN_LOGs. 2013-06-02 04:47:01 -04:00
Lioncash
3c2d1f5e5a Properly enclose psmfplayer calls within the null checks. Doesn't make sense any other way.
Add warning logs to each to help make debugging in the future less of a pain in the ass.
2013-06-02 04:43:44 -04:00
Unknown W. Brackets
b32a52f35c Convert videos directly to the desired format.
This still converts at least in some cases, but less.  But these seem
backwards, why are the BGR formats converting to RGB?
2013-06-02 00:31:16 -07:00
Sacha
b39a572043 Buildfixes.
Fix C++11 usage.
Remove redundancy.
Fix st_*time re-usage.
2013-06-02 13:26:39 +10:00
Unknown W. Brackets
3d1e426e4a Send games a free packet count that makes sense. 2013-06-01 15:33:47 -07:00
Henrik Rydgård
0e65c23346 Merge pull request #2020 from oioitff/mpeg-support
Rewrite some core functions for sceMpeg with ffmpeg.
2013-06-01 14:24:48 -07:00
oioitff
c84cdee0c7 Partly implement scePsmf with MediaEngine. 2013-06-02 01:30:51 +08:00
oioitff
0b23e0389f Rewrite and implement sceMpeg with MediaEngine. 2013-06-02 01:29:59 +08:00
Henrik Rydgard
1e84dd23d7 Hide atrac3+ option if no codec dll/.so installed 2013-06-01 19:12:11 +02:00
Unknown W. Brackets
bae5f9654f Don't forget to mark a module as started w/o entry. 2013-06-01 09:39:15 -07:00
Unknown W. Brackets
cc647ed910 Add logging of more relocation errors. 2013-06-01 09:29:38 -07:00
Unknown W. Brackets
a42f80ed55 Add some logging for duplicate HI16/LO16 relocs. 2013-06-01 09:12:31 -07:00
Henrik Rydgård
6db586e12f Merge pull request #2015 from tpunix/master
Module load bug fix
2013-06-01 08:25:08 -07:00
tpu
934196109e WriteVarSymbol bug fix 2013-06-01 22:43:23 +08:00
Unknown W. Brackets
06c19622d5 Fix some init/type warnings. 2013-05-31 23:14:29 -07:00
Unknown W. Brackets
98f99e1e3c Fix some initialization order warnings. 2013-05-31 23:14:28 -07:00
Unknown W. Brackets
7687bccce6 Try to avoid possible global var name conflicts. 2013-05-31 23:14:28 -07:00
Unknown W. Brackets
ffbe28fc61 Fix some minor type conversion warnings. 2013-05-31 23:14:26 -07:00
Henrik Rydgård
f2c316a64a Merge pull request #2009 from unknownbrackets/gpu-minor
Add GPU statistic for cycles executed
2013-05-31 12:39:47 -07:00
Unknown W. Brackets
9c85bd92e4 Show statistics for GPU cycles executed per frame. 2013-05-31 10:40:16 -07:00
The Dax
cda9881cb9 Fix some logging typos and a comment typo. 2013-05-31 12:59:39 -04:00
Henrik Rydgård
e5e2636d1d Merge branch 'patch-6' of https://github.com/sum2012/ppsspp into sum2012-patch-6 2013-05-31 18:36:50 +02:00
Henrik Rydgård
c85add4ede Merge pull request #1999 from unknownbrackets/savedata
Implement the filelist savedata mode properly + other save fixes
2013-05-31 02:31:41 -07:00
Unknown W. Brackets
7d17ed8a8e Correctly shutdown dialogs on game reset. 2013-05-31 01:41:04 -07:00
Henrik Rydgård
7e3ff382d6 Merge pull request #1991 from thedax/pangyaFix
Fix Pangya Fantasy golf properly (redux)
2013-05-31 01:36:01 -07:00
Unknown W. Brackets
ee751d6fdd Buildfix for Linux, fixes #1994. 2013-05-30 22:42:27 -07:00
The Dax
e4e642b2a7 Fix Call of Duty Road to Victory black screen caused by Pangya fix. It was just a simple oversight. 2013-05-30 23:02:53 -04:00
sum2012
c44e4de7e6 Fix sceKernelModule
Fix Army Of Two 40th Day
https://github.com/hrydgard/ppsspp/issues/1919
Thanks unknownbrackets , JPCSP r3181
2013-05-31 07:36:06 +08:00
The Dax
370b50a328 Fix Pangya: Fantasy Golf hang when going in-game via emulating SCE_KERNEL_ERROR_NOCWD correctly, or at least, more correctly than it was before. 2013-05-30 16:15:15 -04:00
Henrik Rydgard
572eb26305 Merge branch 'master' into makotech222-cwcheat
Conflicts:
	Core/Core.vcxproj.filters
	Core/HLE/__sceAudio.cpp
	Core/HLE/sceKernel.cpp
2013-05-30 19:11:20 +02:00
lioncash
85098289e8 Fix improper clearing of the sample queue in sceAtrac.cpp 2013-05-30 12:15:17 -04:00
lioncash
743f5185b8 Missed including this in the __KernelSwitchContext null check fix.
This shouldn't be called if target is null.
2013-05-30 11:55:29 -04:00
lioncash
81a91fbcbb Ensure code inside method __KernelSwitchContext in sceKernelThread.cpp isn't unintentionally executed.
The null check around line 2935 for target also makes me think this was supposed to have been done.
2013-05-30 11:47:10 -04:00
Henrik Rydgard
2bdb338bf5 Turn down some excessive logging. 2013-05-30 16:21:53 +02:00
King_DuckZ
61500281a9 Warning fix on Intel compiler. 2013-05-30 15:42:11 +02:00
King_DuckZ
1455452850 Trailing whitespaces removed. 2013-05-30 15:42:11 +02:00
oioitff
852a07d347 Remove all dshow stuff. 2013-05-30 19:14:18 +08:00
oioitff
b0a3f803e0 Add support for new atrac3plus decoder 2013-05-30 17:33:47 +08:00
Henrik Rydgård
9832e24e8a Merge pull request #1971 from tpunix/master
add sprx support (sceKernelLoadModuleNpDrm)
2013-05-28 23:34:34 -07:00
tpu
40926e5d5b make sceKernelLoadModuleNpDrm works. sprx can be load now. 2013-05-29 10:39:28 +08:00
Unknown W. Brackets
4d54ca03d0 Validate number of vblanks in multi wait.
Fixes #1922.
2013-05-28 07:39:41 -07:00
Henrik Rydgård
0abf322c1d Merge pull request #1961 from unknownbrackets/savestates
Fix some missing things from save states
2013-05-28 00:41:01 -07:00
Henrik Rydgård
d6135ed452 Merge pull request #1960 from unknownbrackets/scheduling
Recalculate numWaitThreads all the time
2013-05-28 00:39:24 -07:00
Unknown W. Brackets
c9e931e362 Save the state of the PGD info struct.
Not touching any of its internals.
2013-05-27 23:59:03 -07:00
Unknown W. Brackets
7cffcd2773 Correct TLS object save stating. 2013-05-27 23:48:31 -07:00
Unknown W. Brackets
77b0688d92 Recalculate numWaitThreads all the time.
Before, it could go negative by having a thread woken a second time
(e.g. because of a delete) before it actually scheduled and woke up.
2013-05-27 22:44:10 -07:00
Unknown W. Brackets
fa69e5e646 Didn't need any special logic here after all. 2013-05-27 17:05:13 -07:00
Unknown W. Brackets
7b154f9a2e Fix VAG looping. 2013-05-27 16:48:59 -07:00
Unknown W. Brackets
91bdc0617e Return an invalid size error even for VAG = 0. 2013-05-27 12:19:19 -07:00
Unknown W. Brackets
aeb2b23735 Validate volume inside sceSasSetVolume().
I wonder what a negative volume means?
2013-05-27 11:57:27 -07:00
raven02
c41ac3659f Move low level atrac3 audio WARN_LOG to sceAtracLowLevelInitDecoder 2013-05-27 20:38:31 +08:00
oioitff
f158eed95b Build fix, sorry. 2013-05-27 18:18:20 +08:00
oioitff
8ca79f8959 Implement low level atrac3 decoder. 2013-05-27 16:49:00 +08:00
Henrik Rydgård
8f8650f747 Merge pull request #1940 from unknownbrackets/mpeg-fix
Fix videos that never end
2013-05-27 00:08:06 -07:00
Henrik Rydgård
8e6c093eec Merge pull request #1938 from unknownbrackets/symbol-map
Symbol map fixes
2013-05-27 00:06:40 -07:00
Unknown W. Brackets
f397f83b4f Buildfix for Mac / iOS. 2013-05-26 19:02:40 -07:00
Unknown W. Brackets
4f069a23d9 Since we don't use readlength yet, don't add it.
This would actually go negative often enough, making us consume packets
more slowly than we should, or even never finish consuming.  4 is probably
too small, though.
2013-05-26 17:59:13 -07:00
Unknown W. Brackets
1beb19f827 Clear the debug symbol map on shutdown.
Instead of polluting the next game.
2013-05-26 16:29:21 -07:00
Unknown W. Brackets
71cd80b64d Remove comment. 2013-05-26 11:45:49 -07:00
Unknown W. Brackets
0b2a112212 Initial implementation of sceKernelStopModule().
Not perfect but should be functional.
2013-05-26 11:30:22 -07:00
Unknown W. Brackets
0d828554bc Add a wait type for modules to handle return right. 2013-05-26 10:54:11 -07:00
Unknown W. Brackets
727b3b4127 Get rid of the "root" return hack. 2013-05-26 10:36:18 -07:00
Unknown W. Brackets
c34854ead3 Use a custom RA for module funcs. Not used yet.
But it will be.
2013-05-26 10:28:08 -07:00
Unknown W. Brackets
a779645152 Wrap sceKernelGetThreadExitStatus().
So it's usable internally too.
2013-05-26 10:17:59 -07:00
Henrik Rydgård
138c3fb835 Merge pull request #1927 from unknownbrackets/scheduling2
Implement suspend/resume HLE for threads
2013-05-26 03:06:42 -07:00
Henrik Rydgård
49d9af1176 Merge pull request #1924 from unknownbrackets/scheduling
Fix sceKernelWakeupThread
2013-05-26 03:05:01 -07:00
Unknown W. Brackets
2c4254d0c8 Disallow suspend/resume on current thread.
Might be some extra subtle things with callbacks/interrupts here...
2013-05-26 02:25:53 -07:00
Unknown W. Brackets
e6795b1a41 Initial attempt at a suspend/resume thread impl. 2013-05-26 01:01:29 -07:00
Unknown W. Brackets
690e52bc34 Make sure we keep the suspend state around.
I assume it sticks around in this case.
2013-05-25 23:57:04 -07:00
Unknown W. Brackets
2f69378bf6 Return the moduleId in sceKernelUnloadModule().
Final Fantasy 4 very clearly requires this.
2013-05-25 21:07:41 -07:00
Unknown W. Brackets
ac7bfcb6ef Report unfinished code in sceKernelAllocateTls(). 2013-05-25 20:43:47 -07:00
Unknown W. Brackets
084ad5aa53 Wrap the sleep/wakeup HLE funcs. 2013-05-25 20:43:19 -07:00
Unknown W. Brackets
8adf1e9ede Properly return success in sceKernelWakeupThread().
Fixes #1596, fixes #1796, possibly others.  I can't believe how long
I stared at this code and debugged it without noticing such a simple
thing...
2013-05-25 20:28:22 -07:00
Unknown W. Brackets
50c085401a Remove UNIMPL from FileTime funcs, they work now. 2013-05-25 19:15:15 -07:00
Unknown W. Brackets
f24b4ef7de Implement the sceRtc*Win32FileTime() funcs. 2013-05-25 17:27:34 -07:00
Unknown W. Brackets
2304e9253e Make sure not to use invalid module start params.
If there's a 0, those parameters are not likely valid.
2013-05-25 15:15:29 -07:00
Henrik Rydgard
5c416d80c7 Fix PSP_UMD_TYPE_GAME... 2013-05-24 19:52:46 +02:00
raven02
84ccfde2ef Fix crash when low level decode hits atrac3 audio 2013-05-24 23:20:14 +08:00