Skip to content

Commit

Permalink
launches known-issues page for webOS 9 crash
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Oct 29, 2024
1 parent b4e9164 commit f3b77a9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/ui/root.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,13 @@ SDL_Window *app_ui_create_window(app_ui_t *ui) {
}
SDL_Window *win = SDL_CreateWindow("Moonlight", win_x, win_y, win_width, win_height, win_flags);
if (win == NULL) {
#ifdef TARGET_WEBOS
// For webOS 24 (9.0), unpopulated jailer config could cause graphics driver initialization failure
// We don't have any way to work around this, so we try to launch a web page about this issue
if (ui->app->os_info.version.major >= 9) {
SDL_OpenURL("https://github.com/mariotaku/moonlight-tv/wiki/Known-Issues");
}
#endif
commons_log_fatal("APP", "Failed to create window: %s", SDL_GetError());
app_halt(ui->app);
}
Expand Down

0 comments on commit f3b77a9

Please sign in to comment.