Commit Graph

5405 Commits

Author SHA1 Message Date
sum2012
282505c70f Trying to improve sceMpegAvcDecodeYCbCr
Fix #11060
2022-09-25 23:00:03 +08:00
sum2012
497bad3312 oop 2022-09-25 12:04:33 +08:00
sum2012
5c7485b815 Change int to size_t 2022-09-25 10:18:16 +08:00
sum2012
d084b5cf96 strtol and toupper use native
and buildfix for ubuntu
Thanks unknownbrackets
2022-09-25 08:31:46 +08:00
sum2012
d17c87dc78 oop 2022-09-24 22:49:11 +08:00
sum2012
e42a970ee3 Add some sysclib's nids
Find in prxshot.prx
2022-09-24 22:40:19 +08:00
Unknown W. Brackets
cc447aa868 HLE: Fix bad logging without latestSyscall. 2022-09-23 18:47:51 -07:00
ANR2ME
e9cb37993f Fix assertion issue when playing Cars over public adhoc server. 2022-09-23 20:12:16 +07:00
Henrik Rydgård
ac7ca963db Make valgrind happy 2022-09-23 12:24:43 +02:00
Unknown W. Brackets
79c5c93d35 Kernel: Match index lookup behavior for tls.
It might be the uids it returns always follow this format.
This makes the test almost pass, outside psplink using more memory (test
should be adjusted to compensate.)
2022-09-20 19:25:32 -07:00
Unknown W. Brackets
d665b2b6ca Kernel: Disallow partitions 8/10 to match tests.
I think these might be accessible only in kernel mode.
2022-09-20 10:46:43 -07:00
Unknown W. Brackets
251cc73afd Kernel: Allow volatile for MsgPipe buffers. 2022-09-20 09:20:05 -07:00
Unknown W. Brackets
56f2d7cdac Kernel: Allow volatile for Tlspl objects. 2022-09-20 09:05:39 -07:00
Unknown W. Brackets
3c80bd94a2 Kernel: Allow kernel/volatile VPLs as well. 2022-09-20 08:57:24 -07:00
Unknown W. Brackets
fca9b77bd2 Kernel: Allow allocating FPLs in volatile memory. 2022-09-20 08:32:01 -07:00
Unknown W. Brackets
ef5eecce56 Kernel: Load volatile memblocks from save states.
Otherwise they'd reset to userMemory.
2022-09-20 00:37:21 -07:00
Unknown W. Brackets
8772c6e2f8 Kernel: Check sceKernelAllocPartitionMemory args.
This is the order you get error codes back in if there are multiple
errors.
2022-09-20 00:31:01 -07:00
Unknown W. Brackets
7580844ea5 Kernel: Fix save states for volatile memory alloc. 2022-09-20 00:07:38 -07:00
Crow-bar
789983ebad HLE: sceKernelAllocPartitionMemory volatile memory support (partition 5) 2022-09-19 15:26:45 +03:00
Unknown W. Brackets
f0afc97247 Gamedata: Cleanup install request args/validate. 2022-09-18 20:39:13 -07:00
Henrik Rydgård
42b2b0a266 atrac3: Apply the overallocation workaround in a couple more places. Fixes #15788 . 2022-09-09 11:54:20 +02:00
Henrik Rydgård
818334c592 atrac3: Allocate some extra bytes for the data buffer to workaround decoder bug. 2022-09-09 09:58:11 +02:00
Unknown W. Brackets
1d5c90d370 Ge: Read matrix num/data back like hardware.
In case any game accidentally relies on this.
2022-09-05 19:37:58 -07:00
Unknown W. Brackets
ccd4e92184 Kernel: Use PSPPointer for status objects.
Code makes more sense when reading ->size rather than offset 0.
2022-09-03 10:44:12 -07:00
Unknown W. Brackets
dd0de46ed9 Io: Use PSPPointer instead of struct temps. 2022-09-03 10:44:11 -07:00
Unknown W. Brackets
79c7a91d98 Font: Remove needless ReadStruct(). 2022-09-03 10:44:11 -07:00
Unknown W. Brackets
a86b904cf2 Ge: Switch from ReadStruct to PSPPointer. 2022-09-03 10:44:11 -07:00
Unknown W. Brackets
8b41178cb8 Psmf: Use PSPPointer instead of WriteStruct. 2022-09-03 10:44:11 -07:00
Unknown W. Brackets
8f96405ee5 Net: Remove usage of Memory::WriteStruct().
This also validates pointer write size better.
2022-09-03 10:44:11 -07:00
Unknown W. Brackets
3a372aa615 HLE: Remove misc usage of WriteStruct().
Prefer PSPPointer and notifying.
2022-09-03 10:44:11 -07:00
Henrik Rydgård
5200208a84 Revert "Merge pull request #15930 from sum2012/kernel-minor"
This reverts commit fd863beb96, reversing
changes made to 59813fff6d.
2022-09-01 20:44:00 +02:00
Henrik Rydgård
1cd34f9d2b Another buildfix attempt 2022-09-01 14:07:27 +02:00
Henrik Rydgård
ecb84987ef Remove allocation from the heaviest MemBlockInfo path (BlockTransfer). Required some refactoring. 2022-09-01 11:59:35 +02:00
Henrik Rydgård
7bced814ce Remove a per-audio-frame allocation in sceAudio 2022-09-01 11:59:35 +02:00
Henrik Rydgård
1b3b1acefa Tweak ForceMax60Fps to work for Killzone 2022-08-30 20:10:44 +02:00
sum2012
75390be142 Fix sceKernelUnlockMutex timing
Fix https://github.com/hrydgard/ppsspp/issues/6557
2022-08-30 20:46:43 +08:00
Luboš Vonásek
c5cb45b1f7
Merge branch 'hrydgard:master' into feature_openxr_6dof 2022-08-24 06:55:31 +02:00
Unknown W. Brackets
80e481bbdc Core: Show exception on misaligned jump. 2022-08-21 14:49:34 -07:00
Lubos
2887671e6f OpenXR - Refactor display framerate 2022-08-17 16:55:19 +02:00
Lubos
1e479fa192 Merge branch 'master' into feature_openxr_6dof 2022-08-17 16:48:05 +02:00
fp64
5b6a14edeb Add a newline to "Leaving main" message.
Also implement SYSPROP_DISPLAY_XRES/SYSPROP_DISPLAY_YRES for SDL.
Also fix couple of warnings.
2022-08-16 18:29:14 -04:00
sum2012
112951e6bd Fix Earth Saver Plus font 2022-08-14 20:31:45 +08:00
Henrik Rydgård
f8325631bc
Merge pull request #15838 from sum2012/Atrac_hack
Add atrac looping hack for 4 games
2022-08-14 10:37:36 +02:00
sum2012
e373c9063c Use compat.ini instead 2022-08-14 14:54:06 +08:00
sum2012
965daea455 Add atrac hack setting 2022-08-14 09:51:49 +08:00
Unknown W. Brackets
bdb4107014 Net: Cleanup initialization syntax. 2022-08-13 12:43:14 -07:00
Unknown W. Brackets
f16d6c6011 Font: Correct uninitialized values. 2022-08-13 08:10:46 -07:00
Unknown W. Brackets
75a85d4035 Atrac: Avoid accessing uninitialized stream status.
Only mess with this in a stream mode.
2022-08-13 08:09:16 -07:00
Lubos
f81779b0de Merge branch 'master' into feature_openxr_6dof 2022-08-13 14:27:29 +02:00
Unknown W. Brackets
8b3526b8c2 Atrac: Avoid an uninitialized value. 2022-08-13 00:16:08 -07:00
Lubos
89a0a28c70 Merge branch 'master' into feature_openxr_6dof 2022-08-09 19:35:13 +02:00
Unknown W. Brackets
5246d901ce Headless: Cleanup unused/leak warnings. 2022-08-07 12:10:17 -07:00
Lubos
c00fea1b22 Merge branch 'master' into feature_openxr_6dof 2022-08-07 20:33:14 +02:00
Unknown W. Brackets
20c2ec1392 GPU: Skip alpha stencil upload when safe.
Otherwise, let's not do things that give different behavior at 1x or are
inconsistent.
2022-08-06 21:12:59 -07:00
Henrik Rydgård
5f230ee998 Fix some compiler warnings 2022-08-06 18:19:27 +02:00
ANR2ME
0b3fdf0cef Use safe_string when printing %s with Memory::GetCharPointer. 2022-08-06 11:22:38 +07:00
ANR2ME
3b7a33ddd8 Prefer using "%04x" over "%04hx". 2022-08-06 11:04:07 +07:00
ANR2ME
48deb37cc8 Fix logging warning issue. 2022-08-06 03:11:59 +07:00
Lubos
cc3981a328 OpenXR - 72Hz support added 2022-08-05 15:14:21 +02:00
ANR2ME
4c9e1dec1a Fix include issue. 2022-08-04 16:35:30 +07:00
ANR2ME
31ea7a6a95 Updated copyright's year. 2022-08-04 16:34:05 +07:00
ANR2ME
865959d420 Replace the dummy PSN name with Nickname on sceNpInit. 2022-08-04 16:12:31 +07:00
ANR2ME
41de63f13c Moving sceNpMatching2-stuff to sceNp2.cpp/h.
PS: Register_sceNpMatching2 not being added to HLETables because currently the callback didn't work properly yet and could crash the game.
2022-08-04 16:12:29 +07:00
ANR2ME
dcf3ece8f4 Implement NP Signin Dialog (faked signin) 2022-08-04 16:12:25 +07:00
ANR2ME
54300eb017 Updated NP Library
PS: Some of registered modules should probably moved to a separate files (ie. sceNp2.cpp).
2022-08-04 16:12:23 +07:00
ANR2ME
bf98466a78 Added a FunctionWrapper used by sceNpService 2022-08-04 16:12:23 +07:00
Henrik Rydgård
7f0f119cfe Check for color/Z clashes 2022-07-31 10:44:06 +02:00
Henrik Rydgård
861d66a4d4 Separate logging for GetPointer/GetPointerWrite 2022-07-24 13:39:37 +02:00
Henrik Rydgård
e6403d7157 Split GetPointer into two versions, to help with const correctness 2022-07-24 13:26:19 +02:00
Henrik Rydgård
15f5ed81a7 Add a simple compat flag to workaround the Clone Wars issue, #12949
Could probably also be fixed by changing the heuristic a bit, but since
we're in heuristic land anyway and close to a release, I feel this is
the safest option.

Also sneaks in a logspam reduction
2022-07-15 11:44:51 +02:00
LunaMoo
4b959c6b54 Add Zettai Zetsumei Toshi 3 bypass for softlock on character select screen 2022-07-14 23:17:32 +02:00
Henrik Rydgård
d2002eab39
Merge pull request #15640 from LunaMoo/master
Disable ForceMax60FPS for GOW games and replace it with fixed 60 fps
2022-07-10 23:25:35 +02:00
LunaMoo
d67085c4ae Change comment based on new findings. 2022-07-05 04:51:58 +02:00
Unknown W. Brackets
c15c4a6967 UI: Add analog speed limit mapping.
Only shows up as a setting if mapped, to avoid cluttering settings.
2022-07-04 19:14:05 -07:00
LunaMoo
5a06776999 Change hack names and edit comments based on feedback. 2022-07-04 00:58:48 +02:00
LunaMoo
53baa89d3f Improve the vortex hack to make it safe and slow it down 2022-07-03 22:18:44 +02:00
LunaMoo
1da9cd933b Test hack that breaks the vortex timer, it's still wrong 2022-07-03 04:23:26 +02:00
LunaMoo
85fa15179a Add 30 fps version as an option, doesn't suffer from softlock 2022-07-02 21:43:43 +02:00
LunaMoo
0dcf8242f5 Add Fixed60FPShack for GOW, should work smoother than the ForceMax60FPS.
Also more stable than it's CWCheat version, unfortunately because of that,
still causes softlock in GOW:GOS vortex stage.
2022-07-02 19:39:35 +02:00
Henrik Rydgård
26ed3dbdc3
Merge pull request #15627 from zack-huangzihan/main
ffmpeg: fix compile bug
2022-06-25 07:59:04 +02:00
ZiHan Huang
33aeac694d ffmpeg: fix compile bug
Err is generated when USE_FFMPEG is set to OFF, The Camera
module relies on FFMPEG

Signed-off-by: ZiHan Huang <zack.huang@rock-chips.com>
2022-06-24 16:50:56 +08:00
ANR2ME
ea6e5c8f74 Mask some part of public IP in the logs for security reason. 2022-06-23 00:41:41 +07:00
Unknown W. Brackets
925a6d0ae1 GPU: Hook Sol Trigger func to flush texture.
This makes sure the hardware renderer reuploads a texture modified during
stall, which they normally skip as an optimization (see #10967, #9449.)
2022-05-22 11:44:49 -07:00
ANR2ME
a10271dc1d Detects connection establishment to AdhocServer by combining select and getpeername to increase accuracy. 2022-05-18 06:18:16 +07:00
ANR2ME
ff8b5d53f4 We might be missing this in the past. 2022-05-18 06:18:16 +07:00
ANR2ME
d86dc0bff6 Fix sceNetAdhocPtpConnect issue on Windows (ie. Tales of VS) due to getpeername on Windows can return a success when the other side haven't Accepted the connection yet. 2022-05-18 06:18:15 +07:00
ANR2ME
9497c98795 Fix sceNetAdhocPtpConnect issue on non-Windows (ie. Taiko no Tatsujin Portable DX on Linux) due to select can flags an unconnected socket as writeable & readable on Linux. 2022-05-18 06:18:11 +07:00
ANR2ME
1aa56ec942 Added a note regarding SO_NOSIGPIPE 2022-05-18 01:14:01 +07:00
ANR2ME
f3dd1d908b Avoid compilation warning 2022-05-18 01:13:49 +07:00
ANR2ME
ee2a24b19a Avoid a possibility of fatal signal on non-Windows 2022-05-18 01:11:57 +07:00
ANR2ME
799c721fa6 Added a note regarding select on Linux. 2022-05-18 01:11:56 +07:00
Unknown W. Brackets
bbbb154da0 Display: Ignore lagsync when auto frameskip on.
The delays in lag sync will only confuse the frameskipping code,
because it will interpret the intentional delays as need for skipping.

In theory, frameskip could ignore the lag sync time, but it would still
make frameskip far less effective.
2022-05-10 17:06:09 -07:00
ANR2ME
ee3d97a70d Logs unimplemented syscalls as error 2022-04-27 17:03:43 +07:00
ANR2ME
3bb83f03bd Partially fixes SenseMe app (will need HTTP/HTTPS support to be fully working) 2022-04-27 14:28:28 +07:00
Henrik Rydgård
1bbaba4103 Fix some NEON code that had bad compile-time checks (and some didn't compile) 2022-04-15 00:54:44 +02:00
Unknown W. Brackets
4ee9292d23 NetAdhoc: Fix warning. 2022-04-02 16:35:24 -07:00
ANR2ME
1a6c889906 Increase the timeout when the connection to the AdhocServer is already in progress, avoids cutting off the connection if it took longer than expected but almost completed. 2022-03-24 08:34:03 +07:00
ANR2ME
d5152752d2 Added a function to get SO_ERROR on a socket. 2022-03-24 08:34:03 +07:00
ANR2ME
86315fed3d Updated getLocalIp function to detects local IP better. 2022-03-24 08:34:03 +07:00
ANR2ME
65a90a2ec0 Use the most recent posix socket id during blocking simulation, since there is a possibility for the socket id to changes after recreated. 2022-03-24 08:34:03 +07:00
ANR2ME
6b0cb78b3b Recreate the socket before attempting to connect again after ECONNREFUSED/ENETUNREACH error, since reusing the socket only works on Windows. 2022-03-24 08:34:02 +07:00
ANR2ME
267757a5e4 Caches IP-specific Port Offset to avoid recalculating them. 2022-03-24 08:34:02 +07:00
ANR2ME
5e739f32b2 Use reference when possible to avoid copying. 2022-03-24 08:34:02 +07:00
ANR2ME
2b09f81ff8 Initialize some socket-related structs to avoid unexpected behavior. (May fix Unknown Source Port issue) 2022-03-24 08:34:02 +07:00
ANR2ME
9209fb7c6e Shouldn't return as soon as possible when a blocking PtpConnect is getting ECONNREFUSED error, since it should be treated as ETIMEDOUT on non-Windows platform 2022-03-24 08:34:01 +07:00
ANR2ME
155d3e0478 Ignore disconnected error on PtpFlush. Fixes disconnection issue on some games (ie. R-Type Command) 2022-03-24 08:34:01 +07:00
Henrik Rydgård
6b2a31dff5 Add a check to the elf loader, preventing a crash on bad module info addr 2022-03-13 23:36:18 +01:00
Unknown W. Brackets
80e054b797 Debugger: Avoid write tag lookup on small alloc. 2022-02-06 09:28:48 -08:00
Unknown W. Brackets
edcc1a7104 HLE: Fix some type convert warnings.
Almost missed these.
2022-01-30 22:06:54 -08:00
Unknown W. Brackets
2479d52202 Global: Reduce includes of common headers.
In many places, string, map, or Common.h were included but not needed.
2022-01-30 16:35:33 -08:00
Unknown W. Brackets
48b597a1b9 Display: Move core counters/stats to HW file.
This separates things better, so not everything is pulling in HLE.
2022-01-30 11:53:48 -08:00
Unknown W. Brackets
ad2e380987 Display: Move listeners to separate HW file.
Mixing this in with the HLE management funcs was messy.
2022-01-30 09:41:08 -08:00
Unknown W. Brackets
41da6d9f48 Kernel: Adjust timings of LwMutex and EventFlag.
This better matches tests on real firmware.  These funcs are sometimes
often used.  See #15348 - Corpse Party.
2022-01-29 23:19:53 -08:00
Henrik Rydgård
99cfff3ac6
Merge pull request #15355 from unknownbrackets/mp3
Add some Mp3 fixes from a bit ago, pass several mp3 tests
2022-01-27 15:12:06 +01:00
Unknown W. Brackets
864d0200fb Mp3: Delay low level init. 2022-01-27 00:24:10 -08:00
Unknown W. Brackets
914d022eef Mp3: Allow decode with NULL out pointer. 2022-01-27 00:22:44 -08:00
Unknown W. Brackets
4903e14aae Mp3: Cleanup AuCtx constructor. 2022-01-27 00:22:43 -08:00
Unknown W. Brackets
9d1be08473 Kernel: Fail threads with invalid priority.
No real reports so far except what looks like garbage data, which
probably crashes anyway.
2022-01-27 00:02:18 -08:00
Unknown W. Brackets
9e688eaa7c Rtc: Fix day of week stack bounds issue.
Also, add a couple other tests showing as passing now.
2022-01-26 00:43:05 -08:00
Unknown W. Brackets
f1254b1976 Ge: Fix sceGeBreak error case.
Seems to be some compiler optimization.
2022-01-25 19:50:35 -08:00
Unknown W. Brackets
b4eab72015 Common: Fix conversion of 4444 to BGRA.
This was affecting tests emitting screenshots in 4444 as well as Direct3D
backends.
2022-01-23 19:22:32 -08:00
Unknown W. Brackets
36217e813c Build: Fix some minor warnings.
Just to get more warning clean.
2022-01-22 10:46:21 -08:00
ANR2ME
fbb1246cfd Reducing MatchingEvents processing delays. Fixes timing issue on a few games (Super Pocket Tennis, Thrillville Off the Rails, Lord of Arcana, Gundam: Senjou No Kizuna Portable, StarWars The Force Unleashed) 2022-01-20 03:16:25 +07:00
ANR2ME
bfd532561a Report sceNetAdhocMatchingInit to find out a list of games that use AdhocMatching library to be tested with. 2022-01-20 03:00:23 +07:00
ANR2ME
71f08a3db8 Discard HELLO Events when in the middle of Joining 2022-01-20 03:00:23 +07:00
ANR2ME
0755dc0bbd Updated notifyMatchingHandler comments 2022-01-20 03:00:23 +07:00
ANR2ME
03b6d1ed01 Updated MatchingArgs comment 2022-01-20 03:00:23 +07:00
ANR2ME
a1accc87d4 Added comment related to EVENT_HELLO 2022-01-20 03:00:22 +07:00
ANR2ME
d5036ff2ae Fix buffer overflow issue on GameMode. 2022-01-13 16:13:53 +07:00
ANR2ME
4b6431f7fe GameMode Scheduler should only runs when there are active Master. 2022-01-13 15:35:16 +07:00
ANR2ME
2d5699d62b Prevent creating another GameMode Master, since we don't support more than one Master data, and there is no ID related to Master. 2022-01-13 14:06:51 +07:00
ANR2ME
73dff0566e Fix an issue where more than one GameMode Scheduler can be scheduled. 2022-01-13 14:02:33 +07:00
ANR2ME
4d0c7385ec Fix an issue where sceNetAdhocGameModeCreateReplica blocked current thread for initial sync while Master data hasn't been created yet. 2022-01-13 13:03:58 +07:00
ANR2ME
9efdaf9ba7 Updated sceNetAdhocGameModeUpdateReplica (Fix Bomberman Panic Bomber) 2022-01-13 10:51:43 +07:00
ANR2ME
2bd79838bf Fix invalid argument issue of sceNetAdhocPtpAccept on Bomberman Panic Bomber. 2022-01-13 10:36:11 +07:00
Unknown W. Brackets
db2eddcf27 Debugger: Remove double debug window updates.
Core_EnableStepping() is already marking the debug windows for update,
there's no need to call SetDebugMode() again.
2021-12-12 11:24:03 -08:00
Unknown W. Brackets
63e623ecb2 Build: Fix some format truncation warnings.
Generally all should be safe already, but better to be sure.
2021-12-11 10:45:27 -08:00
Henrik Rydgård
dbfa4e6830
Merge pull request #15213 from ANR2ME/adhoc
[Adhoc] Updated PdpCreate, PdpSend, PdpRecv, GetPdpStat, GetPtpStat
2021-12-08 21:38:23 +01:00
ANR2ME
69ec6b1972 Fix Tekken 5 Dark Resurrection Multiplayer 2021-12-08 12:00:59 +07:00
ANR2ME
26fd74edd4 Updated GetPtpStat 2021-12-08 08:50:14 +07:00
ANR2ME
004ecc008e Updated GetPdpStat 2021-12-08 08:50:11 +07:00
ANR2ME
3b8eb6b04e Added a note regarding FIONREAD behavior on different platforms. 2021-12-08 08:49:35 +07:00
ANR2ME
f1e4b41f12 Discard PDP packets from an IP that can't be resolved to Player's MAC address (simple version) to prevent confusing the game, since the source MAC won't be updated and may contains invalid MAC.
Added TODO to handle unresolvable packets properly.
2021-12-08 08:46:45 +07:00
ANR2ME
6d1a069248 Added another returned error code on PdpCreate 2021-12-08 08:45:46 +07:00
ANR2ME
79d31d4b85 Allow Sending PDP to non-existing MAC address (except invalid mac address). Fixes an issue on NBA Ballers Rebound where players unable to enter Multiplayer Menu again after getting connection issue. 2021-12-08 08:45:45 +07:00
Unknown W. Brackets
b332d0411e Psmf: Check for invalid stream/EP map entry counts. 2021-12-02 19:04:48 -08:00
Unknown W. Brackets
b8ab7f39df jit: Lock around changes to the jit pointer. 2021-11-28 10:04:22 -08:00
Unknown W. Brackets
dc843c258d Display: Prevent lock around listener calls.
Fixes #15123, crash in Bleach: Soul Carnival 2.
2021-11-10 19:30:25 -08:00
Unknown W. Brackets
b592e918b6 Headless: Indicate HAS_DISPLAY=0.
This will make tests run as they do on a PSP, with display, outside
headless.
2021-11-03 17:41:07 -07:00
Unknown W. Brackets
2bd13c5d9d Debugger: Track reason for entering stepping. 2021-10-23 16:56:15 -07:00
Vitaly Cheptsov
5600ac0161
Adhoc: Drop useless pointer check
Fixes compiler warning (-Wpointer-bool-conversion)
2021-10-20 12:08:29 +03:00
Unknown W. Brackets
1532a729d7 Core: Allow forcing debug statistics collection.
Useful for remote debugging.
2021-10-19 10:01:41 -07:00
Unknown W. Brackets
a06efdd222 Display: Allow threadsafe listeners.
Also add a flip listener.
2021-10-19 10:01:40 -07:00
Henrik Rydgård
236d029999
Merge pull request #14857 from unknownbrackets/unthrottle-cleanup
Display: Remove frameskip fast-forward mode
2021-10-19 10:13:08 +02:00
Henrik Rydgård
d278cda7e2
Merge branch 'master' into config-io-thread 2021-10-19 09:42:53 +02:00
Unknown W. Brackets
cc7366e63c HLE: Add a few syscall names. 2021-10-18 06:50:18 -07:00
Unknown W. Brackets
25da99a16d Io: Remove setting to disable I/O on thread. 2021-10-12 20:40:26 -07:00
Unknown W. Brackets
e1d261b707 Display: Remove frameskip fast-forward mode.
Fixes #13546.
2021-10-12 20:38:57 -07:00
AdamN
1956624972
Merge pull request #14969 from ANR2ME/adhoc
[Adhoc] Workaround for a more cross-platform behavior on PtpConnect (but inaccurate)
2021-10-06 22:33:12 +07:00
Henrik Rydgård
7dde8ef9f3
Merge pull request #14950 from ANR2ME/adhoc_discover
[AdhocDiscover] An attempt to implement AdhocDiscover
2021-10-05 18:52:42 +02:00
ANR2ME
c34efa3e3e Workaround to prevent some games from not retrying to connect on non-Windows system. This will also make a more cross-platform behavior on Windows/Linux/BSD 2021-10-05 23:10:40 +07:00
ANR2ME
00a0885509 Minor changes 2021-10-05 23:10:40 +07:00
Unknown W. Brackets
4c0951eb93 Display: Avoid skipping flips at 60 FPS.
If the device is 58 or 59 FPS, let's just assume it's better to flip each
time.
2021-10-03 07:04:04 -07:00
ANR2ME
ed7f1b72e2 An attempt to implement AdhocDiscover (can only Cancel the progress for now) 2021-10-01 12:13:03 +07:00
ANR2ME
5b010afff3 oops need to typecast metasocket 2021-09-28 20:44:03 +07:00
ANR2ME
9a714249a6 Changing most frequently used global vars to atomic to avoid possible multi-threading issue on friendFinder thread which communicates with AdhocServer in background.
PS: There are more global vars being used here (too many actually), so we should find a better approach in the future (ie. using PSPThread instead).
2021-09-28 20:44:03 +07:00
ANR2ME
6a79f59c06 Fix threading issue when exiting PPSSPP due to unjoined AdhocServer thread when AdhocServer failed to bind the socket and exited the thread early. 2021-09-28 20:44:03 +07:00
ANR2ME
1fd54153fc Prevent some games (ie. DBZ SB2) from repeatedly trying to Disconnect Adhocctl when not connected to AdhocServer. 2021-09-28 20:44:03 +07:00
ANR2ME
4741357bef Fix possible race condition issue when sending AdhocMatching data 2021-09-23 12:51:12 +07:00
ANR2ME
73b2070821 Temporary fix to avoid a crash that happened due to trying to logs a syscall's argument when being Logged from another thread (AdhocMatchingInput thread) 2021-09-23 12:51:09 +07:00
ANR2ME
15d3e69c4c Fix possible crash issue 2021-09-23 12:22:57 +07:00
Henrik Rydgård
b8ea95bec1
Merge pull request #14904 from ANR2ME/adhoc
[Adhoc] Do not resolve Pro Adhoc Server address when WLAN is turned off
2021-09-21 13:46:12 +02:00
ANR2ME
4e8a9fda63 Do not resolve Pro Adhoc Server address when WLAN is turned off 2021-09-21 17:12:01 +07:00
ANR2ME
ee7383193b Fix race condition issue on AdhocMatching 2021-09-21 15:32:41 +07:00
Henrik Rydgård
7f021624e3
Merge pull request #14883 from unknownbrackets/texcache
In lazy hashing mode, assume videos never match
2021-09-19 19:46:44 +02:00
Unknown W. Brackets
ec3d408da0 HLE: Detect video buffer copies.
These are common and can help us notify the texture cache appropriately.
2021-09-19 07:51:33 -07:00
ANR2ME
2bda9c1c84 Keep tracks of the sender/source port on GameMode for further communication, in case it was remapped by router or ISP for some reason. 2021-09-19 10:55:03 +07:00
ANR2ME
ef279657dc Shows a warning when detecting a different sender/source port on GameMode. 2021-09-19 10:54:59 +07:00
ANR2ME
62a7ea2f41 Minor change to AdhocMatching's senderport type 2021-09-19 10:35:19 +07:00
ANR2ME
2305de42f0 Keeping track the source port of received data on AdhocMatching to be used for further communication, in the case the port was re-mapped for some reason. 2021-09-17 12:36:56 +07:00
ANR2ME
a95678ae49 Show a warning if other players detected to have their port being re-mapped, where communication with them might have an issue. 2021-09-17 12:36:56 +07:00
ANR2ME
2bb5453dc6 Don't ignores unknown sender/source port, due to a possibility of port re-mapping done by router or ISP the source port might be different. 2021-09-17 12:36:56 +07:00
ANR2ME
fa92cda23d Minor change to AdhocMatching logging 2021-09-17 12:36:56 +07:00
Henrik Rydgård
e6a2da69c5
Merge pull request #14867 from unknownbrackets/savedata-volatile
Dialog: Allow termination of access thread at return
2021-09-16 18:38:28 +02:00
Unknown W. Brackets
24f1dcec98 Dialog: Allow termination of access thread at ret.
Sometimes the thread is just sitting at return, but hasn't stopped quite
yet.  Allow deleting the thread in this case without modifying volatile
lock status.
2021-09-16 08:57:20 -07:00
Henrik Rydgård
2229bea92a
Merge pull request #14865 from unknownbrackets/savedata-volatile
Dialog: Try to recover on double init, report
2021-09-16 08:46:41 +02:00
Unknown W. Brackets
570d84fb86 Dialog: Try to recover on double init, report.
This shouldn't be happening, but is - see #14864.
Let's report the situation and try to avoid a complete crash.
2021-09-15 21:06:12 -07:00
Henrik Rydgård
9f404ad901
Merge pull request #14856 from unknownbrackets/unthrottle
Vulkan: Skip flips, not draw, for vsync fast-forward
2021-09-15 18:55:33 +02:00
Henrik Rydgård
6d599e738b
Merge pull request #14855 from unknownbrackets/ui-chat-view
Decouple chat presentation and tracking
2021-09-15 09:15:28 +02:00
Unknown W. Brackets
9024c7111b Vulkan: Fix faster alt speed with vsync. 2021-09-14 22:53:54 -07:00
Unknown W. Brackets
46770aba3a Vulkan: Skip flips, not draw, for vsync unthrottle. 2021-09-14 22:35:32 -07:00
Unknown W. Brackets
c79bb6ba71 Net: Fix various chat threading hazards. 2021-09-14 18:08:17 -07:00
Unknown W. Brackets
9403947b67 UI: Decouple new chat display and tracking logic. 2021-09-14 18:08:16 -07:00
Unknown W. Brackets
be0b0cd88d UI: Track chat log changes more clearly.
This also makes it easier to have multiple views or etc. reading from it.
We want data flowing a single direction, chat system -> UI.
2021-09-14 18:08:16 -07:00
ANR2ME
704d1f94a6 Fix freezing issue during GameMode initialization on some games (ie. Hammerin' Hero) 2021-09-15 01:13:39 +07:00
ANR2ME
e3088e5f96 Fix Socket error 10014 on Windows when hosting a game of Vulcanus Seek and Destroy 2021-09-14 05:58:49 +07:00
Unknown W. Brackets
10ffdc9f54 Font: Cleanup logging for invalid pointers.
Also fixes some duplicate logging and includes return code/error code.
2021-09-13 08:29:45 -07:00
Unknown W. Brackets
3ac669f80b Core: Fix some minor gcc warnings. 2021-09-13 08:13:14 -07:00
Henrik Rydgård
07413aa4e3 Feedback 2021-09-11 18:53:46 +02:00
Henrik Rydgård
f7895457ee Add back the dir listing logging. Add hack to avoid confusing Wipeout :( 2021-09-11 18:12:30 +02:00
Henrik Rydgård
09f65db91c Cleanup 2021-09-11 15:35:11 +02:00
Henrik Rydgård
b075b79175 Also hide SHADERS directory from games 2021-09-11 15:14:44 +02:00
Henrik Rydgård
1f81876ab1 Cleanup 2021-09-11 15:04:53 +02:00
Henrik Rydgård
04578edf65 Hide directories games should not know about from them.
Stops some games from spending lots of time iterating over files they
should not care about. Helps the performance issues in #13847 quite a bit.
2021-09-11 15:02:52 +02:00
Unknown W. Brackets
82087ccbb7 Common: Reduce some log levels.
Take off a few messages during startup and shutdown.
2021-08-28 09:14:53 -07:00
Henrik Rydgård
a7859cfd2a Fix some comments and a string 2021-08-18 09:28:17 +02:00
Henrik Rydgård
928bc88b01 Rename Unthrottle to Fast-forward globally 2021-08-18 09:28:13 +02:00
Henrik Rydgård
ed3201a27f
Merge pull request #14730 from unknownbrackets/savedata-shutdown
Dialog: Prevent reschedule on shutdown start
2021-08-15 10:04:34 +02:00
Unknown W. Brackets
04828e886b Dialog: Lock volatile when the access thread runs.
Further tests show that this should be locked first thing before the
delays, it just depends on the thread priorities involved.
2021-08-14 20:55:10 -07:00
Unknown W. Brackets
5d17ec70ce Ge: Add measured minimal timing for sceGeDrawSync. 2021-08-14 20:18:52 -07:00
Unknown W. Brackets
6f9f9f5f2a HLE: Ignore flip time in syscall stats.
Don't want to count flip timing as the slowest thing, when it happens
inside sceDisplaySetFramebuf (immediate.)
2021-08-14 20:18:06 -07:00
Unknown W. Brackets
f530be0969 Dialog: Prevent reschedule on shutdown start.
This is a bit strange, but tests seem to suggest this is correct.
A worse priority thread won't run before savedata shutdown hits 0, but the
thread that initiated shutdown runs before shutdown completes.

Fixes Freakout Extreme Freeride loading savedata.
2021-08-14 20:15:34 -07:00
Unknown W. Brackets
aecb138f90 Dialog: Avoid crash with hacked dialog start.
See #14727.  If a dialog shutdown is in progress and we incorrectly allow
a startup at that time, it breaks other things.  This tries to at least
work around that.
2021-08-14 07:46:38 -07:00
Unknown W. Brackets
9882f2854a Font: Match stingy selection per test. 2021-08-07 17:55:21 -07:00
Unknown W. Brackets
0772557a49 Font: Limit max references to fonts.
This seems to match the font/open test behavior.
2021-08-07 17:55:21 -07:00
Unknown W. Brackets
cb5954c9e3 Font: Delay only on first open of internal font. 2021-08-07 17:55:21 -07:00
Unknown W. Brackets
323d06bbc2 Font: Reuse alloc when reopening internal fonts.
As shown in the font/open test.
2021-08-07 17:55:21 -07:00
Henrik Rydgård
2d88ae5112 Delete some left-behind lines 2021-08-04 23:22:43 +02:00
Henrik Rydgård
3be1ff6ce4 Get the new setup flow going, with a confirmation dialog etc.
Moving the folder while already installed still crashes.
2021-08-04 23:22:43 +02:00
Sean McGovern
6f346e5d76 sceNetAdhoc: fix format specifier for debug log 2021-08-01 13:15:39 -04:00
Henrik Rydgård
f53eb4ae0d Fix silly filesystem mounting bug introduced in #14638
Fixes #14650.
2021-07-27 22:55:02 +02:00
iota97
4205ce7c42 Trim username on join as well 2021-07-26 21:11:21 +02:00
Henrik Rydgård
8ab627d6e9 Workaround for the /PSP path thing. Needs testing. 2021-07-25 17:32:12 +02:00
Henrik Rydgård
9ae00b80b1 Cleanup the ownership model in MetaFileSystem.
The old one was error-prone spaghetti.
2021-07-24 10:31:15 +02:00
Henrik Rydgård
b0558b2174 Assorted directory fixes 2021-07-19 17:34:50 +02:00
Henrik Rydgård
5859596b95 Make the "Running Slow" warning a bit more lenient.
Might help #12024, or at least the annoying unnecessary warning.

Our audio mixer is able to cover for 97% speed by stretching the sound
anyway, so I think there's not much point in a visually loud warning
until it drops below that.
2021-07-11 11:09:05 +02:00
Henrik Rydgård
95dc7bb185 Minor cleanup 2021-07-10 20:00:50 +02:00
Henrik Rydgård
cd8cfcfcd7 Merge __CtrlSetAnalogX/Y into one function. Always called together. 2021-07-09 10:41:26 +02:00
ANR2ME
e059bc980c Updated Logs on sceNetAdhocDiscover to find more info on games that use AdhocDiscover. 2021-06-25 12:22:49 +07:00
ANR2ME
a7752997e1 Minor changes to Wrapped Port detection. 2021-06-21 18:28:37 +07:00
ANR2ME
4251f821dc Making sure not to get random port when original port is not zero. 2021-06-21 18:28:37 +07:00
ANR2ME
fda4744af3 Show the returned error code on sceNetAdhocctlCreate/Connect/Join on Debug Log 2021-06-21 18:28:37 +07:00
Henrik Rydgård
73871b9b7e Implement new thread manager, port stuff to it. 2021-06-12 13:03:53 +02:00
ANR2ME
eda0e3e250 Reducing HLE delays on Adhoc-related syscalls that can be called more than once on a single frame. 2021-06-07 12:01:25 +07:00
ANR2ME
2d71ac9a7f Reducing HLE delays on socket-related syscalls since we are using real network which already have it's own overhead. 2021-06-07 11:59:51 +07:00
ANR2ME
dada18573a Minor changes to Adhoc's Verbose Logs returning error code. 2021-06-07 11:06:28 +07:00
Unknown W. Brackets
9324a1c20b Io: Don't confuse kernel object with meta handle.
Make sure we never try to close an unrelated open file when destroying an
async open temporary file node.
2021-06-06 09:58:46 -07:00
Unknown W. Brackets
294f78dec9 Io: Allow opening tty0: for output. 2021-06-06 09:56:41 -07:00
ANR2ME
7a06103cc6 Create GameMode's socket after Master and all Replicas have been created so we will know the largest buffer size. 2021-05-31 04:37:09 +07:00
ANR2ME
8dcfed0385 Show Port Offset value too when detecting Data coming from incorrect port. 2021-05-16 13:16:20 +07:00
ANR2ME
d5177e33b9 Fix possible crash issue on blocking socket implementation. 2021-05-16 12:55:55 +07:00
Unknown W. Brackets
d376e67f87 Common: Cleanup some Path constructions. 2021-05-14 22:48:04 -07:00
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