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
606856c9ad
Merge pull request #8791 from unknownbrackets/delay
...
Minor sysclock delay accuracy improvements
2016-05-31 21:08:00 +02: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
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
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
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
Unknown W. Brackets
47f16ed97b
Module: Refactor stub imports to dedicated func.
2016-05-29 08:07:01 -07:00
Unknown W. Brackets
12b907ed60
Put syscalls back where they were supposed to be.
...
Oops, didn't mean to move this. Might've broken save states.
2016-05-29 07:31:22 -07:00
Unknown W. Brackets
4fc12cdd29
ThreadEvent: Handle getting scheduled off a thread.
2016-05-29 00:59:52 -07:00
Unknown W. Brackets
97cce6ccfe
ThreadEvent: Trigger handlers for start/exit too.
...
Start isn't in the right place or on the right thread, and exit isn't on
the right thread either. But these don't seem very particular about what
thread they run on.
2016-05-28 21:19:28 -07:00
Unknown W. Brackets
c6cd614f2b
Thread: Allow mipscalls to be scheduled in a row.
...
Should be fine to just use the stack to save these things, likely that's
what happens in real firmware. This fixes issues when a second mipscall
is scheduled in the same HLE syscall.
2016-05-28 21:18:03 -07:00
Unknown W. Brackets
ceb36fc81d
ThreadEvent: Allow an exit event handler on self.
2016-05-28 21:17:54 -07:00
Unknown W. Brackets
be1cde15ba
ThreadEvent: Initial support for create/delete.
2016-05-28 21:17:36 -07:00
Unknown W. Brackets
e9916bdf0b
ThreadEvent: Add management functions.
...
Currently never being triggered, though.
2016-05-28 21:17:16 -07:00
Unknown W. Brackets
04576189b4
Callbacks: Fix delete when multiple for a thread.
...
Oops, this was deleting all after the deleted one.
2016-05-28 21:15:25 -07:00
Unknown W. Brackets
a1fbcc3d93
Avoid directly calling osm from Core/GPU code.
...
This allows UI to handle the message however it wants to, and reduces
cross linkage issues.
2016-05-27 22:05:30 -07:00
Unknown W. Brackets
f0cc975865
Hook some funcs in Me and My Katamari.
...
One is a very hardcoded screenshot download / vfpu convert to 565, and the
other is some very weird check to make sure render is clear or has
happened or something.
The screenshot func detects downloads for the "Royal Album". The render
check detects downloads for post-rename (no idea why it checks here.)
Fixes #7695 .
2016-05-20 22:30:25 -07:00
Unknown W. Brackets
842e450965
Display: Correct default brightness, add reporting.
...
Not sure if any games use hold/resume in a way that ought to work.
Display didn't seem to react to them being called.
2016-05-16 22:33:50 -07:00
Unknown W. Brackets
d0dc03f359
Display: Wait for vblank when setting mode.
...
Some games call this even when not needed, and it turns out to have an
important behavior.
2016-05-16 22:02:21 -07:00
Unknown W. Brackets
9ed604f9c8
Display: Return 1 during the vsync period.
...
Timing is based on manual tests, where the vsync signal is near the end of
the vblank. Curiously, it stops right before the vblank stops, reliably.
2016-05-15 23:46:46 -07:00
Unknown W. Brackets
597824eec6
Display: Add validation/report to set mode.
...
This seems to be involved in using the video out cable, but fails for
anything but these fixed parameters in normal situations.
2016-05-15 22:16:31 -07:00
Unknown W. Brackets
5e8e2d5e56
Display: Allow only immediate address changes.
...
It seems you must latch a change to stride/fmt first, which basically
makes sense. Otherwise it would revert, I suppose.
2016-05-15 16:42:25 -07:00
Unknown W. Brackets
249a85b7e0
Display: Validate framebuf parameters.
2016-05-15 16:38:00 -07:00
Unknown W. Brackets
44cee09adc
Dsiplay: Initialize the framebuf params better.
2016-05-15 16:29:58 -07:00
Unknown W. Brackets
958d7f0944
Display: Record bufw/fmt even when display is off.
...
These are returned by sceDisplayGetFrameBuf().
2016-05-15 15:55:04 -07:00
Unknown W. Brackets
26e9acee4b
Display: Skip transitions between off/on in FPS.
...
We're just trying to detect frequent flips, so off/on doesn't play into
it.
2016-05-15 15:54:04 -07:00
Henrik Rydgard
6e44e97ffa
Refactor prep: Split JitInterface into MIPSFrontendInterface and JitInterface
2016-05-09 19:41:39 +02:00
Henrik Rydgard
38b7d89dfb
Fix a performance issue in CallSyscall
2016-05-07 21:34:27 +02:00
Unknown W. Brackets
9280bb3eda
Merge pull request #8715 from unknownbrackets/tex-replace
...
Initial texture replacement support
2016-05-01 09:58:16 -07:00
Unknown W. Brackets
2e1986d0c8
Fix a few reorder warnings.
2016-05-01 09:50:03 -07:00
Henrik Rydgård
b6d7aab8dc
Merge pull request #8716 from hrydgard/remove-preprocessor-hacks
...
Remove preprocessor hacks around the JITs
2016-05-01 18:47:59 +02:00
Henrik Rydgård
e91fc59bbe
Merge pull request #8693 from sum2012/pmp-video
...
Temporarily disable PMP video for non-windows
2016-05-01 11:49:55 +02:00
Henrik Rydgard
8b450c8034
Merge NativeJit.cpp/h with JitCommon.cpp/h
2016-05-01 11:39:59 +02:00
Henrik Rydgard
a5be0976bd
Remove preprocessor hacks to choose JIT implementation.
...
Opens up for having multiple JIT implementations available at runtime,
which could be use for experimenting with new JIT compiler types or for
unit testing one JIT on another architecture.
Very few of the newly virtual calls are on any sort of critical path so
hopefully there will not be a performance loss.
2016-05-01 11:39:53 +02:00
Henrik Rydgard
4645473dab
Remove unused code
2016-05-01 11:35:16 +02:00
Unknown W. Brackets
bc03aa11f2
Log module id as hex, clearer.
2016-04-18 20:19:27 -07:00
Unknown W. Brackets
5a74826372
Use new logging in utility module load/unload.
2016-04-18 20:17:49 -07:00
Unknown W. Brackets
f9ba0d7321
Correct dependency handling when loading modules.
...
Should help #8700 .
2016-04-18 20:08:27 -07:00
sum2012
5e20ba1811
Temporarily disable PMP video for non-windows
2016-04-13 20:06:51 +08:00
Henrik Rydgard
4197148dc4
Add some paranoid checks hoping to fix crashes reported in Google Play developer console.
2016-04-09 18:27:35 +02:00
Henrik Rydgard
727058fc27
Remove an entry from GPUStats that didn't really belong.
2016-04-02 11:06:05 +02:00
Henrik Rydgard
ad0da06f65
Forgot to remove these from the debug string.
2016-04-02 10:36:51 +02:00
Henrik Rydgard
5ef608fa50
GPU stats: Have each backend format its own string.
2016-03-31 10:17:02 +02:00
Henrik Rydgard
004c8b0fca
Make debug stats more compact.
2016-03-31 09:47:25 +02:00
Unknown W. Brackets
3976e840a1
Fix some old savestates.
2016-03-20 23:03:48 -07:00
Unknown W. Brackets
ef1dc583a2
Fix various minor warnings.
2016-03-20 14:17:51 -07:00
Henrik Rydgård
2b46ae59a0
Merge pull request #8601 from hrydgard/vulkan
...
Vulkan rendering backend. Early Work-In-Progress
2016-03-20 21:08:58 +01:00
Henrik Rydgard
f7113bb2e3
Use separate pushbuffers for UBO/Index/Vertex. This will make decoding directly into the pushbuffers easier, plus other benefits later.
...
(For example, we'll often be able to avoid rebinding the vertex and
index buffers at new offsets by just keep counting upwards between draws,
if the vertex format is the same but other state changed)
2016-03-20 19:31:02 +01:00
Henrik Rydgard
e45c24b75f
Show how much pushbuffer space is used each frame.
...
Optimizing this number (by avoiding redundant UBO uploads etc) will probably help performance.
2016-03-20 19:31:02 +01:00
Henrik Rydgård
b3402ef1fb
Merge pull request #8560 from unknownbrackets/prescale-uv
...
Enable UV prescaling by default
2016-03-20 18:10:19 +01:00
Henrik Rydgård
538d801f17
Merge pull request #8588 from sum2012/net-minor
...
Add sceNetIfhandle staff
2016-03-20 18:07:24 +01:00
Henrik Rydgard
b137bf1af4
Oops
2016-03-13 18:42:26 +01:00
Henrik Rydgard
c8457d39ed
Fix a bunch of compiler warnings, delete some unused code
2016-03-13 15:17:31 +01:00
Unknown W. Brackets
da03b80c97
Standardize on just one mutex implementation.
2016-03-06 14:49:15 -08:00
Henrik Rydgard
082d839965
Fix minor issues in ISOFileSystem
2016-03-06 14:28:10 +01:00
sum2012
1df833cc16
Small fix and change log format
2016-02-21 13:18:03 +08:00
sum2012
5894e8f18f
Add save status support
2016-02-21 07:33:06 +08:00
Henrik Rydgard
e954768a84
sceAtrac: Work-around crash with older versions of FFMPEG when free-ing.
...
Better leaking than dead, although there has to be a better way.
2016-02-14 17:19:32 +01:00
sum2012
29f24a600e
Add sceNetIfhandle staff
...
Used in Yu-Gi-Oh 5Ds Tag Force 4
2016-02-13 20:27:07 +08:00
Unknown W. Brackets
8bea240c25
Atrac: Specify endianness for reset info.
2016-02-10 21:02:41 -08:00
zhyk
fa6fe85dc3
Fix audio lag in Qt without SDL.
2016-02-10 23:34:38 +08:00
Henrik Rydgard
35b6c7341b
Fix a bunch of memory leaks, after enabling file+line-number memory leak tracking for the MS Debug CRT.
...
Few of these were serious, most were on-exit, but good to have a cleaner memory report after running.
2016-02-10 15:36:10 +01:00
Unknown W. Brackets
0ea8cc9753
Minor const cleanup.
2016-02-07 14:07:21 -08:00
Unknown W. Brackets
e75af43f0a
Handle floats and sign extension in HLE logs.
...
In some cases, we were previously logging sign-extended error codes. This
handles that better using type_traits.
2016-02-06 19:53:56 -08:00
Unknown W. Brackets
666f1898c6
Fix crash loading old savestates.
...
Oops. Forgot that this could be saved as -1 when loading an old
savestate, and then resaving it.
Fixes #8531 .
2016-01-30 21:39:25 -08:00
Henrik Rydgård
194e9eddec
Merge pull request #8503 from unknownbrackets/hle-minor
...
Minor logging adjustments, not used yet
2016-01-27 12:29:43 +01:00
Unknown W. Brackets
65a5c92c7e
Io: Change some logging flags.
...
Not used yet, just prep work.
2016-01-24 22:52:19 -08:00
Unknown W. Brackets
3a64388eee
Support 64-bit args/return in new HLE logging.
...
Pulls in a new header, unfortunately, but this is a mostly clean way to do
it.
2016-01-24 22:22:23 -08:00
Unknown W. Brackets
f1896abf74
Atrac: Move buffer offset only if needed.
...
Hmm, need to manage this buffer smarter, though, when streaming. Right
now it's only getting it right enough to ask for the right amount of data,
really...
Fixes #8498 .
2016-01-24 09:09:07 -08:00
sum2012
bbeaf67cd6
Support port offset by @ANR2ME
...
Useful of adhoc of non-windows
2016-01-24 16:52:39 +08:00
daniel229
d032c3895b
Replace function in Omerta Chinmoku No Okite The Legacy
2016-01-24 11:58:20 +08:00
daniel229
0ab6c544b7
Replace function in unENDing Bloody Call
2016-01-24 11:55:56 +08:00
daniel229
80952d5e06
Replace function in ATV Offroad Fury Pro (US) demo
2016-01-24 11:53:46 +08:00
Henrik Rydgard
e866d83547
Temporarily revert "Mpeg: Return errors when no audio is available."
...
This reverts commit c03f6c23ed
.
This caused trouble as seen in #8464 , but is probably right - needs other fixes though so
it will have to wait until after 1.2.0.
2016-01-23 17:08:01 +01:00
Unknown W. Brackets
bc48509f33
Add a bit more safety to func replacements.
...
In case somehow the replacement changes.
2016-01-21 22:17:25 -08:00
Unknown W. Brackets
1b72d3a67a
Atrac: Correct remaining frame count for streaming.
...
This makes more sense, I think this is the right value.
2016-01-18 22:05:01 -08:00
Unknown W. Brackets
600df17eb6
Atrac: Correct loop read pos with offset.
...
In case it doesn't loop from the start.
2016-01-18 18:11:25 -08:00
Unknown W. Brackets
3466fb1755
Atrac: Adjust loop/nonloop remaining full values.
...
These are tricky, but it seems like this is right.
2016-01-18 18:00:48 -08:00
Unknown W. Brackets
e2f2c1af90
Atrac: Mark the leading frame consumed on loop.
...
This is the frame we skip samples from. Might need smarter logic.
2016-01-18 18:00:48 -08:00
Unknown W. Brackets
3130b7a489
Atrac: Correct stream offset after non-loop end.
2016-01-18 18:00:47 -08:00
Unknown W. Brackets
036c965cf5
Atrac: Correct stream write offset after seek.
2016-01-18 18:00:46 -08:00
Unknown W. Brackets
4c25072328
Atrac: Never ask for more bytes than filesize.
2016-01-18 18:00:46 -08:00
Unknown W. Brackets
59523f1327
Atrac: Fix logging of new atrac ID.
2016-01-17 20:10:11 -08:00
Henrik Rydgård
2e2904c796
Merge pull request #8442 from unknownbrackets/atrac-remaining
...
Atrac: Correct remaining values when looping
2016-01-17 22:40:08 +01:00
Unknown W. Brackets
face527d7e
Atrac: Correct remaining values when looping.
...
Otherwise it was going negative, which was wrong.
2016-01-17 13:22:12 -08:00
Unknown W. Brackets
f60aef2e16
Add a more specific interface for video frames.
...
Since we know more about them. No functional change yet.
2016-01-17 12:57:26 -08:00
Unknown W. Brackets
63aa4291eb
Atrac: Fix savestates.
...
Darn, totally forgot. This should populate acceptable values for old
streamed atrac as well.
2016-01-17 10:05:15 -08:00
Henrik Rydgard
3ba911bf07
Replace some calls to fopen with File::OpenCFile (utf8).
2016-01-17 15:59:20 +01:00
Henrik Rydgård
b2140d73e7
Merge pull request #8435 from unknownbrackets/atrac-stream
...
Calculate stream data info a bit more accurately
2016-01-17 10:30:09 +01:00
Henrik Rydgård
93490f5329
Merge pull request #8436 from unknownbrackets/atrac-lowlevel
...
Simplify lowlevel atrac decoding a lot
2016-01-17 10:26:59 +01:00
Unknown W. Brackets
74d40115a0
Mpeg: Initialize esBuffer to safer values.
...
Makes the audio work properly in Dan Ball Senki W (#4786.)
2016-01-17 00:31:22 -08:00
Unknown W. Brackets
c03f6c23ed
Mpeg: Return errors when no audio is available.
...
Before, we were only returning an error once, in an effort to log only
once. This meant sometimes games would not realize they needed to add
packets.
2016-01-17 00:22:46 -08:00
Unknown W. Brackets
849df69690
Atrac: Simplify lowlevel init more.
2016-01-16 23:12:12 -08:00
Unknown W. Brackets
a686ca69fd
Atrac: Simplify lowlevel decoding.
...
No need for all these variables that just spin and do nothing.
2016-01-16 23:03:22 -08:00
Unknown W. Brackets
a4d875cd2a
Atrac: Stop generating headers in lowlevel.
2016-01-16 22:46:24 -08:00
Unknown W. Brackets
45e6f9e9b7
Atrac: Fix lowlevel jointStereo usage.
...
Seems this value is supposed to be (channels << 3) form the lowlevel code,
which is believable. FFmpeg skips it anyway.
Also, need to set the flag so it gets used.
2016-01-16 22:35:39 -08:00
Unknown W. Brackets
4e20b61d3a
Atrac: Fix some confusing variable use in lowlevel.
2016-01-16 22:35:13 -08:00
Unknown W. Brackets
53e990e116
Atrac: Fix a leak from an unused var.
2016-01-16 22:34:45 -08:00
Unknown W. Brackets
a2417b4779
Atrac: Ensure correct fileoffset when adding data.
...
If we looped, especially in the middle or toward the end, this ensures the
data ends up in the correct place in our larger buffer.
2016-01-16 18:36:22 -08:00
Unknown W. Brackets
e41a1f476f
Atrac: Simulate ringbuffer for writable bytes.
...
Ringbuffer is not actually read from PSP RAM, and there are a couple
inaccuracies, but this should be a lot better than before.
2016-01-16 18:34:44 -08:00
Unknown W. Brackets
23523a2fdc
Atrac: Add missing output channels for AA3.
...
Although, default was 2 so this shouldn't change anything.
2016-01-16 18:10:57 -08:00
Unknown W. Brackets
d3ee48a770
Atrac: Make buffer init functions more consistent.
2016-01-16 18:10:35 -08:00
Henrik Rydgård
067095e2b4
Merge pull request #8410 from latot/mini
...
little changes
2016-01-17 00:44:07 +01:00
Unknown W. Brackets
cf9cb798fc
Atrac: Remove unused variables, cleanup some names.
2016-01-16 14:47:07 -08:00
Unknown W. Brackets
aac603534a
Reset failedDecode when the game sets new data.
...
Should not last forever.
2016-01-16 14:01:12 -08:00
Unknown W. Brackets
d97dfac594
Atrac: Log bad data more consistently.
...
Let's always give the HLE func in the actual error.
2016-01-16 13:59:38 -08:00
Unknown W. Brackets
7c07922076
Atrac: Clean up some logging.
2016-01-16 13:44:54 -08:00
latot
e82620c572
remove
...
remove
2016-01-16 09:32:39 -03:00
Unknown W. Brackets
d3da6d8c6e
Atrac: Validate second buffer on reset position.
2016-01-12 00:19:35 -08:00
Unknown W. Brackets
a317b10777
Atrac: Keep track of the set second buffer.
...
Not actually used yet, but this way our context/etc. can be right.
2016-01-12 00:19:34 -08:00
Unknown W. Brackets
40bd31f50b
Atrac: Request second buffer data.
...
It's not used, but at least we ask for it properly.
2016-01-12 00:19:33 -08:00
Unknown W. Brackets
397094651c
Atrac: Skip copying to data_buf when unused.
2016-01-12 00:19:33 -08:00
Unknown W. Brackets
b29e856055
Atrac: Remove some unused calculations.
...
Halfway buffers now always calculate writableBytes realtime.
2016-01-12 00:19:32 -08:00
latot
53ac6d98d8
Little things
...
back 1
other little change, join 2 in 1
2016-01-09 20:44:02 -03:00
Henrik Rydgard
e11d0a7e1c
Minor GPU interface cleanup
2016-01-06 23:49:02 +01:00
daniel229
1e984b48ef
update functions
2016-01-04 09:08:52 +08:00
daniel229
de8503f83b
Replace function in Shinigami to Shoujo
2016-01-03 22:35:46 +08:00
daniel229
05612bbc25
Replace function in Little Busters! Converted Edition
2016-01-03 22:28:38 +08:00
daniel229
3b461a00cc
Replace function in ATV Offroad Fury Blazin' Trails
2016-01-03 22:20:50 +08:00
daniel229
107fa1c09a
Replace function in ATV Offroad Fury Pro
2016-01-03 22:13:42 +08:00
Unknown W. Brackets
18dbaac3c7
Fix savestate compat with older versions.
2016-01-02 18:50:59 -08:00
daniel229
ed12bb9c89
Fix flickering in SD Gundam G Generation Portable
2016-01-03 09:56:40 +08:00
Unknown W. Brackets
4fac4d364e
Atrac: Read non-streamed data from PSP RAM.
...
This should fix games that don't actually read into the RAM right away,
which is probably "incorrect" but works on the PSP, should should work in
PPSSPP.
2016-01-02 13:20:17 -08:00
Unknown W. Brackets
f0551b4591
Atrac: Add a flag to use PSP RAM (not yet used.)
2016-01-02 13:20:17 -08:00
Unknown W. Brackets
d0c7cc85de
Atrac: Update writableBytes/offset on adding data.
...
It should go in these places, even if GetStreamDataInfo is not called.
2016-01-02 13:20:16 -08:00
Unknown W. Brackets
2df6d7700e
Atrac: Refactor out some common validation.
...
This seems to be happening a lot.
2016-01-02 13:20:15 -08:00
Unknown W. Brackets
1b6dbd45e7
Atrac: Get stream info right for half/full buffers.
...
Improve it a bit for streamed buffers, but it's still not quite right.
2016-01-02 13:20:15 -08:00
Unknown W. Brackets
e60dc24d29
Atrac: Update some comments/docs on buffers.
2016-01-02 13:20:14 -08:00
Unknown W. Brackets
959015f823
Atrac: Correct typo.
2016-01-02 13:16:22 -08:00
Unknown W. Brackets
96d5e10549
Atrac: Seek ahead only one frame at end.
...
If it had a partial ending frame, it should go ahead one frame, not one
frame plus the partial ending.
2016-01-02 11:13:48 -08:00
Unknown W. Brackets
85ff5eb68a
Atrac: Adjust reads a bit earlier when skipping.
...
The frames we initially get may not start at 0, depending on how many
frames we're skipping. Of course...
2016-01-02 11:13:09 -08:00
Unknown W. Brackets
6fe5fe07a4
Atrac: Revert broken seeking fix.
...
This wasn't the right solution to getting the right packets.
2016-01-02 11:12:35 -08:00
daniel229
678ca9301a
Fix tutorial videoes in Tony Hawk P8
2016-01-02 13:33:22 +08:00
Unknown W. Brackets
182d281750
Atrac: Move currentSample on finish.
...
This seems to be what happens, and allows remaining frames to calculate
properly in some cases where it wasn't before.
2016-01-01 11:34:56 -08:00
Unknown W. Brackets
f88a82e0a6
Atrac: Respect null output even in fail workaround.
2016-01-01 11:34:33 -08:00
Unknown W. Brackets
dafb15d96e
Atrac: Clamp packets to valid data.
...
In case we don't have full valid data yet, return only the part of the
data that is valid. This allows FFmpeg to decode data it already has, as
necessary.
2016-01-01 11:33:48 -08:00
Unknown W. Brackets
cdca0492a4
Atrac: Update fileoffset handling per tests.
...
This accounts for the extra offset value.
2016-01-01 11:33:19 -08:00
Unknown W. Brackets
55e450fb1e
Atrac: Fix a typo in loop handling.
2016-01-01 10:41:21 -08:00
Unknown W. Brackets
2eb960a3ce
Atrac: remove double-read.
2016-01-01 10:24:52 -08:00
Unknown W. Brackets
448e18fba9
Atrac: Backfill buffer when seeking anywhere.
...
This corrects the output of sample data when seeking to arbitrary
locations. Otherwise, it's off for a frame or two.
2016-01-01 10:24:18 -08:00
Unknown W. Brackets
7b217af59e
Net: don't double-delete thread on shutdown.
...
Prevents spurious logging / reporting.
2015-12-31 11:19:28 -08:00
Unknown W. Brackets
abede77059
Clean up some logging in sceDisplay.
2015-12-30 17:37:14 -08:00
Unknown W. Brackets
9327749f16
Allow setting the display off.
...
Final Fantasy Tactics does this to avoid some brief flicker.
2015-12-30 17:29:20 -08:00
Henrik Rydgård
f7c6a98d5c
Merge pull request #8337 from unknownbrackets/minor
...
Fix glCopyImageSubData even more
2015-12-30 21:56:55 +01:00
Unknown W. Brackets
f982e777e5
Stop logging alphatested draws for debug stats.
...
Measured a small perf hit here, and we're not really using these stats
much anymore.
2015-12-30 10:24:54 -08:00
Henrik Rydgård
290958060f
Merge pull request #8314 from unknownbrackets/remaster
...
Identify remasters based on UMD_DATA hash
2015-12-29 22:09:49 +01:00
Yoshi Sugawara
746ccfc215
changed order of freeing codex context pointer for older versions of ffmpeg
2015-12-29 13:30:15 -05:00
Yoshi Sugawara
08cc02d11e
removed spacing around pCodecCtx conditional check, added else clause to log that it was NULL when it was not expected to be
2015-12-29 10:54:43 -05:00
Yoshi Sugawara
4d2313ed9f
fixed indenting from soft spaces to hard tabs
2015-12-29 04:23:41 -05:00
Yoshi Sugawara
73c04e59fa
[iOS]: prevent crashing (EXC_BAD_ACCESS) when releasing FFMPEG context by adding NULL check on codec context pointer
2015-12-28 21:43:11 -05:00
Unknown W. Brackets
a8d918b50a
Automatically mount exdata/ for remasters.
...
Using memstick/exdata/GAMEID/.
2015-12-28 14:13:05 -08:00
Unknown W. Brackets
ddcfed1b5e
Jit: Invalidate on dmac copy as well.
2015-12-27 22:06:05 -08:00
Unknown W. Brackets
51016eb1c5
Jit: Invalidate after module loads.
...
Just to be safe, let's invalidate the entire range.
2015-12-27 22:05:53 -08:00
Unknown W. Brackets
3687be42bc
Jit: Invalidate blocks after IO reads.
...
Fixes #7617 .
2015-12-27 21:58:29 -08:00
Henrik Rydgård
27c6770c74
Merge pull request #8297 from unknownbrackets/warnings
...
Warnings fixes
2015-12-24 23:14:10 +01:00
Unknown W. Brackets
f3df6b307f
Use a FileLoader for PBPs.
...
Improves consistency, caching, etc.
2015-12-24 12:21:40 -08:00
Unknown W. Brackets
a53f0360f3
Use a less leak prone interface for PBP reading.
2015-12-24 10:20:27 -08:00
Unknown W. Brackets
d6cd3bd5ad
Remove some unused variables.
2015-12-23 15:22:28 -08:00
Unknown W. Brackets
103b959d50
Fix a type comparison warning.
2015-12-23 15:22:13 -08:00
Unknown W. Brackets
edf3bf4a8e
Silence some unused result warnings.
2015-12-19 19:58:32 -08:00
Henrik Rydgård
a2e09eada7
Merge pull request #8216 from unknownbrackets/sas-thread
...
Move SAS mixing to a thread
2015-12-06 18:59:09 +01:00
Unknown W. Brackets
f759a2a3fd
Sas: Sync result when mix calling thread returns.
2015-11-25 18:44:43 -08:00
Unknown W. Brackets
546590106f
Sas: Fail to mix when dispatch disabled.
2015-11-25 18:44:42 -08:00
Unknown W. Brackets
23441d12fb
Sas: Estimate time taken for mixing.
...
Tests seem to show it's not affected by mhz.
2015-11-25 18:44:34 -08:00
Unknown W. Brackets
5a6c8b513c
Sas: Drain thread before reading/writing SAS state.
...
This should be the safest option, but I'm pretty sure some operations give
a BUSY operation or have different behavior, actually.
2015-11-25 18:44:32 -08:00
Unknown W. Brackets
fc8acc781e
Sas: Add config for SAS thread.
2015-11-25 18:44:31 -08:00
Unknown W. Brackets
0394319e89
Sas: Drain thread on savestate.
2015-11-25 18:44:30 -08:00
Unknown W. Brackets
6290ac6cbd
Sas: Process SAS on a separate thread.
...
Remaining issues:
* Need a config setting.
* Locking for voices / config?
* Locking for atrac interop?
2015-11-25 18:44:30 -08:00
Unknown W. Brackets
7bfe100b0f
Fix some unused variable warnings.
...
The CheckAlpha one looks like it will matter.
2015-11-25 16:11:53 -08:00
Henrik Rydgard
9825dad340
Zero deleted objects in the kernel object pool
...
Just doing this to narrow down the possible causes of our crashes in WaitSema/SignalSema that I can't reproduce and only have Android auto-reports of... The crash comments do mention the GTA games though.
2015-11-25 14:24:32 +01:00
Henrik Rydgard
7dd631b7f2
Some code reformatting of the kernel object pool
...
Also deletes an unused [] operator
2015-11-25 13:00:29 +01:00
Unknown W. Brackets
8c337850fc
Disallow thread termination in interrupts.
...
But only for certain SDK versions, as per testing.
2015-11-15 11:38:59 -08:00
Henrik Rydgård
99b7741b96
Merge pull request #8194 from unknownbrackets/atrac-remaining
...
Atrac: Correct outputs of sceAtracGetSoundSample()
2015-11-09 18:46:46 +01:00
Unknown W. Brackets
c22c181148
Sas: Automatically unpause voice on unset ATRAC3.
...
Thie fixes voices in Sol Trigger after skipping a cutscene, and matches
tests.
2015-11-09 08:25:35 -08:00
Unknown W. Brackets
5374e6a8fc
Sas: Add validation for ATRAC3 voices.
2015-11-09 08:25:28 -08:00
Unknown W. Brackets
c1d59f263a
Atrac: Ignore the loopNum value for SAS streams.
...
It seems like this is ignored, and games overwrite it with the voice
number and expect it not to change.
2015-11-09 08:23:45 -08:00
Unknown W. Brackets
21fd209f0e
Atrac: Correct outputs of sceAtracGetSoundSample().
...
Without these being correct (especially without loopEnd vs. endSample
being correct), Toukiden Kiwami doesn't play background music.
2015-11-08 19:55:28 -08:00
Unknown W. Brackets
a3f7598020
Atrac: Use fileoffset for curOff context value.
...
This doesn't match my tests so far, but Sol Trigger works correctly this
way. Since this value is primarily only used for SAS, changing it back
for now until more thoroughly testing SAS makes sense.
2015-11-08 12:24:30 -08:00
Unknown W. Brackets
ac524eee1b
Atrac: Also read loop count from context RAM.
...
Observed the Sol Trigger demo's library writing values here, although in
the cases I saw it wasn't changing it from 0.
2015-11-08 12:22:12 -08:00
Unknown W. Brackets
a0604c6de3
Atrac: DRY a tiny bit of the code down.
2015-11-08 09:04:11 -08:00
Unknown W. Brackets
28a957694a
Atrac: Apply second FACT as loop offset.
...
It seems like, when these values are different, the difference indicates
some kind of delta in other sample values?
Mostly trying to match values coming out of firmware structs here.
Fixes music looping in Kurohyo 2.
2015-11-08 08:26:41 -08:00
Unknown W. Brackets
27043b5fa5
Atrac: Do not output remain on ending decode.
...
It's not supposed to output 0, or -1, or anything. It leaves the original
value in place. This is probably why some games "liked" different values.
2015-11-08 08:20:09 -08:00
Unknown W. Brackets
9da62c1efc
Atrac: Use end codes for remaining when streaming.
2015-11-07 23:30:09 -08:00
Unknown W. Brackets
959887d407
Atrac: Correct remaining frames return value.
...
Streaming buffers still not correct in some cases, primarily looping.
2015-11-07 23:30:09 -08:00
Unknown W. Brackets
e28fa3c426
Atrac: Correct transition to fully loaded.
...
Normally it won't go over of course, oops.
2015-11-07 23:30:05 -08:00
Unknown W. Brackets
61e530df91
Atrac: Check more buffer states in GetRemainFrame.
2015-11-07 23:30:04 -08:00
Unknown W. Brackets
a932b0858c
Atrac: Make sure NO_DATA is always set.
...
This way we can move away from data_buf, which eventually we'll stop using
entirely, in preference for PSP RAM.
2015-11-07 23:29:59 -08:00
Unknown W. Brackets
3f3700cb45
Atrac: Allow games to update buffer state.
...
Because they can and do. This primarily only happens with low level and
SAS streams, I think.
2015-11-07 23:29:59 -08:00
Unknown W. Brackets
91de8e46c1
Atrac: Fix an internal typo.
2015-11-07 23:29:58 -08:00
Unknown W. Brackets
26a81f5179
Atrac: Simplify USE_FFMPEG checks.
...
Maybe we should just remove the option, but this way the behavior is a lot
more similar.
2015-11-07 23:29:58 -08:00
Unknown W. Brackets
9ebc9f695e
Atrac: Clean up logging in sceAtracGetRemainFrame.
2015-11-07 23:29:57 -08:00
Unknown W. Brackets
3afc86e9b8
Atrac: correct offsetting logic in resetting.
...
Probably not super important exactly, but got the numbers backwards when I
reduced the test data. Oops.
2015-11-06 23:19:21 -08:00
Unknown W. Brackets
696cb6649e
Atrac: Match PSP on reset of streaming data.
...
This attempts to match the sizes and positions requested by the PSP
firmware APIs. The two functions have to match: if they don't, it will
start reading incorrect data.
2015-11-05 23:23:59 -08:00
Unknown W. Brackets
4511407506
Atrac: Add reschedule when resetting play pos.
...
This matches tests, although the actual delay is more variable.
2015-11-05 23:23:55 -08:00
Unknown W. Brackets
a2c4f7760a
Atrac: Add range check when resetting play pos.
2015-11-05 23:23:50 -08:00
Unknown W. Brackets
91e5916f66
Atrac: Fix sample range check to match output.
...
It allows some negative values, actually.
2015-11-05 23:23:45 -08:00
tpunix
6672534f49
bugfix of scefont
...
charCode should be limit to 16bit
see issue #8131
2015-11-01 21:11:31 +08:00
Henrik Rydgard
b998131581
Move the symbol map to the heap, deallocate it when no game is running.
2015-10-31 23:01:19 +01:00
Unknown W. Brackets
a13683e777
Add some param validation for sas functions.
2015-10-31 09:20:14 -07:00
Henrik Rydgård
9cdd23c089
Merge pull request #8105 from unknownbrackets/atrac-parsing
...
Improve atrac parsing and differentiate streaming from data
2015-10-31 13:00:15 +01:00
Henrik Rydgård
5ebb5d5630
Merge pull request #8116 from hrydgard/reverb
...
Implement sceSas' reverb effect, guessing that the reverb is the same as the one in PSX's SPU
2015-10-29 11:13:04 +01:00
Sacha
bbc4f64999
MIPS: Fix build so we can compile this again.
2015-10-29 02:46:43 +00:00
Henrik Rydgard
22f71f1e9a
Show simple info about currently playing audio in on-screen Debug Statistics
2015-10-28 21:20:20 +01:00
Henrik Rydgard
85c8f7d3c2
Hook up SasReverb. It sounds more like a buzzsaw than a reverb at the moment, needs debugging.
...
Added a bit of code that only enables it when a reverbed sound is active. This will need to be turned off later but useful right now for hearing when it's used..
2015-10-27 12:36:30 +01:00
Unknown W. Brackets
85fac290c9
Atrac: Calc NO DATA status when loading old state.
2015-10-25 18:00:13 -07:00
Unknown W. Brackets
2b58af3db5
Atrac: Handle loop samples more correctly.
...
They need to be offset same as currentSamples. Starting to really think
it'd be better to offset currentSamples instead...
2015-10-25 17:04:27 -07:00
Unknown W. Brackets
278d6b3690
Atrac: Set 0 read offset when fully loaded.
2015-10-25 17:04:27 -07:00
Unknown W. Brackets
85a699912d
Atrac: Correct streamed bytes field in context.
2015-10-25 17:04:26 -07:00
Unknown W. Brackets
5cc13c45f4
Atrac: Try to handle endSample more consistently.
...
Maybe we should offset currentSample by the firstSampleOffset instead?
2015-10-25 17:04:25 -07:00
Unknown W. Brackets
e51891e9cd
Atrac: Keep track of PSP-like buffer status.
...
This isn't correct yet, but tracking this much fixes looping of certain
audio.
2015-10-25 17:04:25 -07:00
Unknown W. Brackets
7e05d0db4b
Atrac: Correct decode data when there's an offset.
2015-10-25 17:04:24 -07:00
Unknown W. Brackets
e90f88a687
Atrac: Parse size and fact offset more correctly.
2015-10-25 17:04:24 -07:00
Unknown W. Brackets
2e5f8d687f
Atrac: Validate loop end and return an error.
2015-10-25 17:04:23 -07:00
Unknown W. Brackets
9ea765a347
Atrac: Calculate total samples based on data chunk.
...
Not on the entire RIFF size, which will be (slightly) inflated.
2015-10-25 17:04:22 -07:00
Unknown W. Brackets
ac56eff31c
Atrac: Parse the smpl chunk more correctly.
...
Returns the same errors as the PSP.
2015-10-25 17:04:22 -07:00
Unknown W. Brackets
596ecdc431
Atrac: Allow data to extend outside RIFF size.
...
This seems technically incorrect, but it's allowed on the PSP, possibly
intentionally due to data shipped truncated by accident?
2015-10-25 17:04:21 -07:00
Unknown W. Brackets
522a1743f4
Atrac: Return an error if there's no data chunk.
2015-10-25 17:04:20 -07:00
Unknown W. Brackets
62629827ea
Kernel: Clean up event flag logging, style.
2015-10-25 09:08:38 -07:00
Unknown W. Brackets
043891014d
Add a simpler way to force on HLE logging.
2015-10-25 09:05:16 -07:00
Unknown W. Brackets
d43247b8b8
Kernel: Act on wait clear for flags after callback.
2015-10-25 08:28:07 -07:00
Henrik Rydgard
488aec1df4
Typo fix
2015-10-25 00:54:00 +02:00
Unknown W. Brackets
f725453ae6
Sas: Report when revert is enabled.
2015-10-24 13:53:57 -07:00
Unknown W. Brackets
9591db2daa
Cleanup RETURN() in __KernelWaitCurThread().
...
This hasn't been needed for a while.
2015-10-24 13:11:07 -07:00
Unknown W. Brackets
f7fa0a06d4
Atrac: Reset the fileoffset only when adding data.
...
Otherwise, it's only a seek. For example, a seek to 0, as commonly seen.
2015-10-24 10:37:14 -07:00
Unknown W. Brackets
23c27d61df
Improve an error return value.
2015-10-18 13:02:05 -07:00
Unknown W. Brackets
cb99c9fc4a
Prevent a warning when loading some utility mods.
2015-10-18 12:53:18 -07:00
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