Commit Graph

13116 Commits

Author SHA1 Message Date
Henrik Rydgård
1692922cd8 Use proper returns in _AtracDecodeData 2024-04-12 14:25:46 +02:00
Henrik Rydgård
c43442f801 Improve and cleanup logging in sceAtrac 2024-04-12 13:53:17 +02:00
Henrik Rydgård
39b884cfb3 Atrac3/3+: Improve error handling 2024-04-12 11:18:26 +02:00
Henrik Rydgård
ff372f878d Minor code cleanup 2024-04-11 16:54:29 +02:00
Henrik Rydgård
5ed77b58ca Improve the AudioDecoder API to avoid having to call a function to get the bytes consumed 2024-04-11 16:49:00 +02:00
Henrik Rydgård
45936e8826 Atrac: Add "flush_buffers" api. The ffmpeg atrac decoder was missing this. 2024-04-11 16:35:27 +02:00
Henrik Rydgård
58cb2ba804 Fix playback of atrac3+ when block align not specified 2024-04-11 16:10:31 +02:00
Herman Semenov
8e580045cd Fixed condition always false using unsigned int and logical AND 0 & 4 2024-04-11 16:56:59 +03:00
Henrik Rydgård
b35b351802 Finally remove the AVCodecContext 2024-04-11 14:50:29 +02:00
Henrik Rydgård
6ea8efc0e9 Bypass AvCodecContext for atrac3plus, for a simpler API. 2024-04-11 14:39:59 +02:00
Henrik Rydgård
bf280eb410 Remove "SetExtraData" from AudioDecoder, pass in the data at creation instead 2024-04-11 14:39:59 +02:00
Henrik Rydgård
33ba30694a Revert "Disable FFMPEG temporarily to avoid symbol clashes"
This reverts commit 14222f5977e8aa0c167e8879450d84d77df3b1a2.
2024-04-11 14:39:59 +02:00
Henrik Rydgård
416ba81d20 Remove the channel_layout stuff 2024-04-11 14:39:59 +02:00
Henrik Rydgård
e871133fe6 Buildfixes 2024-04-11 14:39:59 +02:00
Henrik Rydgård
0d30728832 Remove context parameter from av_log 2024-04-11 14:39:59 +02:00
Henrik Rydgård
e10b90b718 Switch at3_standalone to C++ to avoid namespace clashes 2024-04-11 14:39:59 +02:00
Henrik Rydgård
d617aec8c8 Simplify away AVFrame from decoding functions, remove buffer pools 2024-04-11 14:39:59 +02:00
Henrik Rydgård
08d5de9f4c Remove opt, dict, more 2024-04-11 14:39:59 +02:00
Henrik Rydgård
c6c67695b1 Hook up ATRAC3 too 2024-04-11 14:39:59 +02:00
Henrik Rydgård
8fbc4a3379 Ultra-gross hackery, but works! Now, need to pare it down, heavily... 2024-04-11 14:39:59 +02:00
Henrik Rydgård
fb906481cc Disable FFMPEG temporarily to avoid symbol clashes 2024-04-11 14:39:59 +02:00
Henrik Rydgård
c902973688 Setup more of the setup 2024-04-11 14:39:59 +02:00
Henrik Rydgård
8d4716cab6 WIP: Add AT3/AT3plus files, get it to compile (though will fail to link if we use it) 2024-04-11 14:39:59 +02:00
Henrik Rydgård
db929ea042 Use minimp3 for in-game mp3 decoding. Doesn't solve any issues it seems, but works like before. 2024-04-11 14:19:22 +02:00
Henrik Rydgård
3de85c8d14 Remove more unnecessary accessors 2024-04-11 14:18:07 +02:00
Henrik Rydgård
423e3d3338
Merge pull request #19035 from GermanAizek/fix-always
[GPU/HLES] 'fs' its already NULL, removed excess delete and bufferState_ always ATRAC_STATUS_HALFWAY_BUFFER
2024-04-11 14:17:26 +02:00
Herman Semenov
f625f18eba [GPU/HLES] 'fs' its already NULL, removed excess delete and bufferState_ always ATRAC_STATUS_HALFWAY_BUFFER 2024-04-11 14:52:55 +03:00
Henrik Rydgård
5b3be0d720 Update USE_FFMPEG checks 2024-04-10 18:40:02 +02:00
Henrik Rydgård
fc58a97024
Merge pull request #19027 from GermanAizek/char-as-param-for-string-methods
Minor optimize methods std::string using param as char with simpler implementation
2024-04-10 17:16:14 +02:00
Herman Semenov
c20cb3f4be Minor optimize methods std::string using param as char with simpler implementation 2024-04-10 17:57:05 +03:00
Henrik Rydgård
c6f5ac0c81
Merge pull request #19024 from hrydgard/audio-decoder-refactor
Audio format decoder: Refactor to enable multiple decoder implementations
2024-04-10 14:52:03 +02:00
Henrik Rydgård
9b57375b07
Merge pull request #19019 from hrydgard/plugins-on-game-screen
Add option to disable plugin, show list of available plugins on game screen
2024-04-10 13:14:21 +02:00
Henrik Rydgård
8adca6492c Move class SimpleAudio into the cpp file 2024-04-10 13:03:19 +02:00
Henrik Rydgård
1805910fac More refactoring 2024-04-10 12:22:58 +02:00
Henrik Rydgård
1938d3b876 More prep for plugging in alternate audio decoders 2024-04-10 12:14:58 +02:00
Henrik Rydgård
32ca7ab59a Minor code cleanups 2024-04-10 12:07:03 +02:00
Henrik Rydgård
88eb2c2e0b Add a virtual base class so we can implement alternative decoders 2024-04-10 00:45:02 +02:00
Henrik Rydgård
ddbe0e853b Remove unused code 2024-04-10 00:40:16 +02:00
Henrik Rydgård
e19e9b2793 Delete pointless accessors, update some comments 2024-04-10 00:35:48 +02:00
Henrik Rydgård
c6d2fba2f1
Merge pull request #19022 from hrydgard/minor-fixes
Some logging fixes
2024-04-09 19:16:12 +02:00
Henrik Rydgård
ddd821b6ce Improve logging in pgd_open 2024-04-09 17:41:56 +02:00
sum2012
81057bf535 Try to fix loop in scePsmfPlayerGetVideoData
Fix #19011
2024-04-09 21:55:57 +08:00
Henrik Rydgård
4b34e4cfb4 Add option to disable plugins completely 2024-04-09 13:13:30 +02:00
Henrik Rydgård
e903287f4c Game info screen: Show list of any plugins that will be loaded on start of the game 2024-04-09 12:55:50 +02:00
Henrik Rydgård
b7f0a9029e More cleanup 2024-04-07 12:36:32 +02:00
Henrik Rydgård
79bdc8a9ff Some constification in sceChnnlsv 2024-04-07 12:31:45 +02:00
Henrik Rydgård
79c553d004 Remove the zero-write in BuildHash 2024-04-07 12:31:45 +02:00
Henrik Rydgård
404600faa3 SavedataParam/ParamSFO: Minor code cleanups 2024-04-07 12:31:45 +02:00
Henrik Rydgård
77133dd82c Fix a long-standing buffer overflow in savedata encryption
BuildHash pads the buffer up to its 16-byte aligned size with zeroes,
so there needs to be space for that. Or, we should just remove that
write, but let's do the smallest change that fixes the bug for now.
2024-04-07 11:42:51 +02:00
Henrik Rydgård
80a12ca102 Run the update menu item thing on the window thread too. 2024-04-06 12:18:28 +02:00
Henrik Rydgård
00acaa3299 Build the RAIntegration menu on the right thread 2024-04-06 12:14:53 +02:00
Henrik Rydgård
616ee81f84 Add another parameter to the internal "request" framework. 2024-04-06 12:04:45 +02:00
Henrik Rydgård
329628f448 Force the menubar to repaint after building the RA submenu 2024-04-05 22:55:31 +02:00
Henrik Rydgård
770e5b4f4a Fix shortcut translation so we don't eat Ctrl+C for RAIntegration windows 2024-04-05 22:41:08 +02:00
Henrik Rydgård
d39b606931 RAIntegration: Fix memory writes 2024-04-05 21:00:12 +02:00
Henrik Rydgård
6f825e4ff3 Minor comment fix 2024-04-05 18:21:02 +02:00
Henrik Rydgård
8a1ec96626 Correctly submit the version string 2024-04-05 18:16:46 +02:00
Henrik Rydgård
5a8140c301 Initialize RAIntegration support if available. Untested. 2024-04-05 18:15:10 +02:00
Henrik Rydgård
f54b5e03be Use remove_if correctly. 2024-04-05 17:28:55 +02:00
Henrik Rydgård
d947de601e Apply minor cleanup from #18990
See #18990
2024-04-04 15:48:09 +02:00
Henrik Rydgård
9f9881dfe3 Move some code, minor cleanup.
See #18987
2024-04-04 12:30:41 +02:00
Henrik Rydgård
d02227227b
Merge pull request #18981 from GermanAizek/using-preinc-predec
[GPU/System/Thread/Core/FS] Simplify loops
2024-04-04 00:26:54 +02:00
Herman Semenov
4b92848bdc [System/Core] Simplify loops 2024-04-03 19:25:55 +03:00
Henrik Rydgård
fc1d984b20 Update rcheevos, switch back to upstream. Avoid using rcheevos' hash.c, by computing game hashes ourselves. 2024-04-03 16:43:34 +02:00
Henrik Rydgård
814ba6ef44
Merge pull request #18973 from GermanAizek/fix-return-copies
Fixed return copies from functions and added const ref params
2024-04-03 00:21:48 +02:00
Henrik Rydgård
8720cc2640
Merge pull request #18975 from GermanAizek/protect-from-ub
Protect against undefined behavior when bitwise shift occurs with negative value
2024-04-03 00:18:59 +02:00
Herman Semenov
7b3c45508b Protect against undefined behavior when bitwise shift occurs with negative value 2024-04-02 19:31:04 +03:00
Herman Semenov
9e126b5f00 Fixed possible accidental conversion memsize type to strict 32 bit 2024-04-02 19:03:12 +03:00
Herman Semenov
17ecee1715 Fixed return copies from functions and const ref params 2024-04-02 18:37:00 +03:00
Henrik Rydgård
746696ab58
Merge pull request #18970 from GermanAizek/cleanup
Cleanup excess redefines and maybe fixed result in HLE sceIo::sceIoGetDevType()
2024-04-02 13:55:27 +02:00
Herman Semenov
0f94ac9189 Cleanup excess redefines and maybe fixed result in HLE sceIo::sceIoGetDevType() 2024-04-02 14:25:26 +03:00
Henrik Rydgård
971320cf66 Fix memory leak on shutdown in sceHeap 2024-04-02 12:02:19 +02:00
Herman Semenov
cfb77ce83e [Core/HLE/Common/UI] Using C++17 make smart pointers 2024-04-01 18:12:27 +03:00
Henrik Rydgård
22c9437319 Fix wrong timer reading in MIPSDebugInterface, thanks Nemoumbra 2024-03-26 13:40:25 +01:00
Henrik Rydgård
8e93f9ad71 Fix typo in ini setting name. (little used setting, so..).
Change Challenge to Hardcore while at it.
2024-03-17 17:03:22 +01:00
Henrik Rydgård
3d2a0b931a
Merge pull request #18931 from hrydgard/chd-hunk-size-fix
CHD: Fix unnecessary reloads of "hunks" during large reads
2024-03-16 22:01:26 +01:00
Henrik Rydgård
d284ad4496 Remove warning for bad CHDs 2024-03-16 20:52:21 +01:00
Henrik Rydgård
dad579615b CHD support: Fix accidental hunk re-reads with large chunks. 2024-03-16 20:38:23 +01:00
Henrik Rydgård
55974f61ad Fix a bunch of cases where we forgot to check for chd files 2024-03-13 09:31:31 +01:00
rofl0r
55ae3b1c3e FS: fix crash overreading data on flash0
noticed while using intrafont with some homebrew code.
when using musl libc's hardened malloc, the overread in the
code caused PPSSPP to segfault.
2024-02-26 17:17:33 +00:00
Bobby Smith
133e9e37ae Crash fix for some games 2024-02-23 01:37:07 +01:00
Henrik Rydgård
c5791764d8 Make the i18n T function use std::string_view
Buildfixes, crashfixes

One more

Android buildfix

Buildfix Qt
2024-02-12 18:44:39 +01:00
Andrew Udvare
930b7f644d ffmpeg: Improved fix for checking if const AVCodec* is necessary 2024-02-05 14:37:09 -05:00
Henrik Rydgård
b634e4154e Memory exception handler: Don't disassemble if ignoring the exception 2024-02-04 11:59:36 +01:00
Henrik Rydgård
2cd7b5cceb Hacky compat workaround for Resistance's ad-hoc mode
Slicing the slow memcpy calls messes up some timing so it crashes. Too
hard to fix for 1.17.1, so we do this :(
2024-02-04 00:43:48 +01:00
Henrik Rydgård
7d894b8283
Merge pull request #18813 from hrydgard/ufc-crash-work
Mali: Turn off any depth writes in the shader if depth test == NEVER
2024-02-02 11:51:30 +01:00
Henrik Rydgård
e226ef6bd1
Merge pull request #18814 from hrydgard/hide-extracted-iso-warning
Hide the extracted ISO warning if ppsspp-index.lst is present.
2024-02-02 11:51:15 +01:00
Henrik Rydgård
ca6e0f4f57 Hide the extracted ISO warning if ppsspp-index.lst is present. 2024-02-02 11:21:53 +01:00
Henrik Rydgård
6ce4933db8 Split the discard-stencil-bug flag into separate flags for Adreno and Mali 2024-02-02 11:11:31 +01:00
Henrik Rydgård
c0bc6446dd Improve assert, cleanup 2024-02-01 16:33:01 +01:00
Henrik Rydgård
61bd01144e UI fixes 2024-01-31 23:17:51 +01:00
Henrik Rydgård
3831ec1921 Warn the user about bad CHDs
If they're not created with "chdman createdvd", they will perform really
badly.
2024-01-31 22:15:47 +01:00
Henrik Rydgård
14cd094535
Merge pull request #18800 from hrydgard/last-minute-fixes
Even more checks and fixes
2024-01-31 11:59:45 +01:00
Henrik Rydgård
ce5f157040 More paranoia 2024-01-31 10:48:35 +01:00
Henrik Rydgård
c7ed87b352 Assorted paranoia and improved checks 2024-01-31 10:22:03 +01:00
Henrik Rydgård
7af6501a6f UI: ScrollView: Improve interaction with the scroll bar thingy, avoid accidental clicks 2024-01-31 09:37:11 +01:00
Henrik Rydgård
fae1f4acd3 A null check and a locking simplification 2024-01-30 19:15:19 +01:00
Henrik Rydgård
cf1fd714fd
Merge pull request #18786 from hrydgard/release-inputs-on-pause
Release all keys on pause.
2024-01-29 19:21:22 +01:00
Henrik Rydgård
1faef374a9 Strengthen the axis-threshold reduction for related axes a bit. See #17792 2024-01-29 18:50:08 +01:00
Henrik Rydgård
7920d3a44b Release all keys on pause.
Fixes #18767

Not sure about merging for the 1.17 series though, maybe someone really
likes to bring up the pause menu briefly while holding a direction.. we
could actually handle that with some extra logic.
2024-01-29 18:41:43 +01:00