Unknown W. Brackets
04dcaeae1d
Mpeg: Move, rather than resetting, packetsAvail.
...
When we've got garbage data, this has to stay incorrect. Without this,
Megaman X gets confused when playing its video (because it enqueues
garbage packets.)
See #3318 .
2016-06-04 18:16:23 -07:00
Unknown W. Brackets
4ee39f82e4
Mpeg: Validate added packets.
...
Older libraries only, but this will cause it to reject packets that don't
make sense. So far, this seems to mirror the behavior of various garbage
packets sent to the real firmware.
2016-06-04 18:16:22 -07:00
Unknown W. Brackets
c8d0270bb4
Mpeg: Validate data more during demux.
...
This also parses a bit earlier, not requiring a full 2048 bytes ahead at
all times.
2016-06-04 18:16:21 -07:00
Unknown W. Brackets
41f2999a2b
Mpeg: Write into the ringbuffer using actual ring.
...
This mimics behavior with clamped sizes and wrap around, and also makes it
easier to implement the garbage data handling the PSP has.
2016-06-04 18:16:21 -07:00
Unknown W. Brackets
4d16835990
Mpeg: Validate the pack header.
2016-06-04 18:16:20 -07:00
Unknown W. Brackets
b191fd2914
Mpeg: Make sure not to demux outside the buffer.
2016-06-04 18:16:19 -07:00
Unknown W. Brackets
6d14c17f26
Mpeg: Treat negative available packets as zero.
2016-06-04 18:16:19 -07:00
Unknown W. Brackets
deffb246ae
Mpeg: Require less memory for older lib versions.
...
It seems it started requiring 64k at 1.05.
2016-06-04 18:16:18 -07:00
Henrik Rydgård
6bbcf74926
Merge pull request #8801 from unknownbrackets/tmpfs
...
Improve performance on Raspberry Pi (and maybe other Linux)
2016-06-04 15:08:33 +02:00
Unknown W. Brackets
9471107d0d
If possible, use /dev/shm instead of /tmp.
...
For some variants, /tmp will be tmpfs, but not always. In case our mmap
fails to prevent flushing to disk (as apparently happens on Raspberry Pi),
shm will work better for us.
Thanks go to klyoungblood.
2016-06-03 19:49:22 -07:00
Henrik Rydgård
606856c9ad
Merge pull request #8791 from unknownbrackets/delay
...
Minor sysclock delay accuracy improvements
2016-05-31 21:08:00 +02:00
Henrik Rydgård
87f3cf565a
Merge pull request #8793 from unknownbrackets/psmf
...
Correct some scePsmf info retrieval funcs and error handling
2016-05-31 21:04:50 +02:00
Henrik Rydgård
cab2c29909
Merge pull request #8796 from unknownbrackets/warnings
...
Minor warning fixes
2016-05-31 21:04:36 +02:00
Unknown W. Brackets
f4a06cd79a
Remove an impossible assert condition.
2016-05-31 11:56:23 -07:00
Unknown W. Brackets
6ee770bd80
Add some missing overrides to declarations.
2016-05-31 11:55:45 -07:00
Unknown W. Brackets
f084084ff7
Clean up accidental debug code.
2016-05-31 11:53:17 -07:00
Unknown W. Brackets
30e13c7c37
Clean up some unused result warnings.
2016-05-31 11:49:59 -07:00
Unknown W. Brackets
25136eb019
Remove an unused function.
2016-05-31 11:40:39 -07:00
Unknown W. Brackets
419b960403
x86jit: Fix params in Replace_fabsf.
2016-05-31 10:40:14 -07:00
Unknown W. Brackets
91887ad85c
Psmf: Correct errors in current stream num.
2016-05-31 09:55:51 -07:00
Unknown W. Brackets
0a00777403
Psmf: Only write current type/channel if valid.
...
And improve error handling in general.
2016-05-31 09:55:51 -07:00
Unknown W. Brackets
7ad07ca82e
Psmf: Handle stream specification per tests.
...
These seem buggy, but generally sane.
2016-05-31 09:55:50 -07:00
Unknown W. Brackets
cca9a73105
Psmf: Start at stream 0 when not specified.
2016-05-31 09:55:49 -07:00
Unknown W. Brackets
510db2051d
Psmf: Detect PCM streams from private stream info.
...
This logic comes from Jpcsp. Let's report though and see if there's more.
2016-05-31 09:55:49 -07:00
Unknown W. Brackets
74239c199d
Psmf: Allow AUDIO type when specifying streams.
2016-05-31 09:55:48 -07:00
Unknown W. Brackets
5f7c95f249
Psmf: Count PCM as an AUDIO stream as well.
2016-05-31 09:55:47 -07:00
Unknown W. Brackets
9df727f94f
Psmf: Stop pretending streamMap is a vector.
2016-05-31 09:55:47 -07:00
Unknown W. Brackets
8df298f622
Thread: Auto-resume dispatch for worse threads.
...
Seems this doesn't happen when you start a better priority thread, pretty
reproducibly.
2016-05-31 09:55:20 -07:00
Unknown W. Brackets
197f3393df
Thread: Better/minor accuracy for sysclock delay.
...
Certain negative values shouldn't cause a delay, could help if a game has
a bug.
2016-05-31 09:55:19 -07:00
Unknown W. Brackets
baac12b327
Log args for dispatch/interrupt early-fail.
2016-05-31 09:55:18 -07:00
Unknown W. Brackets
7814cdced2
Merge pull request #8794 from NCDyson/master
...
fix segfault on VirtualDiscFileSystem::GetFileInfo()
2016-05-31 08:02:25 -07:00
NCDyson
cc829f31b8
Attempt to fix segfault on VirtualDiscFileSystem::GetFileInfo for files where handler is specified
2016-05-31 06:23:53 -05:00
Henrik Rydgård
a690492836
Merge pull request #8792 from unknownbrackets/tex-replace
...
Allow more options in texture [hashes] syntax
2016-05-31 09:30:15 +02:00
Unknown W. Brackets
5840338397
Create parent directories when saving new textures.
2016-05-31 00:13:53 -07:00
Unknown W. Brackets
bfda12fa23
Allow more options in texture [hashes] syntax.
...
This allows you to ignore the address or address and clut hash.
2016-05-31 00:13:52 -07:00
Henrik Rydgård
84a6ca3326
Merge pull request #8790 from unknownbrackets/threadevent
...
ThreadEvent: Delete threads after handler runs
2016-05-30 22:15:42 +02:00
Unknown W. Brackets
d0d570c6ac
ThreadEvent: Delete threads after handler runs.
...
It should actually run on the thread itself, it seems, but that's probably
not as important as the thread still existing. This allows the handler to
get the thread name or etc.
2016-05-30 13:00:23 -07:00
Unknown W. Brackets
21ba67e1d7
Module: Add legacy save state stub fixup.
...
Forgot this, when we don't have the stub info. Stub info is better, since
we might handle things differently.
2016-05-30 02:11:28 -07:00
Unknown W. Brackets
0592f56df5
Oops, this modifies the input string it seems.
...
Not sure if ISOs are actually case insensitive, though?
2016-05-30 00:38:20 -07:00
Henrik Rydgård
45f7afcfa1
Merge pull request #8788 from unknownbrackets/virtfs
...
VirtFS: Normalize leading slashes in index.
2016-05-30 08:51:38 +02:00
Henrik Rydgård
5b9eecf673
Merge pull request #8787 from unknownbrackets/thread-delay
...
Thread: Use a short delay for 0us delays after all
2016-05-30 08:50:57 +02:00
Henrik Rydgård
3909ae549a
Merge pull request #8785 from unknownbrackets/ir-movs
...
jit-ir: Optimize loads to transfers if possible
2016-05-30 08:49:36 +02:00
Unknown W. Brackets
9f668a1d31
VirtFS: Normalize leading slashes in index.
...
Otherwise, we might consider "/x" and "x" to be different files, and fail
to use the handler properly.
2016-05-29 22:13:33 -07:00
Unknown W. Brackets
65820d6184
Thread: Use a short delay for 0us delays after all.
...
It seems the behavior varies. Should help #6924 and #6981 .
2016-05-29 22:04:47 -07:00
Unknown W. Brackets
a450a79f52
jit-ir: Optimize loads to transfers if possible.
...
These (especially float <-> gpr) happen in all games, but gpr->gpr is
especially common in some minis. Good to reduce bloat.
2016-05-29 18:34:41 -07:00
Henrik Rydgård
a835c4aa8f
Merge pull request #8784 from unknownbrackets/vfpu-minor
...
Special case specific sin/cos result values
2016-05-29 17:57:09 +02:00
Unknown W. Brackets
5b7bd8155d
Special case specific sin/cos result values.
...
Fixes #7737 , thanks go to gid15 from Jpcsp for finding and daniel229 for
reporting.
2016-05-29 08:51:38 -07:00
Henrik Rydgård
21e01b5b73
Merge pull request #8783 from unknownbrackets/hle-minor
...
Reimport module stubs on load state
2016-05-29 17:38:57 +02:00
Unknown W. Brackets
1a3fc9cdeb
Module: Avoid writing missing stubs on reimport.
...
In case they were manually linked, or something.
2016-05-29 08:29:51 -07:00
Unknown W. Brackets
9b706975ad
Module: Reimport stubs on load state.
2016-05-29 08:27:19 -07:00