Add XDG Games desktop shortcut, hicolor icons, and installable asset lookup

This commit is contained in:
Luxferre committed 2026-12-01 09:51:29 +02:00
1 parent 554958db9a
commit d001f214aa
12 files changed
+445 -35

No files matched your search

+6
View File
@@ -207,6 +207,12 @@ bool GameApp::init(const LaunchOptions& opts) {
hiscores_.load(vfs_.pref_dir() / "hiscores.dat");
#ifdef SDL_HINT_APP_NAME
SDL_SetHint(SDL_HINT_APP_NAME, "Top-Octane");
#endif
SDL_SetHint("SDL_VIDEO_X11_WMCLASS", "top-octane");
SDL_SetHint("SDL_VIDEO_WAYLAND_WMCLASS", "top-octane");
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER) != 0) {
LOG_ERROR("SDL_Init failed: %s", SDL_GetError());
return false;