sharpemu/src/SharpEmu.Libs
José Luis Caravaca Carretero de13735972
[CommonDialog] Fix dialog state machine and add MsgDialog progress-bar exports (#163)
Rework the sceMsgDialog and sceSaveDataDialog HLE state machines so the full
Initialize -> Open -> poll -> GetResult -> Close/Terminate lifecycle honors the
common-dialog contract, and add the three missing sceMsgDialogProgressBar* exports.

- Fix an unreachable close path: sceSaveDataDialogClose already did a
  RUNNING -> FINISHED compare-exchange, but Open jumped straight to FINISHED, so
  RUNNING never existed and Close could only return NOT_RUNNING. Open now enters
  RUNNING and the first status poll advances it to FINISHED. Same model applied to
  sceMsgDialog.
- Return the real SCE_COMMON_DIALOG_ERROR_* codes (0x80B8xxxx) from sceMsgDialog*
  instead of emulator-internal result codes, with the missing argument/state guards
  (ARG_NULL, NOT_INITIALIZED, BUSY, NOT_FINISHED, NOT_RUNNING).
- GetResult reports buttonId = 1 (affirmative) instead of 0, the invalid sentinel a
  yes/no prompt could mis-branch on.
- Add sceMsgDialogProgressBarSetValue, sceMsgDialogProgressBarInc and
  sceMsgDialogProgressBarSetMsg (NIDs wTpfglkmv34, Gc5k1qcK4fs, 6H-71OdrpXM), gated
  on the service being initialized.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-15 01:33:48 +03:00
..
Agc Performance Improvements and Optimization Tweaks (#156) 2026-07-14 20:22:52 +03:00
Ajm Agent/fix gen5 thread agc compat (#130) 2026-07-14 14:41:42 +03:00
Ampr fix(vfs): harden getdirentries and APR filepath resolution (#77) 2026-07-13 12:10:20 +03:00
AppContent [fixes] move repeating methods into CpuContext (#41) 2026-07-10 23:46:50 +03:00
Audio Fix guest shutdown when VideoOut window is closed (#184) 2026-07-15 00:52:01 +03:00
AvPlayer [AGC] Quake rendering progress: WAIT_REG_MEM, draw fixes, VideoOut, and HLE improvements (#68) 2026-07-12 00:22:48 +03:00
CommonDialog [CommonDialog] Fix dialog state machine and add MsgDialog progress-bar exports (#163) 2026-07-15 01:33:48 +03:00
DiscMap Libs: add libSceDiscMap HLE exports (ported from Kyty) (#79) 2026-07-12 18:24:11 +03:00
Fiber [fixes] move repeating methods into CpuContext (#41) 2026-07-10 23:46:50 +03:00
GameUpdate [hle] Add missing service exports 2026-06-21 23:18:55 +03:00
Ime Fix UnmanagedCallersOnly boot crash & Core Engine Improvements (CPU, HLE, AGC) (#81) 2026-07-12 18:04:12 +03:00
Json Align SysAbi export names with Aerolib NID catalog (#137) 2026-07-14 17:10:57 +03:00
Kernel Performance Improvements and Optimization Tweaks (#156) 2026-07-14 20:22:52 +03:00
Mouse Fix UnmanagedCallersOnly boot crash & Core Engine Improvements (CPU, HLE, AGC) (#81) 2026-07-12 18:04:12 +03:00
Network Expand Aerolib from nids.csv and wire socket/net kernel NID handlers (#128) 2026-07-14 12:59:59 +03:00
Ngs2 Performance Improvements and Optimization Tweaks (#156) 2026-07-14 20:22:52 +03:00
Np Add SysAbi ExportName name2nid check script (#152) 2026-07-15 01:29:23 +03:00
NpGameIntent [hle] Add missing service exports 2026-06-21 23:18:55 +03:00
Pad Performance Improvements and Optimization Tweaks (#156) 2026-07-14 20:22:52 +03:00
PlayGo Agent/fix gen5 thread agc compat (#130) 2026-07-14 14:41:42 +03:00
Rtc [RTC] Port core rtc helpers from PS5 3.20 libs (#105) 2026-07-13 18:51:48 +03:00
SaveData [CommonDialog] Fix dialog state machine and add MsgDialog progress-bar exports (#163) 2026-07-15 01:33:48 +03:00
Share [fixes] move repeating methods into CpuContext (#41) 2026-07-10 23:46:50 +03:00
SystemGesture Fix UnmanagedCallersOnly boot crash & Core Engine Improvements (CPU, HLE, AGC) (#81) 2026-07-12 18:04:12 +03:00
SystemService [AGC] Quake rendering progress: WAIT_REG_MEM, draw fixes, VideoOut, and HLE improvements (#68) 2026-07-12 00:22:48 +03:00
Ult Fix UnmanagedCallersOnly boot crash & Core Engine Improvements (CPU, HLE, AGC) (#81) 2026-07-12 18:04:12 +03:00
UserService Agent/fix gen5 thread agc compat (#130) 2026-07-14 14:41:42 +03:00
VideoOut Fix guest shutdown when VideoOut window is closed (#184) 2026-07-15 00:52:01 +03:00
Voice Agent/fix gen5 thread agc compat (#130) 2026-07-14 14:41:42 +03:00
CxxAbiExports.cs [AGC] Quake rendering progress: WAIT_REG_MEM, draw fixes, VideoOut, and HLE improvements (#68) 2026-07-12 00:22:48 +03:00
HostTimerResolution.cs Agent/fix gen5 thread agc compat (#130) 2026-07-14 14:41:42 +03:00
LibcInternalExports.cs Align SysAbi export names with Aerolib NID catalog (#137) 2026-07-14 17:10:57 +03:00
LibcStdioExports.cs [emulator] Improve emulator performance by optimizing memory access and reducing unnecessary overhead in kernel and CPU execution paths (#131) 2026-07-14 14:28:44 +03:00
SharpEmu.Libs.csproj [fixes] stackalloc warnings, consolidate duplicated methods, minor adjustments in project settings (#39) 2026-07-10 20:57:46 +03:00
packages.lock.json [logging] Migrate HLE diagnostics to SharpEmuLog (#80) 2026-07-13 12:11:27 +03:00