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 8a65d73ad2
.
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
chinhodado
81197f18a0
Avoid calling GetPointer() multiple times in a row
2014-12-22 22:46:37 -05:00
Unknown W. Brackets
37c7f56b1e
Remove a clear copy/paste error.
2014-12-20 09:42:08 -08:00
Unknown W. Brackets
a2f4efa50f
Fix an unsigned less than 0 warning.
2014-12-20 09:10:53 -08:00
Henrik Rydgård
a9be90229a
Merge pull request #7140 from AbandonedCart/master
...
use libc++ for iOS to avoid additional directives
2014-12-18 22:38:14 +01:00
Henrik Rydgård
76b1313ed9
Merge pull request #7164 from daniel229/func_replace_orenoimouto_2
...
Another replace frame download in Ore no Imouto ga Konnani Kawaii Wake g...
2014-12-18 22:22:20 +01:00
Henrik Rydgard
a54e0cf244
Goodbye PowerPC, you can always be resurrected when the time comes
2014-12-16 21:58:38 +01:00
Unknown W. Brackets
0a8e6c2a06
Remove some unused functions.
2014-12-14 17:35:20 -08:00
Lioncash
3610473b78
sceNetAdhoc: Remove unnecessary assignments
2014-12-14 00:10:46 -05:00
Unknown W. Brackets
3ce21ce672
Allocate a correct amount for helper threads.
...
This was usually "saved" by the round up to 0x100, but was
underallocating.
2014-12-13 18:35:58 -08:00
Henrik Rydgard
8ad1ea4c84
Split JitCommon.h so that you can include it without getting the "NativeJit" definition
2014-12-13 21:13:28 +01:00
Henrik Rydgård
4021252119
Merge pull request #7169 from daniel229/wchar_t_in_scePauth
...
Support wchar_t in scePauth.
2014-12-12 09:37:12 +01:00
daniel229
fc0ba3f0fe
Updata as hrydgard' suggestion
2014-12-12 10:07:28 +08:00
Henrik Rydgård
ea5126ef0b
Merge pull request #7165 from lioncash/safe
...
ReplaceTables: Fix null checks
2014-12-11 20:57:41 +01:00
Lioncash
2f269ac8c0
ReplaceTables: Fix null checks
2014-12-11 14:34:10 -05:00
daniel229
4e017014ae
Support wchar_t in scePauth.
2014-12-11 23:03:55 +08:00
Henrik Rydgård
973f4ea0ca
Merge pull request #7167 from lioncash/unused
...
sceKernelModule: Remove unused array in __KernelLoadPBP
2014-12-11 10:21:27 +01:00
Henrik Rydgård
2e8b1363d9
Merge pull request #7166 from lioncash/conds
...
scePsmf: Remove unnecessary conditions
2014-12-11 09:48:25 +01:00
Lioncash
fc7439ec2a
proAdhoc: Change resolveMAC to return bool
...
Must have missed this in my initial commit.
2014-12-10 23:42:40 -05:00
Lioncash
d8da1cd44d
sceKernelModule: Remove unused array in __KernelLoadPBP
2014-12-10 23:38:35 -05:00
Lioncash
0e3d68e27f
scePsmf: Remove unnecessary conditions
...
tempBuf is a stack-allocated array, and filehandle has a check for it above this conditional.
2014-12-10 23:30:19 -05:00
daniel229
eee73607b5
Another replace frame download in Ore no Imouto ga Konnani Kawaii Wake ga Nai
2014-12-11 11:13:59 +08:00
Unknown W. Brackets
f5d5f7d3fa
Use SSE shifts for high-vol channels.
2014-12-08 21:23:47 -08:00
Unknown W. Brackets
42cd751060
Prevent a few savestate cross-compat issues.
...
We don't need to save gpu stats at all, so don't, makes it easier to
change it and dunno if anyone defines double as other than 64 bits.
Also, apparently there was padding in the event state but not on all
platforms.
2014-12-08 21:18:56 -08:00
Henrik Rydgård
f135bf79e3
Merge pull request #7157 from lioncash/override
...
Core: Add missing override specifiers
2014-12-08 22:37:33 +01:00
Lioncash
cac632424c
Core: Add missing override specifiers
2014-12-08 15:20:31 -05:00
Lioncash
ae5be5a814
sceSha256: Mark sceSha256Digest as static
2014-12-08 12:31:57 -05:00
Henrik Rydgård
38345a497f
Merge pull request #7137 from lioncash/static
...
Core: Mark some module functions as static
2014-12-08 11:10:14 +01:00
Unknown W. Brackets
066ce50a12
Disable SSE clamping for certain volume levels.
...
Fixes sound in Tales of Phantasia. Can improve later.
2014-12-08 02:06:25 -08:00
Henrik Rydgård
82d69fad8d
Merge pull request #7146 from hrydgard/sha256
...
Quick implementation of sceSha256Digest from #7134
2014-12-08 10:40:56 +01:00
Lioncash
4ccb838306
Core: Mark some module functions as static
2014-12-08 04:40:08 -05:00
Henrik Rydgård
6546a5ac03
Merge pull request #7143 from lioncash/net
...
proAdhoc: Make some functions return boolean values.
2014-12-08 00:26:25 +01:00
Lioncash
a962bc5a6c
Mark some functions as const
2014-12-07 17:08:13 -05:00
Henrik Rydgard
7de3ed109a
Android x86 buildfix
2014-12-07 22:00:30 +01:00
Henrik Rydgard
1a1faeffd1
More audio microoptimization
2014-12-07 21:14:09 +01:00
Henrik Rydgard
28aa18953a
Audio: Minor SSE2 optimization, just because
2014-12-07 20:23:47 +01:00
Henrik Rydgard
8102a67602
Implement sceSha256Digest (untested)
2014-12-07 19:25:45 +01:00
Henrik Rydgard
29e681808d
Merge branch 'sceSha256' of https://github.com/daniel229/ppsspp into daniel229-sceSha256
2014-12-07 19:11:45 +01:00