Commit Graph

5113 Commits

Author SHA1 Message Date
Henrik Rydgård
2e16e83159 It never ends... 2021-05-13 10:39:16 +02:00
Henrik Rydgård
ae06499a0c Change Copy, Rename to use Path. Remove std::string version of Exists().
Buildfixes

Buildfix
2021-05-13 10:39:16 +02:00
Henrik Rydgård
025bcb1673 Introduce Path, start using it all over the place.
Still lots left to convert!

Convert GetSysDirectory to return Path.

More buildfixing

Remove unnecessary Path( constructors
2021-05-13 10:39:16 +02:00
Unknown W. Brackets
8544bd0c3e Windows: Avoid C++ files for consistency.
There's already the mingw thing, and we're avoiding these for Android
paths too.  Let's be consistent.
2021-05-09 17:00:48 -07:00
Henrik Rydgård
05b3395543
Merge pull request #14420 from unknownbrackets/threadpool-cleanup
Cleanup some of the threadpool and net code a bit
2021-05-01 08:43:52 +02:00
Unknown W. Brackets
a140ec037a Usb: Stub sceUsbstorBootSetCapacity().
Apparently many Lua based homebrew call this on startup and hang if it
fails, but often otherwise don't use sceUsb.
2021-04-30 23:22:01 -07:00
Henrik Rydgård
f4a6d291e1 Common: Capitalize setCurrentThreadName(). 2021-04-30 23:02:36 -07:00
Unknown W. Brackets
c3da85234c Savedata: Eat less cycles in savedata init.
Other threads do get scheduled more, but I'm not sure what factors this is
based off of.  Hoping this helps #14382.
2021-04-25 18:38:30 -07:00
Henrik Rydgård
08843673d9 Rename a couple of functions. 2021-04-25 20:39:32 +02:00
Henrik Rydgård
1b13badeb4 Move remaining FileUtil functions into the File namespace. 2021-04-25 20:38:22 +02:00
ANR2ME
8742a49e07 Replacing the inconvenient prefix string for indentation with indent number. 2021-04-19 06:14:28 +07:00
Henrik Rydgård
8e953b2a97
Merge pull request #14383 from unknownbrackets/threadpool
Use threads more on startup to improve load time
2021-04-18 09:57:33 +02:00
Henrik Rydgård
8314a805f8
Merge pull request #14358 from unknownbrackets/debugger
Add basic APIs for managing memory info tagging
2021-04-17 18:35:38 +02:00
Unknown W. Brackets
a3680ca3cb Io: Calculate memory stick size on a thread.
If you have a bunch of saves/states/etc. this might be a bit slow.
2021-04-16 01:15:23 -07:00
Unknown W. Brackets
4c1ed81d45 Module: Speed up module unload. 2021-04-16 01:03:10 -07:00
Unknown W. Brackets
4f96169357 Core: Init memory on multiple threads.
Also init volatile at the same time for consistency.
2021-04-16 00:53:50 -07:00
Unknown W. Brackets
6ee944a0a6 Module: Process relocations on threads.
There's usually quite some, and using threads can halve the load time.
ELF loading isn't terribly slow, but it adds up.
2021-04-16 00:41:56 -07:00
Unknown W. Brackets
74f08bee2a Umd: Fix thread wakeup.
Oops.  Not sure how I left this flag flipped.  Was not waking threads.
2021-04-15 11:16:56 -07:00
Henrik Rydgård
6553b0f8e8
Merge pull request #14374 from unknownbrackets/rtc-cleanup
Rtc: Cleanup and simplify date struct handling
2021-04-12 08:24:20 +02:00
Unknown W. Brackets
f3f5b2e540 Rtc: Cleanup and simplify date struct handling. 2021-04-11 22:51:33 -07:00
Henrik Rydgård
7e8a94e7de
Merge pull request #14366 from unknownbrackets/shader-errors
Fix some shader errors from reporting
2021-04-11 08:09:09 +02:00
Henrik Rydgård
91c17dba1f
Merge pull request #14367 from unknownbrackets/reporting-kernel
Kernel: Define most reported missing kernel funcs
2021-04-11 08:07:17 +02:00
Henrik Rydgård
9783a2ec79
Merge pull request #13970 from unknownbrackets/umd-wait-stat
Correct UMD stat waiting when changing discs
2021-04-11 08:06:03 +02:00
Unknown W. Brackets
ffd468c3ae Reporting: Add more info to libstubend error. 2021-04-10 18:33:44 -07:00
Unknown W. Brackets
eedd0b32dd Module: Add a missing error return case. 2021-04-10 17:11:40 -07:00
Unknown W. Brackets
f88648c5a2 Kernel: Define most reported missing kernel funcs.
Kernel plugins and patches are still often not going to work, but might as
well define these.
2021-04-10 17:10:35 -07:00
Unknown W. Brackets
1b4f0e25b7 Reporting: Log more data about sceIoChStat(). 2021-04-10 15:11:44 -07:00
Unknown W. Brackets
4128b5c6e6 Dialog: Reset last status more consistently.
This is only used to reduce log spam.
2021-04-07 21:22:31 -07:00
Unknown W. Brackets
90f4098b3d Dialog: Lock volatile on thread.
This means it doesn't matter if GetStatus is called.
2021-04-07 18:13:51 -07:00
Unknown W. Brackets
429b4594d0 Dialog: Use a thread to init dialogs too. 2021-04-07 18:13:46 -07:00
Henrik Rydgård
28065c1bc4
Merge pull request #14359 from unknownbrackets/dialog-cleanup
Move dialog instances to the heap
2021-04-07 09:26:07 +02:00
Unknown W. Brackets
7da25563d3 Utility: Add a helper for the active dialog. 2021-04-06 22:23:17 -07:00
Unknown W. Brackets
4200021a95 Utility: Update logging to new syntax for dialogs. 2021-04-06 22:18:28 -07:00
Unknown W. Brackets
7b5d8bc38f Utility: Move dialog classes to heap.
This makes it easier to properly reset them on game reset.
2021-04-06 21:59:40 -07:00
Unknown W. Brackets
7a1398844a Debugger: Add simple API to control tagging detail.
In case a client requires it.
2021-04-04 20:23:51 -07:00
ANR2ME
951080991a Forgot to return on invalid address, and moving reusable code out of HLE to prevent generating confusing logs 2021-04-05 04:56:11 +07:00
ANR2ME
89ca70a141 Ooops wrong way to do random range 2021-04-05 04:44:29 +07:00
ANR2ME
9e64eed432 minor fix 2021-04-05 04:44:29 +07:00
ANR2ME
824fedbef6 Randomize signal strength between 1%~99% since games like MGS:PW are using signal strength to determine the strength of the recruit 2021-04-05 04:44:28 +07:00
ANR2ME
cc40d294ac Fix stuck issue when scanning AP for Recruit on MGS:PW 2021-04-05 04:44:28 +07:00
Henrik Rydgård
e86e3cc7cd
Merge pull request #14344 from unknownbrackets/debugger-mem
Include more memory info in debugger tags
2021-04-04 11:20:33 +02:00
Unknown W. Brackets
d3edb134b1 Debugger: Maintain atrac data source info.
Often this is the file it was read from.
2021-04-03 19:19:20 -07:00
Unknown W. Brackets
aa9b19be45 Debugger: Note atrac/sas reads from memory more. 2021-04-03 19:06:46 -07:00
Unknown W. Brackets
d009203c24 Deflt: Correct available input length.
The length of the output buffer can't have been always correct.
2021-04-03 18:14:59 -07:00
Unknown W. Brackets
ba71d9b555 Deflt: Trigger memchecks / log source of writes. 2021-04-03 18:14:59 -07:00
Unknown W. Brackets
bef1988f3d Deflt: Cleanup and refactor to one common func. 2021-04-03 18:14:59 -07:00
Unknown W. Brackets
5264fd254a Dmac: Invalidate source data before copy.
Also add src tag information.
2021-04-03 18:14:59 -07:00
Unknown W. Brackets
aa89ed5111 Debugger: Include source tag in memcpys. 2021-04-03 18:11:44 -07:00
Unknown W. Brackets
e36d09acc3 Debugger: Include filename in file IO memory tags. 2021-04-03 18:11:44 -07:00
ANR2ME
7a8448614b Fix crashing issue when leaving a multiplayer game room #14337 2021-04-04 02:08:12 +07:00
ANR2ME
206ab4345e Attempts to reconnect to Adhoc Server only when Creating/Joining/Connecting to a group or Scanning for groups, instead of on 2 seconds interval. 2021-04-02 12:19:02 +07:00
ANR2ME
7336ec6a81 Shows PSP error code as hex to be easier to find 2021-04-02 12:19:01 +07:00
ANR2ME
e508885cc4 Show the socket error code when failed to connect to adhoc server 2021-04-02 12:18:59 +07:00
ANR2ME
e3228ca1b5 Use a function to check for loopback address 2021-04-02 12:18:12 +07:00
Stefano B
e496c5e8cc Set ent_top/ent_size/stub_top/stub_size of SceModule 2021-03-30 23:15:49 +02:00
Unknown W. Brackets
f6ad90fab8 Module: Correctly handle modules with -1 entry.
It should not try to run, options or not.
2021-03-14 16:52:48 -07:00
ANR2ME
b7309559e8 Fix FlatOut Head On multiplayer. 2021-03-14 03:50:37 +07:00
Henrik Rydgård
42186e8e9e Warning fix, memleak fix 2021-03-11 23:28:02 +01:00
Henrik Rydgård
4f48ca3d1c Some homebrew like Triple Triad tries to load flash0:/kd/pspnet*.prx. We better just lie. 2021-03-11 00:54:19 +01:00
Henrik Rydgård
8e90d0644f
Merge pull request #14236 from unknownbrackets/reporting
Use full homebrew game title / id in reporting if available
2021-03-08 23:07:23 +01:00
M4xw
4cc322466a Switch: Workaround several missing toolchain defs. 2021-03-04 21:24:57 -08:00
Unknown W. Brackets
4178f09e57 Build: More consistently avoid _M_ defines.
We use PPSSPP_ARCH in several places already, this makes it more complete.
2021-03-02 21:49:21 -08:00
Unknown W. Brackets
13ec384dbe Build: Explicitly include ppsspp_config.h.
This adds it to all files that use it.  Not all our builds include the
file.
2021-03-02 21:04:03 -08:00
Unknown W. Brackets
43bc865d30 Module: Avoid logging bad pointers when no nids. 2021-03-01 21:07:28 -08:00
Unknown W. Brackets
a76ba9a957 Core: Handle Disc ID a bit more consistently. 2021-02-28 10:52:35 -08:00
ANR2ME
620e003c10 Removing TCPNoDelay option from Networking Settings and always enable it to improve response time. 2021-03-01 01:45:28 +07:00
ANR2ME
36a9fb7645 Replacing the deprecated gethostbyname function with getaddrinfo function to prevent getting deprecated warnings 2021-03-01 01:45:28 +07:00
ANR2ME
758fb12fc3 Making sure there are no warnings related to deprecated inet_ntoa function 2021-03-01 01:45:27 +07:00
Henrik Rydgård
2e5ba066aa
Merge pull request #14228 from unknownbrackets/volatile
Dialog: Use dialog type header more consistently
2021-02-27 23:32:01 +01:00
Unknown W. Brackets
88fe2e9863 Dialog: Use dialog type header more consistently. 2021-02-27 13:43:12 -08:00
Henrik Rydgård
77fb8dd3b2
Merge pull request #14227 from unknownbrackets/volatile
Dialog: Respect accessThread priority on shutdown
2021-02-27 22:41:41 +01:00
Unknown W. Brackets
52c5f4bf95 Dialog: Respect accessThread priority on shutdown.
This influences shutdown timing.
2021-02-27 13:15:12 -08:00
Unknown W. Brackets
fa320599dc HLE: Correct helper thread arg handling. 2021-02-27 12:51:25 -08:00
Unknown W. Brackets
aa13f5afb7 Dialog: Track type id on dialog class. 2021-02-27 12:01:52 -08:00
Unknown W. Brackets
2b9b157151 Savedata: Eat cycles in savedata shutdown start. 2021-02-27 10:35:26 -08:00
Henrik Rydgård
e12888844c
Merge pull request #14189 from sum2012/kernel-patch
sceKernelFindModuleByName:Add delay for Fake module
2021-02-27 18:17:50 +01:00
Henrik Rydgård
0e2ee8a848
Merge pull request #14140 from ANR2ME/adhoc
[Adhoc] Fix multiplayer issue on MGS:PW due to detecting an incorrect source port on incoming data
2021-02-21 22:18:05 +01:00
Henrik Rydgård
7cefafeb31
Merge pull request #14199 from unknownbrackets/ffmpeg-update
Mpeg: Set low latency flag for video decode
2021-02-21 18:42:33 +01:00
Unknown W. Brackets
d6dc6e9d64 Mpeg: Set low latency flag for video decode. 2021-02-21 09:05:48 -08:00
ANR2ME
4ee08ef73b Making sure the port is bound to an interface when using bind with INADDR_ANY. Seems to fix #14130 2021-02-21 20:05:50 +07:00
ANR2ME
cb61b34b53 Minor changes. 2021-02-21 20:05:50 +07:00
ANR2ME
d323f4fe4d Minor AdhocMatching changes. 2021-02-21 20:05:49 +07:00
ANR2ME
85822f2eeb Making sure src_addr and addrlen args of recvfrom is being set correctly upon use. 2021-02-21 20:05:49 +07:00
ANR2ME
eef3110dcf Shows a warning on Screen when detecting AdhocMatching data coming from an incorrect port, progressing any further may ended with connection issue.
Players will need to wait until the port detected correctly before progressing any further (may takes a few more seconds)
2021-02-21 20:05:48 +07:00
ANR2ME
d23e1c0949 Shows a warning log when bound port is shifted to negative port (may cause port issue when wrapped to 1024 or lower on android) 2021-02-21 17:22:15 +07:00
Henrik Rydgård
a062c177a3
Merge pull request #14188 from unknownbrackets/ffmpeg-update
Additional fixes for FFmpeg 3.1+
2021-02-21 10:19:36 +01:00
Henrik Rydgård
2f3bc2d373
Merge pull request #14056 from unknownbrackets/debugger-mem
Track memory allocations and writes for debug info
2021-02-21 10:18:11 +01:00
Henrik Rydgård
ea07493022
Merge pull request #14190 from unknownbrackets/net-modules
Module: Block a few network modules already HLE'd
2021-02-21 10:14:32 +01:00
sum2012
00d2a050b8 Hook open season
Fix #13252
original from #13326
2021-02-21 13:46:49 +08:00
Unknown W. Brackets
d38c620f90 Module: Block a few network modules already HLE'd. 2021-02-20 19:06:27 -08:00
sum2012
354d263ccf sceKernelFindModuleByName:Add delay for Fake module
Fix #13601
2021-02-21 08:54:11 +08:00
Unknown W. Brackets
d8e3bae2da Mpeg: Prevent sending flush packets to decode. 2021-02-20 15:15:21 -08:00
Unknown W. Brackets
ed2610cf1a Atrac: Update to latest FFmpeg packet pump. 2021-02-20 15:14:17 -08:00
Henrik Rydgård
8a69c3d122
Merge pull request #14176 from unknownbrackets/ffmpeg-update
Remove deprecated API calls for new FFmpeg 4.3.x
2021-02-20 17:14:09 +01:00
Unknown W. Brackets
1556187d36 HLE: Swap endian in matrix multiply replacement. 2021-02-18 22:27:48 -08:00
aliaspider
9a3e5879bb Global: Correct many endian types and casts. 2021-02-18 22:25:24 -08:00
Unknown W. Brackets
0ab6f1d080 Mpeg: Update videos to latest FFmpeg packet pump. 2021-02-18 00:20:27 -08:00
Unknown W. Brackets
2b2dae60d3 Mpeg: Use direct pts value checks in newer FFmpeg. 2021-02-18 00:20:27 -08:00
Unknown W. Brackets
2362d71d70 Mpeg: Remove deprecated codec register calls. 2021-02-18 00:20:27 -08:00
Unknown W. Brackets
2a9dde684d Dialog: Unlock volatile without Update call.
Crisis Core depends on this unlocking, likely it should really be on a
thread.
2021-02-16 19:15:09 -08:00
Henrik Rydgård
a2669377eb
Merge pull request #14149 from unknownbrackets/usb-wait
Usb: Implement state waits
2021-02-16 00:02:08 +01:00
Unknown W. Brackets
e7b968be73 Debugger: Notate Memcpys directly as well. 2021-02-15 15:01:23 -08:00
Unknown W. Brackets
88e2b9b740 Debugger: Notate memset tags directly. 2021-02-15 15:01:23 -08:00
Unknown W. Brackets
ca2f7df94f Debugger: Track memory allocations and writes. 2021-02-15 15:01:23 -08:00
Unknown W. Brackets
ca7d127adc Debugger: Notate more cases of memory clears. 2021-02-15 15:01:23 -08:00
Unknown W. Brackets
f7740edc6d Debugger: Add more metadata for memory usage. 2021-02-15 15:01:21 -08:00
Henrik Rydgård
93fd62f54b
Merge pull request #13832 from unknownbrackets/events
SaveState: Make event restoring more obvious
2021-02-15 23:39:42 +01:00
Henrik Rydgård
e1d73b2b91
Merge pull request #14073 from unknownbrackets/hle-delay
Log errors when delaying or waiting an already waiting thread
2021-02-15 23:10:08 +01:00
Unknown W. Brackets
cfbeadccc7 Usb: Implement state waits.
See #11067 - implementing in hopes of reducing spin.
2021-02-15 13:43:05 -08:00
Unknown W. Brackets
e85a8b0f5b Global: Cleanup class init order warnings. 2021-02-15 11:59:45 -08:00
Unknown W. Brackets
f32f89dd90 Global: Remove some unused variables. 2021-02-15 11:59:45 -08:00
Henrik Rydgård
5ed5947804
Merge pull request #13943 from unknownbrackets/dialog
Dialog: Simulate volatile memory lock behavior
2021-02-15 16:47:06 +01:00
Henrik Rydgård
0a1303b069
Merge pull request #13938 from unknownbrackets/worms-hook
HLE: Hook Worms text render copy func
2021-02-15 16:32:00 +01:00
Henrik Rydgård
af3b0e6ebf
Merge pull request #14070 from unknownbrackets/timing
CoreTiming: Ensure we never idle into the past
2021-02-15 13:24:10 +01:00
Henrik Rydgård
6df37b86bc
Merge pull request #14076 from unknownbrackets/zhp-map
GPU: Force texture invalidation for ZHP minimap
2021-02-15 11:33:32 +01:00
Unknown W. Brackets
9d22297a90 Windows: Use CommonWindows more consistently.
Also, make sure WinSock2.h is included beforehand where it's needed.
2021-02-14 10:30:10 -08:00
Unknown W. Brackets
0ffac20fcd Common: Include unistd.h before ctime on mingw.
This is required for localtime_r and similar to be available.
2021-02-14 10:30:10 -08:00
Unknown W. Brackets
2c165c9b6d Windows: Fix improper case or missing includes.
As per mingw errors/warnings.
2021-02-14 10:30:10 -08:00
Henrik Rydgård
14e3df6675
Merge pull request #14132 from unknownbrackets/io-validsize
Io: Truncate reads/writes to valid memory
2021-02-13 18:30:45 +01:00
Unknown W. Brackets
788e8c3bbc Io: Truncate reads/writes to valid memory.
A PSP might crash in these cases, but it's better if we avoid a crash.
2021-02-13 08:24:39 -08:00
ANR2ME
5a10835987 Fix lobby issue on The Warriors, probably also fix similar issue on other games too. 2021-02-11 20:51:49 +07:00
ANR2ME
0ce2c2c6e9 Windows recvfrom doesn't support MSG_TRUNC, so we're using dummy buffer with max size as alternative for peeking actual size of the next pending message. 2021-02-11 07:40:35 +07:00
ANR2ME
fc452c0dfd Fix frozen (0 FPS) issue on Kao Challengers and Asterix & Obelix XX (probably also fix other games from the same developer with similar issue) https://github.com/hrydgard/ppsspp/issues/14103 2021-02-11 03:44:25 +07:00
Henrik Rydgård
8b101ae4a1 Rename the new warmup variable from #14091 2021-02-09 16:11:59 +01:00
sum2012
b127aace57 Only allow sceMpegGetAvcAu warmup for God Eater Series
Fix #14086
2021-02-09 22:46:09 +08:00
Unknown W. Brackets
ec3bfe08ae GPU: Force texture invalidation for ZHP minimap.
See #14069, our texture hash misses this change.
2021-02-07 09:02:28 -08:00
Unknown W. Brackets
f75cb9fbae Thread: Log error waiting already waiting thread. 2021-02-06 23:55:58 -08:00
Unknown W. Brackets
b9ae574679 Thread: Log error when delaying a waiting thread.
This will handle double delaying and delaying in general.
2021-02-06 23:55:46 -08:00
ANR2ME
8432d6c5d7 Removing hleDelayResult from internal adhoc functions to prevent waking up thread that supposed to be blocked by the outer HLE. 2021-02-07 12:09:29 +07:00
ANR2ME
f17d387a65 Updated some Logs to help finding the location of the call to debug. 2021-02-07 12:08:02 +07:00
Unknown W. Brackets
c99de6409d Sas: Minor clenaup. 2021-02-06 18:37:05 -08:00
ANR2ME
04434ea68e Fix possible race condition issue. 2021-02-05 21:54:00 +07:00
ANR2ME
ddc122bcbe Moving hleDelayResult from internal function of SetSocketAlert to prevent waking up HLE-blocked thread 2021-02-05 21:54:00 +07:00
ANR2ME
a7eccc0c6f Minor renaming 2021-02-05 21:53:59 +07:00
ANR2ME
79c30ee716 We don't really need to allocate a buffer when using MSG_TRUNC on recvfrom 2021-02-05 21:53:59 +07:00
ANR2ME
849fe4ade1 Updated PdpStat to prevent rcv_sb_cc from exceeding the buffer size arg (since we use larger buffer size to prevent micro stutters or disconnection issue due to too many dropped packets with small buffer size).
TODO: May need to improve it to be able to calculate the correct size if there are multiple datagram messages
2021-02-04 10:31:01 +07:00
ANR2ME
f2e7a2a9ba Fix possible lock issue during AdhocMatchingStart 2021-02-04 10:15:29 +07:00
ANR2ME
a51036ffaf Updated PdpStat and PtpStat 2021-02-02 03:39:04 +07:00
Unknown W. Brackets
30b6f1f865
Merge pull request #14043 from unknownbrackets/vertexjit-abi
vertexjit: Correct saved registers on x64
2021-01-31 15:38:00 -08:00
Unknown W. Brackets
cc4d0479bf Core: Assert debug stats remain positive. 2021-01-31 15:06:11 -08:00
Unknown W. Brackets
5d60fa0d0d Common: Maintain C++11 support in sign extend. 2021-01-31 08:44:02 -08:00
Henrik Rydgård
ce2e47f353
Merge pull request #14033 from sum2012/warmup_patch6
Mpeg:Only allow firmware >= 6 for warmup
2021-01-31 11:09:07 +01:00
Unknown W. Brackets
1b00da2f3a Common: Sign extend w/func not chained casts.
Should be clearer to read and easier to get right.
2021-01-31 01:25:52 -08:00
Unknown W. Brackets
5041a898a2 Ge: Improve some logging and memchecks.
Explicitly trigger memchecks on readback.
2021-01-31 00:22:49 -08:00
sum2012
1d2150d2ae Mpeg:Only allow firmware >= 6 for warmup
Fix blue screen in #13146
2021-01-31 15:32:29 +08:00
ANR2ME
d907906c74 Fix connection issue on Dynasty Warriors (Shin Sangoku Musou) games when playing with more than 2 players. 2021-01-30 15:20:24 +07:00
Henrik Rydgård
54849075aa
Merge pull request #13999 from sum2012/mpeg_minor
Mpeg:Only allow firmware >= 3 for warmup
2021-01-29 22:17:25 +01:00
sum2012
02f1b6452b Try to build fix on non-windows 2021-01-29 22:45:30 +08:00
sum2012
6bc3cb4dfa Mpeg:Only allow firmware >= 3 for warmup
Fix #13996
2021-01-29 22:26:45 +08:00
Florin9doi
c0c8329f57 Remove duplicates from ThreadManForKernel 2021-01-27 22:57:04 +02:00
Henrik Rydgård
97e7a28161
Merge pull request #13981 from unknownbrackets/mp3-sdkver
Cleanup some MP3 SDK version differences
2021-01-27 18:08:11 +01:00
Unknown W. Brackets
8a437b267e Mp3: Correct logging for init. 2021-01-27 07:07:14 -08:00
ANR2ME
46397c40a0 Updated GameMode initial data sync, in case remote players aren't listening yet when sending initial data (fix Pocket Pool) 2021-01-27 19:20:51 +07:00
Unknown W. Brackets
4b4be0f34f Mp3: Always keep sample rate from original mp3.
Our codec context is updated with the source sample rate, so this makes us
not resample at all.

Converting to stereo still seems correct.
2021-01-26 23:50:54 -08:00
Unknown W. Brackets
463fc3c792 Mp3: Allow decode without pcm pointer.
Just like other audio decoding, you're allowed to skip audio.
Also prevents a crash if the mp3 is not yet inited.
2021-01-25 23:51:55 -08:00
Unknown W. Brackets
de5488d4df Mp3: Correct error handling for newer sdk versions.
The 6.xx behavior might be important if a game relies on it to add data.
2021-01-25 20:57:34 -08:00
AdamN
1df5202cfb
Merge pull request #13976 from ANR2ME/adhoc
[Adhoc] Fix a possible return value issue on PtpOpen when using ForcedFirstConnect hack.
2021-01-25 19:38:17 +07:00
sum2012
e7e36ca21a Add header information 2021-01-25 20:27:56 +08:00
sum2012
72cc39f929 sceMp3Init:Add layerBits and versionBits information 2021-01-25 20:14:02 +08:00
ANR2ME
3d813aec73 Don't allow ForcedFirstConnect hack when using PtpConnect within PtpOpen to prevent returning result from blocking PtpConnect instead of result of PtpOpen. 2021-01-25 18:40:20 +07:00
Henrik Rydgård
db76f61172
Merge pull request #13969 from unknownbrackets/io-async
Io: Don't allow async close while async busy
2021-01-24 22:58:14 +01:00
Unknown W. Brackets
cfb52bf69e Umd: Disallow waiting on status that can't occur.
Per tests, CHANGED is not waitable.
2021-01-24 13:21:25 -08:00
Unknown W. Brackets
871a0f9492 Umd: Wake waiting threads on eject/insert. 2021-01-24 12:11:42 -08:00
Unknown W. Brackets
f81250660a Umd: Delay common wait drive stat funcs.
These are sometimes used in loading or loops, and take time.  This should
reduce spin looping.
2021-01-24 11:49:25 -08:00
Unknown W. Brackets
c7bf68c991 Io: Don't allow async close while async busy.
See #6582.
2021-01-24 11:22:41 -08:00
ANR2ME
6b110af3e6 Fix returned error code on PtpSend and PtpRecv when socket is not connected yet. 2021-01-24 18:48:00 +07:00
ANR2ME
964b8bf331 Do PtpConnect internally during PtpOpen, since some games (ie. The Warriors) seems to do PtpSend immediately after PtpOpen without trying to PtpConnect first. 2021-01-24 18:47:58 +07:00
sum2012
25a09288e9 Resample only in 32000Hz 2021-01-24 04:51:26 +08:00
sum2012
8a1b0bd210 build fix 2021-01-23 21:51:18 +08:00
sum2012
64a51e1658 Resample all mp3
Fix #5213
2021-01-22 21:12:07 +08:00
Henrik Rydgård
9a94031c8a
Merge pull request #13947 from unknownbrackets/kernel-timing
Kernel: Adjust sceKernelGetThreadExitStatus timing
2021-01-19 07:56:08 +01:00
Unknown W. Brackets
dd2bd55bcb Kernel: Adjust sceKernelGetThreadExitStatus timing.
See #13703.
2021-01-18 22:09:37 -08:00
Unknown W. Brackets
6db0f5106c Power: expose volatile memory lock/unlock funcs. 2021-01-18 10:37:12 -08:00
Unknown W. Brackets
70d92139db Headless: Simplify executing a ppdmp via headless. 2021-01-17 18:33:59 -08:00
Unknown W. Brackets
53b9a8e48c HLE: Hook Worms text render copy func.
This func takes drawn text and replaces stencil with alpha based on the
color intensity to prepare text for blending.

See #12380.
2021-01-17 12:38:03 -08:00
Unknown W. Brackets
8fe9bedb78 Module: Keep the state for each import.
On exports, we iterate modules then imports.
But on imports, we iterate the exports to find the module, so we need to
keep the state around higher up.
2021-01-16 19:32:37 -08:00
Henrik Rydgård
720c5b4176
Merge pull request #13927 from unknownbrackets/unlink
Module: Reverse a single HI16/LO16 pair correctly
2021-01-16 23:58:51 +01:00
Unknown W. Brackets
6efd1ae7f4 Module: Keep HI16/LO16 in a temp state object.
This doesn't need to live any longer than the link or unlink, so let's
just make that abundantly clear.
2021-01-16 11:57:37 -08:00
Unknown W. Brackets
17f3de66c5 Module: Reverse a single HI16/LO16 pair correctly.
If there is only one imported variable as a HI16/LO16, unloading the
module wasn't properly reversing the link.  See #13104.
2021-01-16 10:04:20 -08:00
ANR2ME
23efd22efb Fix Stuck issue on some games (Dissidia 012, Full Auto 2, etc) when Failed to connect to Adhoc Server (faked success) 2021-01-16 20:55:40 +07:00
ANR2ME
228d17ef0c Reducing AdhocMatching events delay to prevent matchingEvents from piling up on Lord of Arcana. 2021-01-09 01:54:47 +07:00
ANR2ME
72549443e4 Send AdhocMatching Data from within HLE whenever possible instead of through matchingEvent Thread. 2021-01-09 01:52:29 +07:00
ANR2ME
dbce1a4c1d Prevent access violation when running out of userMemory due to piling up AdhocMatching events. 2021-01-09 00:55:11 +07:00
Unknown W. Brackets
64f3830668 Psmf: Fix a potential leak on shutdown. 2021-01-01 15:43:13 -08:00
Henrik Rydgård
7568ba9a76
Merge pull request #13843 from unknownbrackets/actions
Implement GitHub Actions build
2020-12-31 17:23:44 +01:00
Unknown W. Brackets
7b9431f463 Net: Remove static declarations from h file.
Were just causing warnings.
2020-12-31 08:12:48 -08:00
Unknown W. Brackets
06f8ab5a49 SaveState: Make event restoring more obvious.
We still must restore all events, but everything can be taken care of
during the save state load.
2020-12-28 13:29:19 -08:00
AdamN
8d2fdfc739
Merge pull request #13826 from ANR2ME/adhoc
Using MSG_TRUNC along with MSG_PEEK as a precaution of a possible buffer overflow when peeking recv buffer
2020-12-28 21:11:37 +07:00
shenweip
a174390c95 Corrects the calculation of the return value when the callback of RingbufferPut returns a negative value. 2020-12-28 10:38:27 +08:00
ANR2ME
a2a164b228 Using MSG_TRUNC along with MSG_PEEK as a precaution of a possible buffer overflow when peeking recv buffer. 2020-12-28 04:30:32 +07:00
Henrik Rydgård
990c9650da
Merge pull request #13802 from sum2012/mpeg_warmup
Mpeg: Add warm up staff
2020-12-26 17:44:55 +01:00
ANR2ME
b10797db95 Fixed an issue where sometimes a player unable to join a host on Warriors Orochi 2 (should also fix similar issue on other games that use PDP/UDP on Windows) 2020-12-25 00:27:35 +07:00
ANR2ME
a20567222a Close the port immediately when closing a socket. 2020-12-25 00:23:44 +07:00
sum2012
a5bd77061b Typo
Thanks @shenweip
2020-12-23 19:52:37 +08:00
sum2012
0572423e2b Fix Grand Theft Auto - Vice City Stories 2020-12-23 06:22:30 +08:00
sum2012
d56e23ec24 Mpeg: Add warm up staff
fix #13527
2020-12-22 23:39:41 +08:00
Henrik Rydgård
52c6169a59
Merge pull request #13241 from ANR2ME/openpsid
Added some missing OpenPSID nids and some stub functions
2020-12-20 14:18:13 +01:00
Henrik Rydgård
45c7d4cd84
Merge pull request #13776 from sum2012/mpg_psmf_minor
Add stack value in scempeg and scepsmf from jpcsp
2020-12-20 12:54:05 +01:00
sum2012
d60bc6f32f Forget this one HLE_KERNEL_SYSCALL 2020-12-20 18:17:00 +08:00
sum2012
c8d92ca09d Add some ThreadManForKernel nis
Find in #13797
2020-12-20 18:14:38 +08:00