Commit Graph
19 Commits
Author SHA1 Message Date
XairRrR 3838ec51d8 fix(libSceMsgDialog.native): keep a terminated dialog terminated during Open
sceMsgDialogOpen read g_status once at entry and then stored RUNNING or
FINISHED unconditionally. A sceMsgDialogTerminate running on another
thread between those two points was overwritten, so the library looked
initialized, the next Initialize failed with ALREADY_INITIALIZED, and the
modal dialog could stay Showing with no live library behind it.

Open now stores its target status with a compare-exchange loop. If the
status became 0, Terminate won: Open clears g_presented, resets the
MsgDialog modal session it opened, and returns NOT_INITIALIZED.

AI-assisted: yes
2026-11-03 20:26:49 +01:00
pushkarreddyy 63ed3bc22c fix(libSceMsgDialog): return ARG_NULL from sceMsgDialogGetResult for unwritable pointers 2026-11-02 22:17:12 +05:30
MarcZX10 5d3eb10c50 fix(libSceMsgDialog.native): act only on the dialog this library opened
The dialog request carries the message dialog owner id, and the status poll,
close, open and terminate pass it, so terminating libSceMsgDialog.native no
longer resets or finishes a dialog another library is showing.
2026-10-29 14:06:18 +00:00
MarcZX10 e5b2014676 fix(libSceMsgDialog.native): close the shown dialog when the title opens another
sceMsgDialogOpen replaces the previous dialog of the module. A dialog that was
still waiting for an answer is now closed in the session first, so the new
dialog is shown instead of being refused and the old one does not stay on
screen holding the input.
2026-10-29 14:06:13 +00:00
MarcZX10 5db553b939 feat(libSceMsgDialog.native): show user message dialogs in the overlay
sceMsgDialogOpen builds a modal dialog request from the user message and, when
the session accepts it, leaves the dialog running until the player answers it
or the title closes it. Every other dialog, and any dialog opened with no
presenter, still finishes at sceMsgDialogOpen with button 1.
2026-10-29 14:06:13 +00:00
MarcZX10 b004e8cab3 feat(libSceMsgDialog.native): close and reset the dialog session with the dialog
sceMsgDialogClose of a presented dialog that is still waiting closes the
session, so the overlay and its input capture go away, and sceMsgDialogTerminate
resets it. No dialog is presented yet.
2026-10-29 14:06:13 +00:00
MarcZX10 221fb97f84 feat(libSceMsgDialog.native): return the button the player chose
sceMsgDialogGetResult reports the button id remembered from the session's answer
instead of always answering OK. The id is still 1 for every dialog that was not
presented and for one the title closed.
2026-10-29 14:06:13 +00:00
MarcZX10 f670c47b73 feat(libSceMsgDialog.native): finish a presented dialog when the player answers it
The status calls and sceMsgDialogGetResult now ask the modal dialog session when
a dialog is marked as presented: it stays running until the session reports an
answer, a close or a reset, then finishes and remembers the answered button id.
Nothing marks a dialog as presented yet, so every dialog still finishes at
sceMsgDialogOpen.
2026-10-29 14:06:13 +00:00
boykopovar a448723103 fix(sdk): remove duplicate message dialog result export 2026-10-24 23:17:48 +03:00
boykopovar f38d29fd08 refactor(sdk): add canonical headers for remaining libraries 2026-10-24 23:17:42 +03:00
Nithishvelan M cb5b3e22a2 fix(libSceMsgDialog.native): return error codes instead of throwing in initialize and terminate 2026-10-15 18:28:04 +05:30
Kikoarl 9edc22a4a9 feat(libSceMsgDialog.native): implement sceMsgDialogGetStatus 2026-10-06 21:56:43 +02:00
MerijnandClaude Opus 5.5 6ffc81a969 feat(msgdialog): add progress bar calls to libSceMsgDialog.native
PPSA12544's Unity plugins (CommonDialog, PSN) import
sceMsgDialogProgressBarInc, sceMsgDialogProgressBarSetMsg and
sceMsgDialogProgressBarSetValue from libSceMsgDialog.native, which did
not export them. As in libSceMsgDialog, they succeed while a dialog is
running and return COMMON_DIALOG_ERROR_NOT_RUNNING otherwise; the native
dialog finishes in sceMsgDialogOpen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 23:15:28 +02:00
Celegans12andClaude Opus 5.5 09218ee68a feat(msgdialog): implement sceMsgDialogClose in libSceMsgDialog.native
A title that loads libSceMsgDialog.native without libSceMsgDialog
imports sceMsgDialogClose from it, so without the export it stops at
startup on an unresolved import.

Close turns a running dialog into a finished one and returns
NOT_RUNNING in every other state, as libSceMsgDialog's Close does.
The module keeps its own dialog status, so it cannot reuse that
export. Open in this module finishes the dialog at once, so Close
after Open returns NOT_RUNNING and leaves the result unchanged.

The module is now listed under silent stubs in TechnicalDebt, and a
CMakeLists.txt registers the guest_msg_dialog_native test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 17:51:38 +02:00
Pouare514 1c724c0228 feat(libs): Cyberpunk 2077 loading support (REDGalaxy + stubs)
# Conflicts:
#	core/libs/prx/libSceContentExport/Export.cpp
#	core/libs/prx/libScePlayGoDialog/Export.cpp
2026-10-02 23:14:04 +03:00
MichonandClaude Opus 5.5 04691c0797 feat(libs): offline services GTA V reaches in Story Mode
Sign-in, web browser and player dialogs finish cancelled; the message dialog finishes at once;
NpAuth, entitlement consumption, reachability, account age and the NpUtility bandwidth test
report signed out; sceKernelMtypeprotect changes the protection (the memory type has no host
equivalent); the APR ForEach resolvers resolve every path and report each failure in its own
result entry. vswprintf's stub is dropped in favor of the existing wide-formatter
implementation, which already covers it on every platform.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-01 23:21:54 +02:00
STL1teandClaude Opus 5.5 6b36c050fe style: drop the branch's code comments per CONVENTIONS.md
Only the lines this branch added lose their comments; the commits before
keep them, with the reasoning behind each change, for whoever digs into
that code later.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 21:25:29 +03:00
STL1teandClaude Opus 5.5 502a79381a feat(libs): system services for a console without PSN, dialogs or streaming
- NP: signed-out callbacks and reachability; owned add-on entitlements
  from anyps5-entitlements.ini next to the executable (or the file
  ANYPS5_ENTITLEMENTS names)
- web browser, message, player invitation and player selection dialogs
  finish without a UI; Remote Play, IME keyboard, SharePlay, live
  streaming and video recording lifecycles for a console without them
- app content temporary data mount, format and free space (download data
  quota from param.json); content export, search and delete lifecycles
- pad output-only calls, system service notice-screen flags, RazorCpu
  markers, ulobjmgr
- throwing stubs for the remaining imports, so missing behavior fails
  loudly

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 21:22:16 +03:00
devilismyfriendandClaude Fable 5.1 9c2a75601d feat(libs): agc packet builders, savedata memory, offline service stubs
- libSceAgc: SetIndexCount, SetBaseIndirectArgs, DispatchIndirect, wait
  and write-data patch functions, relaxed checks for what titles send,
  NOP fillers for LOD stats and wait-until-safe, NotImplemented stubs.
- libSceSaveData.native: short mount points, backup events, save-data
  memory slots.
- user/system service, store dialog, video-out flip modes and queue-full
  error, pad read, fibers, offline behaviour for network/NP modules, and
  new export-only modules Ampr, JpegEnc, Json2, MsgDialog.native,
  NpCppWebApi, NpUtility.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0177gthrWEBBfBu5xJDXgBfo
2026-09-25 16:27:49 -07:00