From 97645af3369611a04acb5833d19d2667bb677314 Mon Sep 17 00:00:00 2001 From: Michael Green <84688932+michael-j-green@users.noreply.github.com> Date: Fri, 3 Jan 2025 00:27:26 +1100 Subject: [PATCH] WIP --- gaseous-server/Classes/Metadata/Games.cs | 4 ++-- gaseous-server/gaseous-server.csproj | 4 ++-- gaseous-server/wwwroot/pages/game.js | 2 ++ gaseous-server/wwwroot/styles/style.css | 4 ++-- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/gaseous-server/Classes/Metadata/Games.cs b/gaseous-server/Classes/Metadata/Games.cs index 6e3f142..a59b3fa 100644 --- a/gaseous-server/Classes/Metadata/Games.cs +++ b/gaseous-server/Classes/Metadata/Games.cs @@ -340,9 +340,9 @@ ORDER BY Platform.`Name`;"; { FavouriteRomId = (long?)row["FavouriteRomId"]; FavouriteRomIsMediagroup = (bool)row["FavouriteRomIsMediaGroup"]; - if (row["MostRecentRomName"] != System.DBNull.Value) + if (row["FavouriteRomName"] != System.DBNull.Value) { - FavouriteRomName = string.IsNullOrEmpty((string?)row["MostRecentRomName"]) ? "" : (string)row["MostRecentRomName"]; + FavouriteRomName = string.IsNullOrEmpty((string?)row["FavouriteRomName"]) ? "" : (string)row["FavouriteRomName"]; } } diff --git a/gaseous-server/gaseous-server.csproj b/gaseous-server/gaseous-server.csproj index 9cef16e..3d2849e 100644 --- a/gaseous-server/gaseous-server.csproj +++ b/gaseous-server/gaseous-server.csproj @@ -18,9 +18,9 @@ - + - + diff --git a/gaseous-server/wwwroot/pages/game.js b/gaseous-server/wwwroot/pages/game.js index 788ee34..ba61e8c 100644 --- a/gaseous-server/wwwroot/pages/game.js +++ b/gaseous-server/wwwroot/pages/game.js @@ -440,6 +440,7 @@ function LoadGamePlatforms() { platformItem.classList.add('platform_item_green'); let launchLink = await BuildLaunchLink(platformData.emulatorConfiguration.emulatorType, platformData.emulatorConfiguration.core, platformData.id, Number(gameId), platformData.favouriteRomId, platformData.favouriteRomIsMediagroup, platformData.favouriteRomName); + console.log(launchLink); platformItem.addEventListener('click', () => { window.location.href = launchLink; @@ -453,6 +454,7 @@ function LoadGamePlatforms() { platformItem.classList.add('platform_item_green'); let launchLink = await BuildLaunchLink(platformData.emulatorConfiguration.emulatorType, platformData.emulatorConfiguration.core, platformData.id, Number(gameId), platformData.lastPlayedRomId, platformData.lastPlayedRomIsMediagroup, platformData.lastPlayedRomName); + console.log(launchLink); platformItem.addEventListener('click', () => { window.location.href = launchLink; diff --git a/gaseous-server/wwwroot/styles/style.css b/gaseous-server/wwwroot/styles/style.css index abc18ab..2ed7e37 100644 --- a/gaseous-server/wwwroot/styles/style.css +++ b/gaseous-server/wwwroot/styles/style.css @@ -2169,9 +2169,9 @@ button:not(.select2-selection__choice__remove):not(.select2-selection__clear):no float: right; } -#rom_edit { +/* #rom_edit { padding: 10px; -} +} */ #rom_edit_panel { background-color: rgba(56, 56, 56, 0.3);