Unknown W. Brackets
d0a9813844
Account for uneven sized chunks by rounding up.
...
Chunks have an extra pad byte if the size is uneven. This probably isn't
happening, but just to be safe.
2015-10-18 12:50:40 -07:00
Unknown W. Brackets
8fa843bbc3
Atrac: attempt to power through bad frames.
2015-10-17 16:20:27 -07:00
Unknown W. Brackets
d30508ac43
Buildfix for Symbian/Blackberry/etc.
2015-10-17 16:20:27 -07:00
Unknown W. Brackets
60378dd59d
Atrac: Hack to make seeking in GTA work.
2015-10-17 16:20:26 -07:00
Unknown W. Brackets
7d32876610
Atrac: Cleanup FFmpeg context ptr management.
2015-10-17 16:20:25 -07:00
Unknown W. Brackets
b47458eabb
Atrac: fix loading certain savestates.
...
Some worked with it that high, but others not.
2015-10-17 16:20:24 -07:00
Unknown W. Brackets
5177f16c8d
Atrac: Use constants for the states, more clarity.
2015-10-17 16:20:23 -07:00
Unknown W. Brackets
310aa6ed47
Atrac: Remove avio helpers.
2015-10-17 16:20:22 -07:00
Unknown W. Brackets
6420b679d4
Atrac: Split out low-level packet handling.
...
So we don't have the hack in the other code at all.
2015-10-17 16:20:22 -07:00
Unknown W. Brackets
5174f7df69
Atrac: Read in the jointStereo flag for ATRAC3.
2015-10-17 16:20:21 -07:00
Unknown W. Brackets
27a10bc49f
Atrac: Fix AA3 dataOff value.
...
Note: will still be wrong in savestates...
2015-10-17 16:20:20 -07:00
Unknown W. Brackets
7d0dd0b94a
Atrac: Stop using avio/avformat entirely.
...
Probably breaks AA3 support at this point...
2015-10-17 16:20:20 -07:00
Unknown W. Brackets
2037977292
Revert compatibility flag for GTA Music Hack.
...
This reverts commit eb4ca0cf81
.
2015-10-17 16:20:19 -07:00
Lioncash
fea7428fdb
Core: Add missing override specifiers
2015-10-17 02:58:02 -04:00
Henrik Rydgård
27a124dcff
Merge pull request #8043 from sum2012/modules---
...
Allocate memory better by @unknownbrackets
2015-10-14 21:18:00 +02:00
Unknown W. Brackets
4e7c59daae
Fix minor typo.
2015-10-12 22:14:14 -07:00
Unknown W. Brackets
679b64ef5a
Atrac: calculate instead of using header value map.
...
These are knowable values, so there's no real benefit to a static table
except potentially error detection.
2015-10-12 22:10:35 -07:00
Unknown W. Brackets
e3254e05f6
Clean up a bit of logging.
2015-10-13 04:24:44 +08:00
Unknown W. Brackets
4aa8c35950
Removed unused code to return fake module id.
...
We already allocate modules now.
2015-10-13 04:24:38 +08:00
sum2012
5f7cbc9603
Crash fix by @hrydgard
2015-10-09 20:10:57 +08:00
Unknown W. Brackets
5fe49b23e9
Reschedule on module load/unload more correctly.
2015-10-09 20:08:11 +08:00
Unknown W. Brackets
cc92d6fb34
Allocate for utility modules, handle dependencies.
2015-10-09 20:08:07 +08:00
Henrik Rydgard
68fc776fa7
Work around some crashes I got trying to load a GTA:LCS savestate from 2014.
...
However, the savestate still loads to a black screen, although background audio is working.
2015-10-04 10:34:15 +02:00
Henrik Rydgard
eb4ca0cf81
Add a compatibility flag to revert sceAtrac to before #6976 . Makes audio work in GTA again.
...
Hopefully we will find a better fix in the future.
Also see issue #7863 .
2015-09-27 11:51:46 +02:00
Henrik Rydgard
b07b002040
Introduce "Compatibility Flags".
...
These should be used very restrictively, see comment in Compatibility.h.
Should help #8004 , by disabling depth rounding in Fight Night round 3.
2015-09-27 01:23:20 +02:00
Henrik Rydgard
8996f58693
Generate save state IDs for homebrew using the elf or directory name where applicable.
2015-09-25 19:27:40 +02:00
Henrik Rydgard
351baa101c
Some Android warning fixes
2015-09-22 18:30:57 +02:00
sergiobenrocha2
5ec87f3459
Improve detection of for shared libs in both sdl and Qt (zlib, libzip, snappy and glew).
2015-09-16 00:59:31 -03:00
Henrik Rydgård
d34219e0ba
Merge pull request #7968 from sum2012/patch-1
...
Enabled some code on proAdhoc by @lightfirst
2015-09-13 23:32:51 +02:00
sum2012
14bbfc8c96
Enabled some code on proAdhoc by @lightfirst
...
Fix #7962
2015-09-13 21:07:13 +08:00
Unknown W. Brackets
91632a1ea5
Add some fallback logic when scheduling dies.
2015-09-12 13:36:52 -07:00
Unknown W. Brackets
c03b163537
Move ThreadQueueList to a separate file.
...
Not reused anywhere, but just so it's a little cleaner.
2015-09-12 13:03:15 -07:00
Unknown W. Brackets
a1139a4f45
Add some comments to the thread queue handling.
2015-09-12 12:57:44 -07:00
Henrik Rydgård
33c39636c8
Don't use deprecated FFMPEG codec IDs. Tries to solve #7955 .
...
Simpler alternative to #7959 .
2015-09-12 10:45:03 +02:00
Unknown W. Brackets
e0f85a9c6b
Native merge part 1: skip native/ in includes.
2015-09-06 12:19:33 -07:00
Henrik Rydgard
1c67de0c21
We don't need a third set of sized integer typedefs, get rid of it.
2015-09-06 19:10:08 +02:00
Henrik Rydgard
72ae497350
Remove glstate usage except in the GPU implementation. Prepare for moving it into PPSSPP.
2015-09-06 12:42:15 +02:00
Henrik Rydgard
2430c283a5
More GPU cleaning, removing uses of GPUState.h where not needed.
...
Want to get rid of direct accesses to GPUState in modules that may be reused in
my future next-gen backends, that will reformat display lists into command lists that will
then be optimized and executed, out of sync with the real GPUState.
Candidate modules that may be reused in full are Framebuffer and Depal, possibly TextureCache to some degree.
2015-07-29 12:37:49 +02:00
Henrik Rydgard
cde585a29a
Include dependency cleanup
2015-07-29 11:48:20 +02:00
Henrik Rydgård
0726912f09
sceDisplay, GPUState cleanup and comments
2015-07-25 09:46:11 +02:00
Henrik Rydgard
828c740fd5
Correct a few comments, thanks unknown.
2015-07-24 23:27:23 +02:00
Henrik Rydgård
0763dbc641
Cleanup and comments in sceGe.cpp
2015-07-24 19:52:42 +02:00
Unknown W. Brackets
cd842ac21f
Validate blocklinking in icache invalidate all.
...
Normally blocks are invalidated on entry. But when blocklinking is on,
we don't validate on all entries.
This fixes Tales of Rebirth crashes (#7868.)
2015-07-19 13:08:32 -07:00
Henrik Rydgard
d1bbc1d3c0
More regcache fixes. ML_IMM works now although there is another stability issue somewhere.
2015-07-11 16:59:13 +02:00
Henrik Rydgard
9937b41461
ARM64: Fix vi2uc and vi2us and enable them.
2015-07-11 16:46:11 +02:00
Henrik Rydgard
b9090a25b2
Reduce logspam in Burnout
2015-07-05 23:50:06 +02:00
Unknown W. Brackets
8fdceba7ca
Add timing for all the basics.
...
This way we can see overall stats for a frame.
2015-07-03 12:05:08 -07:00
Unknown W. Brackets
909e4b9bd8
Switch lo and hi so that low comes first.
...
This way we can treat it as a single 64-bit value.
2015-06-28 10:42:19 -07:00
Henrik Rydgard
7e55b3ec96
Fix some GCC compiler warnings about potentially uninitialized variables (compilers are getting too clever..)
2015-06-14 11:32:13 +02:00
Henrik Rydgard
00094e0fcc
More work on savedata UI.
2015-06-12 11:40:50 +02:00
Henrik Rydgård
ee1299b8f2
Merge pull request #7778 from unknownbrackets/frame-profiler
...
Improve frame profiler display a bit more
2015-05-28 19:02:46 +02:00
Unknown W. Brackets
d323dd472f
Account for io sync time in io statistics.
2015-05-27 20:02:09 -07:00
Jan Beich
803e02e224
Core: assume modern Unix has tm_gmtoff
...
Core/HLE/sceRtc.cpp:471:14: error: invalid argument type 'char *(*)(int, int)' to
unary expression
srcTick -= -timezone * 1000000ULL;
^~~~~~~~~
Core/HLE/sceRtc.cpp:498:14: error: invalid argument type 'char *(*)(int, int)' to
unary expression
srcTick += -timezone * 1000000ULL;
^~~~~~~~~
Core/HLE/sceRtc.cpp:1035:16: error: invalid argument type 'char *(*)(int, int)' to
unary expression
tz_seconds = -timezone;
^~~~~~~~~
Core/HLE/sceRtc.cpp:1074:16: error: invalid argument type 'char *(*)(int, int)' to
unary expression
tz_seconds = -timezone;
^~~~~~~~~
4 errors generated.
2015-05-26 15:20:12 +03:00
Jan Beich
a4eb49f009
Unbreak build with FakeJit
...
Core/MIPS/fake/FakeJit.cpp:141:46: error:
unknown type name 'FakeJitBlock'; did you mean 'JitBlock'?
const u8 *FakeJit::DoFakeJit(u32 em_address, FakeJitBlock *b)
^~~~~~~~~~~~
JitBlock
Core/MIPS/JitCommon/JitBlockCache.h:59:8: note:
'JitBlock' declared here
struct JitBlock {
^
Core/MIPS/fake/FakeJit.cpp:141:20: error:
out-of-line definition of 'DoFakeJit' does not match any declaration in
'MIPSComp::FakeJit'
const u8 *FakeJit::DoFakeJit(u32 em_address, FakeJitBlock *b)
^~~~~~~~~
Core/HLE/ReplaceTables.cpp:1044:29: error:
use of undeclared identifier 'JITFUNC'
{ "fabsf", &Replace_fabsf, JITFUNC(Replace_fabsf), REPFLAG_ALLOWINLI...
^
Core/HLE/ReplaceTables.cpp:1101:27: error:
invalid application of 'sizeof' to an incomplete type 'const
ReplacementTableEntry []'
for (int i = 0; i < (int)ARRAY_SIZE(entries); i++) {
^~~~~~~~~~~~~~~~~~~
native/math/../base/basictypes.h:67:30: note:
expanded from macro 'ARRAY_SIZE'
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
^~~
Core/HLE/ReplaceTables.cpp:1117:9: error:
invalid application of 'sizeof' to an incomplete type 'const
ReplacementTableEntry []'
return ARRAY_SIZE(entries);
^~~~~~~~~~~~~~~~~~~
native/math/../base/basictypes.h:67:30: note:
expanded from macro 'ARRAY_SIZE'
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
^~~
Core/MIPS/JitCommon/JitCommon.cpp:31:2: error:
unknown type name 'Jit'
Jit *jit;
^
Core/MIPS/JitCommon/JitCommon.cpp💯 21: error:
no member named 'Asm' in 'MIPSComp::FakeJit'
if (MIPSComp::jit->Asm().IsInSpace((u8 *)(intptr_t)addr)) {
~~~~~~~~~~~~~ ^
Core/MIPS/JitCommon/JitCommon.cpp:101:45: error:
no member named 'Asm' in 'MIPSComp::FakeJit'
*offset = addr - (uint64_t)MIPSComp::jit->Asm().GetBasePtr();
~~~~~~~~~~~~~ ^
Core/MemMap.cpp:197:57: error:
use of undeclared identifier 'MEMVIEW32_MASK'
...position, view.size, base + (view.virtual_address & MEMVIEW32_MASK));
^
2015-05-26 15:20:10 +03:00
Henrik Rydgard
26624709f7
Hook up the frame profiler to a few measurements
2015-05-24 23:45:36 +02:00
Henrik Rydgard
18655d14a4
Release PSP buttons when losing gameplay focus, fixes part 1 of #7758 , and part 2 of #7758 on Windows only.
2015-05-21 10:49:47 +02:00
Henrik Rydgard
ee81c7f1a1
Rotate controls along with the display. Only rotates d-pad and analog stick, but easy to add more buttons if desired.
2015-05-15 18:49:54 +02:00
Unknown W. Brackets
afe52db366
Fix some issues in sceNetAdhoc with old savestates.
...
This was causing the PPGe dlist to be shared with the thread, causing
weirdness and a double-free on exit.
2015-04-27 07:53:19 -07:00
daniel229
af9e04dc97
Replace framebuffer download in Youkoso Hitsuji-Mura Portable
2015-04-20 16:36:07 +08:00
Henrik Rydgård
70fa830ba5
Split out the ReplaceJalTo test logic.
...
This makes it so the IR, in the future, can work correctly for
replacements.
2015-04-12 13:35:10 -07:00
Unknown W. Brackets
ffe7ef1ee2
Avoid spurious warnings in sceAtrac.
...
Valkyrie Profile for example calls this, doesn't seem like 0 matters.
2015-04-12 10:35:53 -07:00
Unknown W. Brackets
9dc7f7c3a2
Correct > 8 args for HLE logging again.
...
This time for real? Arg, stupid mistake.
2015-04-08 12:44:32 -07:00
Unknown W. Brackets
0847d46b79
Remove always-true condition.
...
It was only for logging anyway, can't be that important.
2015-04-08 12:15:41 -07:00
Unknown W. Brackets
c0dde25e5a
Set the sid on StreamInfo.
...
It's not used anyway, but if we have it there it might be later.
2015-04-08 11:57:58 -07:00
Unknown W. Brackets
53340056fd
Remove some unreachable code.
...
This wasn't being used, and the other path should be fine.
2015-04-08 11:28:52 -07:00
Unknown W. Brackets
b5bb07b12c
Fix HLE logging for args > 8.
2015-04-08 00:55:49 -07:00
Henrik Rydgård
bc490e60ab
Merge pull request #7661 from lioncash/false
...
sceIo: Remove always false condition
2015-04-06 23:29:52 +02:00
Henrik Rydgard
44286a2b37
ARM64: Accurate float->int conversion with rounding mode.
2015-04-06 18:13:34 +02:00
Henrik Rydgard
8dc77ff32e
ARM64: Turn off some debugging stuff, start implementing instructions. Something is wrong though, if I implement more than addiu things break..
2015-04-06 18:13:09 +02:00
Henrik Rydgard
34ab532971
ARM64 jit: Fix some pointer truncations and other fun stuff..
2015-04-06 18:13:05 +02:00
Henrik Rydgard
b309c83973
Initial work on ARM64, based on the ARM jit.
2015-04-06 18:13:01 +02:00
Henrik Rydgård
a269e118b3
Merge pull request #7658 from unknownbrackets/debugger
...
Make it easier to use memchecks in HLE
2015-04-06 17:03:14 +02:00
Lioncash
1ac81b5014
sceIo: Remove always false condition
2015-04-06 10:05:44 -04:00
Unknown W. Brackets
e2ecd1eabd
Add memchecks for ReadStruct/WriteStruct.
2015-04-05 18:09:35 -07:00
Unknown W. Brackets
2450724be2
Make Memory::Memcpy() execute memchecks directly.
...
This makes it easier to handle breakpoints in HLE.
2015-04-05 18:09:20 -07:00
Unknown W. Brackets
0fc64dc717
Return an error when the atrac stream is full.
2015-04-05 17:22:38 -07:00
Unknown W. Brackets
67d9233de1
Fix some compiler warnings.
...
Oops, f format in hle logging wasn't working right. See #7641 .
2015-03-28 20:50:34 -07:00
Unknown W. Brackets
8d5f843bb8
Cleanup thread start and create logging.
...
Also report less cases.
2015-03-28 14:46:09 -07:00
Unknown W. Brackets
fc3d6ff04a
Disable reporting for some thread funcs.
...
We know they are misused and it's not giving us extra information.
2015-03-28 14:32:32 -07:00
Unknown W. Brackets
0aaabcaac9
Clear old registered action types on reset.
2015-03-28 13:01:49 -07:00
Unknown W. Brackets
c642f92bfb
Initialize a few display state values on init.
2015-03-28 13:01:30 -07:00
Unknown W. Brackets
ae4811d0d1
Still fudge seek positions for low level.
...
Since in this case we're tricking it into reading the same buffer area.
2015-03-26 22:34:45 -07:00
Unknown W. Brackets
425eed7bea
Keep separate track of ffmpeg pos and decode pos.
...
FFmpeg buffers, so forcing the pos only makes FFmpeg read in garbage
because it doesn't know that you seeked in the bytestream on it.
2015-03-26 20:23:37 -07:00
Henrik Rydgård
62e621f8a1
Merge pull request #6976 from unknownbrackets/atrac-minor
...
When seeking to atrac positions, force alignment and start from zero
2015-03-26 00:29:51 +01:00
Unknown W. Brackets
c2153ff976
Add new logging in sceKernelCreateThread().
2015-03-22 21:22:40 -07:00
Unknown W. Brackets
74c6f2696d
Add log formatting for 64-bit arg types + stack.
2015-03-22 21:15:13 -07:00
Unknown W. Brackets
110cc119ce
Change some logging in the last Callback func.
2015-03-22 20:51:56 -07:00
Unknown W. Brackets
52a37c1330
Actually use the table's arg and ret masks.
2015-03-22 20:51:56 -07:00
Unknown W. Brackets
fcf0518223
Update all the HLE tables with arg and ret info.
2015-03-22 20:51:55 -07:00
Unknown W. Brackets
1b2b5f41a9
Fix a typo.
2015-03-22 20:49:43 -07:00
Unknown W. Brackets
2c8199ec73
Make gcc happy when there are no var args.
2015-03-22 20:49:42 -07:00
Unknown W. Brackets
41631eb2b1
Try a different format of HLE logging.
2015-03-22 20:49:42 -07:00
Henrik Rydgård
cac05197ed
Merge pull request #7623 from sum2012/Atrac-minor-
...
Add a logging in sceAtracGetRemainFrame
2015-03-22 00:32:47 +01:00
sum2012
35c04e1187
Fix tab
2015-03-22 06:35:49 +08:00
sum2012
2c89d78f9d
Add a logging in sceAtracGetRemainFrame
2015-03-22 06:16:28 +08:00
sum2012
09c8670730
oop
2015-03-22 06:01:06 +08:00
sum2012
38eb713794
Fix tab
2015-03-22 05:58:00 +08:00
sum2012
b26e597479
Imp sceUtilityCheckNetParam
...
CS Combined Assault v06 homebrew use it
2015-03-22 05:42:44 +08:00
Henrik Rydgård
87f31d0803
Merge pull request #7616 from sum2012/atrac-minor-
...
Add more log in sceAtrac
2015-03-20 14:40:04 +01:00
sum2012
1ce1da9e73
Remove another blank
2015-03-20 21:38:13 +08:00
sum2012
b92c0538b6
Remove blank
2015-03-20 21:36:31 +08:00
Henrik Rydgard
f7215c39ee
Add missing memcheck to Replace_memcpy_jak
2015-03-19 23:09:39 +01:00
sum2012
67e847366a
Add more log in sceAtrac
2015-03-19 22:34:35 +08:00
Henrik Rydgård
6b2acbae8f
Merge pull request #7613 from daniel229/replace_download_frame_in_gakuenheaven
...
Replace download frame in Gakuen Heaven.
2015-03-18 18:11:54 +01:00
daniel229
a4d8be5023
Fixes saveicon in Gakuen Heaven.
2015-03-18 11:43:31 +08:00
sum2012
86c76fc4dc
Add remain frame information in sceAtracGetRemainFrame
2015-03-18 00:29:32 +08:00
daniel229
88249e89a8
Report sceUtility(Un)loadUsbModule.
2015-03-15 23:33:32 +08:00
daniel229
655c25c692
Add sceUtilityLoadUsbModule() and sceUtilityUnloadUsbModule()
2015-03-15 21:08:11 +08:00
Unknown W. Brackets
dad8f5cd25
Fix a bad pointer dereference / cast.
2015-03-10 10:56:09 -07:00
sum2012
4e302df69b
fix space bug
2015-03-08 20:10:10 +08:00
sum2012
c2435c1e9b
Add sceNetUpnp module
2015-03-08 20:07:03 +08:00
sum2012
18e7e73646
Type missing in HLETable.cpp
2015-03-08 16:53:49 +08:00
sum2012
8b2712975a
Forget update HLETables.cpp
2015-03-08 16:27:12 +08:00
sum2012
c9ddf8c642
Build fix
2015-03-08 13:38:47 +08:00
sum2012
039b51083c
Add sceG729 module
2015-03-08 13:27:40 +08:00
sum2012
0157f88035
Fix sceUsbCam
2015-03-08 12:37:56 +08:00
sum2012
6509468d47
Fix save status
2015-03-08 12:09:30 +08:00
sum2012
dbae0423d6
Add sceUsbCam module
2015-03-08 11:48:55 +08:00
sum2012
e5b349d33e
Change to INFO log
...
Because this is still not test yet
2015-03-08 11:45:27 +08:00
sum2012
dae6a4e40a
Fix and add 2 function
2015-03-08 11:42:48 +08:00
sum2012
7b262949aa
Add sceAudioRouting
...
First step to fix "Invizimals" 's game
2015-03-08 10:58:12 +08:00
Henrik Rydgård
077eae6255
Merge pull request #7566 from Bigpet/vs2015
...
Make compilable under VS2015
2015-03-07 00:16:50 +01:00
Peter Tissen
594ed65bd3
use the timezone value for non GLIB, non MSVC platforms
2015-03-06 21:55:39 +01:00
Peter Tissen
f5795a68a7
Make compilable under VS2015
2015-03-06 21:09:45 +01:00
Unknown W. Brackets
c991dd7555
Oops, fix an important typo.
2015-03-05 08:31:59 -08:00
Henrik Rydgård
3df63fdb43
Merge pull request #7554 from sum2012/sceMpegAvcCsc-delay
...
Add back hleDelayResult in sceMpegAvcCsc
2015-03-05 12:36:15 +01:00
Henrik Rydgard
3d012f2679
One more stack clearing value in sceFont
2015-03-05 12:26:21 +01:00
Henrik Rydgård
af4b559038
Merge pull request #7547 from hrydgard/func-stack-clear
...
Add ability to flag HLE functions to clear a bit of stack.
2015-03-05 10:37:28 +01:00
Henrik Rydgard
3e408047d3
Use unknown's measured stack clearing amounts in sceLibFont
2015-03-05 10:36:03 +01:00
sum2012
b3bb733b0d
Add back hleDelayResult in sceMpegAvcCsc
...
Fix #7549 Dengeki no Pilot: Tenkuu no Kizuna video flickering
But not break Bleach heat of soul 6
2015-03-04 07:21:38 +08:00
Unknown W. Brackets
98d7afae89
Switch to #pragma once in a few places.
...
Doesn't really affect git history much to change these.
2015-03-02 22:34:51 -08:00
Unknown W. Brackets
22ce464e42
Don't wake a vblank waiting thread within 115us.
...
Fixes #6966 , matches PSP behavior.
2015-03-01 18:31:25 -08:00
Henrik Rydgard
fd1dcb881f
Add ability to flag function to clear a bit of stack. See #6374 , idea by JPCSP, pointed out by sum2012.
2015-03-02 01:03:12 +01:00
Unknown W. Brackets
179e996b0b
jit: Discard unused regs before a syscall.
...
This is a pretty minor optimization, though.
2015-03-01 11:08:59 -08:00
Unknown W. Brackets
d49010832c
Make sceMpegChangeGetAuMode() operate more sanely.
...
I'm pretty sure this is what the intention was before, but it still
doesn't do anything useful (since ignore* are... ignored.)
2015-03-01 09:26:53 -08:00
Unknown W. Brackets
f312925374
Fix a log message.
2015-03-01 09:26:08 -08:00
Chin
22593cddcc
Use pre-increment instead of post-increment for iterators, and use auto for some iterators
2015-03-01 16:55:47 +01:00
Chin
ff5d408c81
Combine two ifs
2015-03-01 16:48:25 +01:00
Henrik Rydgard
bfa52e61a3
Some games spam sceAudioGetChannelGetLength, reduce loglevel to VERBOSE to ease debugging
2015-03-01 15:33:35 +01:00
sum2012
b5ee54a653
Fix linux compile
2015-03-01 08:39:48 +08:00
sum2012
cb66412919
Some work in sceMpegGetPcmAu
...
Fix #6546
2015-03-01 06:52:45 +08:00
Unknown W. Brackets
522f9fabd8
Add some reporting to sceMpeg funcs.
2015-02-28 11:15:02 -08:00
Unknown W. Brackets
f200d5df94
Use structs for the lowlevel at3 lookup tables.
...
More sensible this way.
2015-02-27 21:02:20 -08:00
daniel229
3b59c72280
at3plusHeaderMap
2015-02-27 22:29:14 +08:00
Henrik Rydgård
2cdb5a3f19
Merge pull request #7483 from unknownbrackets/tls
...
Correct a lot of inaccuracies in the tlspl functions
2015-02-26 21:58:15 +01:00
Unknown W. Brackets
a8b59e171b
Fix a few type comparison warnings.
2015-02-22 13:31:23 -08:00
Unknown W. Brackets
8a0f854dc6
Fix an iterator corruption on tls thread autofree.
2015-02-21 15:50:20 -08:00
Unknown W. Brackets
8d15cb953a
sceKernelGetTlsAddr() should only return a ptr.
...
So, that means no error codes - only null.
2015-02-21 15:50:19 -08:00
Unknown W. Brackets
1c0d880bc3
Support the alignment option in tlspl objects.
2015-02-21 15:50:19 -08:00
Unknown W. Brackets
3bfe7102e3
Handle the priority attribute for tlspls.
2015-02-21 15:50:18 -08:00
Unknown W. Brackets
ccaa75ec53
Don't return an error for double tls free.
...
Apparently, that's a-okay.
2015-02-21 15:50:17 -08:00
Unknown W. Brackets
be1e7cfb37
Fix waiting tlspl result, address not block num.
2015-02-21 15:50:17 -08:00
Unknown W. Brackets
76dfbc7436
Clear tls blocks before alloc and after free.
...
The PSP actually does both, so let's do it too.
2015-02-21 15:50:16 -08:00
Unknown W. Brackets
abd03bd597
Fix size handling in sceKernelReferTlsplStatus().
2015-02-21 15:50:16 -08:00
Unknown W. Brackets
baca1ab901
Handle other threads properly when deleting tlspls.
2015-02-21 15:50:15 -08:00
Unknown W. Brackets
f52cb71300
Use an aligned blocksize for TLS.
2015-02-21 15:50:15 -08:00
Unknown W. Brackets
dd07a0596b
Free TLS on thread end.
...
PSP does this so we should too. Not yet cleaning up completely.
2015-02-21 15:50:14 -08:00
Unknown W. Brackets
4c15afa905
Allow multiple replacements on the same func.
...
Or, more specifically, hooks. This allows enter and exit on the same
func, which can obviously be useful for debugging.
2015-02-21 15:48:09 -08:00
Henrik Rydgard
879baec692
With this, Jak and Daxter works again (but does warn at startup and has one illegal GetPointer later).
...
I really don't understand what's going on..
2015-02-21 13:07:13 +01:00
Henrik Rydgard
1ecfd6cebc
More replacement function accuracy improvements. Makes J&D happy, "fixing" #7502 .
2015-02-20 00:17:47 +01:00
Henrik Rydgard
23492d8d90
Jak and Daxter relies on implementation details of memcpy (scary!), fix our replacement. Fixes #7502
2015-02-19 11:16:16 +01:00
daniel229
f8378d0d7f
sceSfmt19937 fix
2015-02-16 23:38:45 +08:00
Henrik Rydgard
7f51cd6003
Cleaner fix for compilation problem in SFMT.h, though had to patch it.
2015-02-15 23:14:54 +01:00
daniel229
aa4822bedb
Chang pointers type.
2015-02-15 19:05:34 +08:00
daniel229
763e684bf7
agains
2015-02-15 17:26:54 +08:00
daniel229
f3bd527bf5
build fix
2015-02-15 17:08:19 +08:00
daniel229
21b0c2992b
Implement sceSfmt19937 module.
2015-02-15 13:22:20 +08:00
daniel229
aec9e25be9
Another replace frame download in Photo Kano.
2015-02-12 20:36:17 +08:00
Henrik Rydgard
d6cf857a06
Make it impossible to set Auto Frameskip and Non-buffered together as they interact in a bad way
2015-02-09 23:11:45 +01:00
daniel229
4d304737d8
Replace frame download in Photo Kano.
2015-02-09 14:08:36 +08:00
daniel229
3c1644066e
update validAddresses range
2015-02-08 11:34:35 +08:00
daniel229
851070a6f8
Implement sceAdler32
2015-02-08 09:35:00 +08:00
Henrik Rydgard
f18f54fa5a
Don't prepare to fetch translations unless we actually are going to use them.. In a couple of places in the code.
2015-02-04 13:41:21 +01:00
sergiobenrocha2
9dbd18e59d
Ensure that it will use ffmpeg from ppsspp, not from the system.
2015-02-03 17:46:51 -02:00
Unknown W. Brackets
7a974b364c
Cap writable bytes to filesize when streaming.
...
Otherwise we may ask for more than is possible at the end.
2015-02-01 15:13:52 -08:00
Unknown W. Brackets
b36a25f602
Even if we don't get enough data, fill what we can.
2015-02-01 15:13:51 -08:00
Unknown W. Brackets
9a8f61eced
Seek forward from 0 as well.
...
Otherwise we also get incorrect data.
2015-02-01 15:13:51 -08:00
Unknown W. Brackets
97fd19f8cd
Seek backwards by force decoding, align seeks.
...
It seems like we can only (safely) seek to sample boundaries, which makes
sense. Also, we get wrong data unless we "warm" it by seeking from 0, it
seems like.
This makes looping produce correct data. Fixes #6970 .
2015-02-01 15:13:50 -08:00
Henrik Rydgard
2792602252
Pass the game selection screen audio through the resampler. Fixes #7316 .
2015-01-29 14:58:03 +01:00
Henrik Rydgard
86cee103f3
Add audio debug stats dev tool. Increase audio buffer low watermark a bit, hopefully helping #7370 .
2015-01-29 12:56:17 +01:00
Henrik Rydgard
1079c21e38
Update native, and update README with more 1.0 features
2015-01-27 00:18:04 +01:00
Henrik Rydgård
5c80731637
Merge pull request #7358 from unknownbrackets/warnings
...
A few more static analysis warnings
2015-01-19 18:15:56 +01:00
Unknown W. Brackets
9a26758a13
Fix a savestate loading issue.
...
Maybe just older savestates. Sometimes we have block_align already, but
not a valid atracBytesPerFrame, so skip it.
2015-01-19 09:03:53 -08:00
Unknown W. Brackets
d4f6b49dc4
Handle an error condition better.
...
Just in case someone typos a MIPS_MAKE_SYSCALL().
2015-01-19 08:34:12 -08:00
Henrik Rydgård
6cd0cce860
Merge pull request #7344 from unknownbrackets/atrac-parsing
...
Improve atrac RIFF parsing
2015-01-18 19:49:37 +01:00
Unknown W. Brackets
d5c7fb3f0e
Avoid an out of bounds mem access.
2015-01-17 18:43:03 -08:00
Unknown W. Brackets
e40bef6f17
Fix Mbx callback begin/end funcs.
...
Oops, bad WAITTYPE. May help #7345 .
2015-01-17 18:15:32 -08:00
Unknown W. Brackets
6777dcd0cc
Validate the fmt chunk size more correctly.
2015-01-17 16:35:25 -08:00
Unknown W. Brackets
7b29c645ba
Correct parsing of the atrac RIFF fmt chunk.
...
It's just a standard fmt with extra data. We were reading the block align
incorrectly.
Also, set the block align to help FFmpeg.
2015-01-17 15:47:36 -08:00
Unknown W. Brackets
5687f10801
Improve atrac file parsing.
...
Seems like it is willing to parse multiple RIFF chunks. This may generate
more accurate errors, at least they match tests better.
2015-01-17 15:25:11 -08:00
daniel229
0bd6d74996
Replace frame download in Utawarerumono portable
2015-01-14 17:27:14 +08:00
daniel229
c4d4aaab11
Replace frame download in MotorStorm: Arctic Edge
2015-01-13 15:42:25 +08:00
Henrik Rydgård
7c3bc2b3d2
Merge pull request #7313 from sum2012/network
...
Make "Network Initialized" translatable
2015-01-12 13:07:05 +01:00
Unknown W. Brackets
f3654795a3
Minor warning fixes.
2015-01-11 14:23:42 -08:00
Unknown W. Brackets
db898aff23
Add a NEON method to apply the volume.
2015-01-11 14:23:41 -08:00
Unknown W. Brackets
ff4db2a8dd
Log any change to 48 kHz audio on the psp side.
2015-01-11 14:23:41 -08:00
Henrik Rydgard
26e4cb4a21
More cleanup
2015-01-11 20:35:52 +01:00
Henrik Rydgard
e312d6b5fd
Replace outAudioQueue with Dolphin's resampler.
2015-01-11 18:06:06 +01:00
sum2012
499e6c6b7f
Make "Network Initialized" translatable
2015-01-11 11:55:25 +08:00
Henrik Rydgard
222802524c
Oops
2015-01-11 00:35:43 +01:00
Henrik Rydgard
604abe933e
Update submodules, add x64Emitter bugfix from Dolphin (plus a few new instrs), misc
2015-01-11 00:12:32 +01:00
Unknown W. Brackets
1b7ee8c269
Allocate less in sceKernelLoadModuleByID w/ offset.
...
Though, this may still be too much? I wonder if it parses to figure the
size or anything.
2015-01-10 08:36:12 -08:00
daniel229
e2b52b38d7
Replace frame download in Flowers
2015-01-09 14:36:48 +08:00
daniel229
c59ad888a1
Another replace frame download in To Heart 2 Portable
2015-01-09 14:34:03 +08:00
daniel229
6ff5084b8b
Update as unknownbrackets' suggestion.
2015-01-06 17:37:33 +08:00
daniel229
f0b6826d67
Replace frame download in To Heart 2 Portable
2015-01-06 15:22:44 +08:00
daniel229
be8f9f50e4
Replace frame download in Kokoro Connect Yochi Random
2015-01-06 15:13:53 +08:00
daniel229
f288cd04a9
Replace frame download in Grisaia no Kajitsu La Fruit de la Grisaia
2015-01-06 15:05:30 +08:00
daniel229
c5aafb3be4
Replace frame download in Sangoku Koi Senki Otome no Heihou
2015-01-06 14:48:56 +08:00
daniel229
923f398d0d
Replace frame download in Amatsumi Sora ni Kumo no Hatate ni
2015-01-06 14:39:06 +08:00
daniel229
daa145d282
Replace frame download in Kud Wafter
2015-01-06 14:30:45 +08:00
daniel229
a66423dfa3
Replace frame download in "Rewrite Portable"
2015-01-06 14:19:36 +08:00
Unknown W. Brackets
61d43f1616
Fix some glitches in the new AA3 handling.
...
Matches a test better.
2015-01-04 16:34:58 -08:00
Unknown W. Brackets
db5af4f838
Correct sceAtracSetAA3*() handling.
...
This is used to send OMA / AA3 files, which have a different format.
Couldn't have been working before, may not work correctly still.
2015-01-04 12:56:28 -08:00
Henrik Rydgård
7b2f05d0a0
Merge pull request #7270 from Bigpet/adhocthread
...
don't use Thread* to create thread
2015-01-04 20:34:19 +01:00
Peter Tissen
a7d9370a69
don't use Thread* to create thread
...
slightly less hacky, as in, a little bit closer to what the actual PSP does, although the timings are still complete guesses
also
* Protect the adhoc Events by a mutex lock
* don't use emplace_back since symbian doesn't compile with it
2015-01-04 18:58:42 +01:00
Henrik Rydgard
a5d961b8d7
Clean up some compiler warnings in adhoc code
2015-01-04 14:09:41 +01:00
Henrik Rydgard
d479fae481
Show some major networking errors on the OSD
2015-01-04 13:04:11 +01:00
Henrik Rydgard
101fe5c481
Don't launch the friend finder thread if the adhoc network init fails.
...
Adds a flag for network success but doesn't check it anywhere yet..
2015-01-04 13:04:10 +01:00
Henrik Rydgard
58238bc7ed
GCC buildfix
2015-01-04 13:04:10 +01:00
sum2012
9933ae0c6e
netAdhocctlInited should be true when return success
...
Update back new file
Windows (?) build fix
2015-01-04 13:04:09 +01:00
Bigpet
43b3707ee6
don't initialize adhoc connection when networking is disabled
2015-01-04 13:04:08 +01:00
sum2012
ee6f6d11fc
Move Kill AdhocServer Thread to __NetAdhocShutdown
2015-01-04 13:04:08 +01:00
sum2012
aa69489aaf
Move built-in AdhocServer Thread to __NetAdhocInit
...
There are games (ie. Naruto Kizuna Drive) who tried to initialize
network/connect to adhoc server early when the game started, if adhoc
server wasn't ready the player may need to restart the game in order to
connect successfully
2015-01-04 13:04:07 +01:00
sum2012
6ed15ab1f5
Add EnableWlan check
2015-01-04 13:04:06 +01:00
sum2012
21f3d0ecf2
Add built-in AdhocServer option
2015-01-04 13:04:06 +01:00
sum2012
589cf551a0
Revert "Fixed an issue when MipsCall executed on any random thread instead of it's own thread causing some registers to be corrupted and leading to invalid address access"
...
This reverts commit 8a65d73ad25ad0f35b02f0e3af84de37625550b0.
2015-01-04 13:04:05 +01:00
sum2012
accda25ce0
Travis CI Fix, typo
2015-01-04 13:04:05 +01:00
AdamN
1b8167f9df
Changing the socket order checking in AdhocPollSocket a little bit
...
PS: The way how ppsspp indexing the socket may need to be changed to prevent PDP and PTP socket having the possibility to use the same socket id
2015-01-04 13:04:04 +01:00
AdamN
1a61bbbdf2
Adding socket error checking on AdhocServer
2015-01-04 13:04:04 +01:00
sum2012
e0a6480223
Move database.db to Tools\PSP game data
2015-01-04 13:04:03 +01:00
sum2012
7c323f8571
Another build fix
2015-01-04 13:04:03 +01:00
AdamN
1c7152db3a
Adding Branch opcode to the MAKE_MIPS
...
Temp revert old version to fix conflict; Implementing built-in PRO Adhoc Server; Add back sceUsbGps
Implementing more Adhoc functions, and some bug fix (i don't remember them anymore)
2015-01-04 13:04:02 +01:00
AdamN
3dc6eed05b
Giving access to some Kernel functions in order to execute MipsCall on the right thread instead of any random thread (current thread)
2015-01-04 13:04:01 +01:00
AdamN
69fb339a83
Fixed an issue when MipsCall executed on any random thread instead of it's own thread causing some registers to be corrupted and leading to invalid address access
2015-01-04 13:04:01 +01:00
AdamN
2cc19f56b2
Rearrange Network Shutdown to be properly in order (NetInit->AdhocInit->network functions->AdhocTerm->NetTerm)
2015-01-04 13:04:00 +01:00
Unknown W. Brackets
ce33a9f128
Try to handle savestates better.
...
Just in case. This isn't perfect but it should catch common cases.
2015-01-03 21:46:40 -08:00
Unknown W. Brackets
67cbf2e904
Reverse packetsFree to packetsAvail.
...
This is the actual value stored in memory, which games may be accessing or
even writing to.
Makes the video/mpeg/ringbuffer/avail test pass.
2015-01-03 18:59:56 -08:00
Unknown W. Brackets
e6a50a1371
Initialize vfpu regs are NAN, not 0.0.
...
This matches tests, the fpu, and seems logical.
2015-01-03 10:40:21 -08:00
Henrik Rydgard
240ebcb085
Fix memory leaks in sceJpeg
2014-12-31 15:34:50 +01:00
Unknown W. Brackets
3d29b0d278
Fix typo breaking old savestates.
2014-12-29 08:53:19 -08:00
Unknown W. Brackets
93fee10899
Typo.
2014-12-27 09:12:50 -08:00
Unknown W. Brackets
523a75e2bb
Fix another stupid mistake.
2014-12-26 08:03:55 -08:00
Unknown W. Brackets
6629655a56
Fix a glitch in host timing in some games.
2014-12-26 07:57:00 -08:00
Unknown W. Brackets
c64aa7f4a4
Correct some differences from IO timing.
...
Arg, oops. Fixes #7231 .
2014-12-26 07:49:22 -08:00
Unknown W. Brackets
efae9e0612
Make realistic timing optional.
2014-12-26 01:18:52 -08:00
Unknown W. Brackets
d6a113809b
Add basic infrastructure to time io better.
...
This allows the filesystems to more accurately control timing.
But they're not actually doing it yet (same timing as before.)
2014-12-26 01:15:17 -08:00
Unknown W. Brackets
0abd95e784
Typo.
2014-12-26 01:12:23 -08:00
Unknown W. Brackets
0599c04c1c
Properly unschedule IO events on file close.
...
Oops, was waking threads but not bumping events.
2014-12-26 01:07:21 -08:00
Unknown W. Brackets
3f20b32041
Add an option to prevent cpu stall on slow IO.
...
This is good for any slow storage, including:
* Hard disk spinning up.
* Generally slow (cheap) SD cards.
* HTTP or Samba streaming.
May possibly cause bugs in some cases where timing is unrealistic. That
being said, as long as the game is a UMD game, and there's caching (could
enable memory caching for storage), it should not be a problem usually.
2014-12-26 01:07:16 -08:00