Skip to content

Message and error dialogs (XGameUi) as host task dialogs #8

Done

Description

@simnJS

The title can show message and error dialogs through the platform. Without them, an error path may hang waiting for an answer.

Goal: implement XGameUiShowMessageDialogAsync/Result and XGameUiShowErrorDialogAsync/Result as host task dialogs. They run on a thread of their own, like the text entry dialog does, and return the chosen button; a cancel returns the documented result.

Where: crates/xtp-hle/src/modules/xgameui.rs.

Reference (behaviour only): xcl hle/xgameruntime/api.rs classes (the XGameUi list: which functions exist; they take no user handle). xcl forwards them to the PC runtime, whereas XTP implements them.

Done when

  • A unit test replaces the dialog with a fake that answers button 2, and the async result reports button 2.
  • With no window, the call completes as cancelled.

Details: docs/analysis/hle.md, item R5.


Before you start: read CONTRIBUTING.md and docs/dev/START_HERE.md, and comment here to claim the issue so nobody duplicates it.

  • xcl is GPL-2.0-only: read it for behaviour only, never copy its code (XTP is GPL-3.0-or-later). State where your code comes from in the PR.
  • No game data, keys, console SDK code or headers, nothing that circumvents DRM. Tests that need real inputs take paths from XTP_SAMPLE_* variables and skip cleanly in CI.
  • Run cargo xtask pr-check before opening the PR.

Activity

  1. added
    enhancement
    help wanted
    area/hle
    on Nov 24, 2026
  2. PrivacyOnion commented on Nov 24, 2026

    @PrivacyOnion
    Contributor

    Claiming #8 — I will implement XGameUiShowMessageDialogAsync/Result and XGameUiShowErrorDialogAsync/Result in crates/xtp-hle/src/modules/xgameui.rs with host dialogs and unit tests covering button selection and cancellation.

  3. simnJS commented on Nov 24, 2026

    @simnJS
    CollaboratorAuthor

    Thanks @PrivacyOnion, it's yours (assigned). Note that #26 is already up for it; I'll review it there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/hleenhancementhelp wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions