Skip to content

LIBRETRO: Initialize retro_message_ext and give notifications a severity - #116

Merged
spleen1981 merged 1 commit into
libretro:staging_masterfrom
TRusselo:libretro-osd-severity
Sep 19, 2026
Merged

spleen1981 merged 1 commit into
libretro:staging_masterfrom
TRusselo:libretro-osd-severity

Conversation

@TRusselo

Copy link
Copy Markdown

retro_osd_notification() fills in four fields of a stack-allocated retro_message_ext and leaves priority, level and progress untouched, so they reach the frontend as whatever was on the stack.

Zero-initialise the struct and take a level, so a frontend that ranks or filters messages gets a real value. Default is RETRO_LOG_INFO, which is what the existing callers get without changing them.

The eight call sites are classified: RETRO_LOG_ERROR for "Game not found" and "Failed to set up HW rendering", RETRO_LOG_WARN for the folder-missing and HW-rendering-unavailable messages, default for the rest.

Not Emscripten-specific -- this affects every target.

@spleen1981
spleen1981 changed the base branch from master to staging_master September 18, 2026 22:00
@spleen1981
spleen1981 changed the base branch from staging_master to master September 18, 2026 22:03
@spleen1981
spleen1981 changed the base branch from master to staging_master September 18, 2026 22:03
@spleen1981

Copy link
Copy Markdown
Collaborator

can you rebase please? Future PRs goes to staging_master branch first, master is just sync from scummvm/scummvm

The struct was filled in partly, so priority, level and progress reached the
frontend as whatever was on the stack.

Assisted-by: Claude:claude-opus-5
@TRusselo
TRusselo force-pushed the libretro-osd-severity branch from 8866779 to 78571e5 Compare September 18, 2026 22:47
@TRusselo

Copy link
Copy Markdown
Author

Rebased on staging_master. The three already-merged commits are gone, so this is now just the one change.

Noted on staging_master for future PRs, thanks.

@spleen1981
spleen1981 merged commit 364e702 into libretro:staging_master Sep 19, 2026
9 of 10 checks passed
@TRusselo
TRusselo deleted the libretro-osd-severity branch October 1, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants