Commit graph

188 commits

Author SHA1 Message Date
Henrik Rydgård
78f3d450ff Eat some CPU cycles in sceUtilityOskUpdate. Works around timing bug in Ghost Recon Predator.
The bug is in the game, it uses the wrong vblank wait, but it only works
because the dialog processing takes so much time that it misses the
vblank period anyway.

Fixes #12044, and hopefully won't break anything else.
2023-02-14 20:14:49 +01:00
Henrik Rydgård
e1a48d74c4 A bit more GetPointer cleanup.
Probably not worth it for performance reasons, but some semantic cleanup
is good, especially the accidental GetPointer -> writable casts without
using GetPointerWrite.

Using Unchecked on already checked pointers, or when we'd crash anyway
if it returned nullptr, is good for clarity.
2023-01-10 12:13:47 +01:00
Unknown W. Brackets
ef04c4f55c Utility: Report YugiohSaveFix usage. 2022-12-19 07:56:23 -08:00
Henrik Rydgård
21647cd3c1 Blind workaround for Shining Ark circle button problem
Seems the game might not handle the case of confirm button being set to
cross properly, so force it to circle if this game is running.

Fixes #15663 (hopefully..)
2022-11-27 23:32:43 +01:00
Henrik Rydgård
9482578fbb Twinbee Portable: Add config flag to avoid the system languages the game doesn't work with 2022-11-13 23:37:56 +01:00
Unknown W. Brackets
7f87cd077a Jpeg: Play it safe with load/unload handling. 2022-10-07 00:24:19 -07:00
Unknown W. Brackets
f0afc97247 Gamedata: Cleanup install request args/validate. 2022-09-18 20:39:13 -07:00
ANR2ME
dcf3ece8f4 Implement NP Signin Dialog (faked signin) 2022-08-04 16:12:25 +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
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
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
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
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
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
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
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
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
88fe2e9863 Dialog: Use dialog type header more consistently. 2021-02-27 13:43:12 -08: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
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
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
226a8be1cc Minor refactor in sceUtility.cpp, making future changes easier. 2020-12-13 19:55:37 +01:00
Henrik Rydgård
9e41fafd0d Move math and some file and data conversion files out from native to Common.
Buildfixing

Move some file util files

Buildfix

Move KeyMap.cpp/h to Core where they belong better.

libretro buildfix attempt

Move ini_file

More buildfixes
2020-10-04 09:12:46 +02:00
ANR2ME
20ad57a511 Fixed return value when using Automatic Wlan Channel. Fixes Ridge Racer 2 and Warriors Orochi 2 2020-09-08 10:33:20 +07:00
Unknown W. Brackets
b8342fb8ec SaveState: Rename ChunkFile files to Serialize.
Makes more sense and less weird than ChunkFileDoMap, etc.
2020-08-10 08:04:05 +00:00
Unknown W. Brackets
1dc5ee424b SaveState: Split out Do types to reduce headers. 2020-08-10 08:03:44 +00:00
Unknown W. Brackets
4b4e3432cd SaveState: Split Do() into a separate header. 2020-08-10 08:03:41 +00:00
Unknown W. Brackets
500107a540 Savedata: Correct AM/PM and time/date settings.
The defaults and exposed system param values were out of sync.
2020-07-14 18:59:23 -07:00
Unknown W. Brackets
aca68d711b Net: Stub network sign-in dialog.
Without this, games hang.  Now they act like you canceled.
2020-03-15 13:05:33 -07:00
Unknown W. Brackets
97bc0a5245 Net: Support NETCONF_CONNECT_APNET_LAST request.
Also cleanup the dialog to handle timing like other dialogs.  May fix
issues where it lingers "open" and prevents other dialogs from working.
2020-03-15 12:23:22 -07:00
Henrik Rydgård
86c781e434 Hack around most of the problems with the save/load dialog. Software stretch gets enabled in non-wide mode, so wallpapers work at a cost of speed. 2019-10-27 20:55:32 +01:00
sum2012
b82b42fab0 Use compat setting instead 2018-11-27 22:45:51 +08:00
sum2012
ee34a73e80 yugioh save fix tool 2018-11-26 21:34:00 +08:00
Henrik Rydgård
c17f5f1a13 Fix get/set confusion 2017-06-06 19:07:11 +02:00
sum2012
0081f5775e Format fix 2017-06-06 19:05:59 +02:00
sum2012
e5001a115f Implemented sceUtilityGetSystemParamInt 2017-06-06 19:05:59 +02:00
Unknown W. Brackets
ee664fdc25 Utility: Only require avcodec for mp4.
Test was ambiguous - testing more carefully only 300 is required.  Not
sure how I got this wrong before since only 300 was required for the
others...

Should help #8926.
2016-08-27 10:15:35 -07: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
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
Unknown W. Brackets
cb99c9fc4a Prevent a warning when loading some utility mods. 2015-10-18 12:53:18 -07:00
sum2012
5f7cbc9603 Crash fix by @hrydgard 2015-10-09 20:10:57 +08:00