Fix workshop search appID lookup and checkbox picker

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-01-31 19:01:46 +00:00
parent 1514063525
commit d8ad1aa924
7 changed files with 57 additions and 16 deletions

View file

@ -620,6 +620,20 @@ class SteamWorkshopService
public function getSteamAppIdForGameKey(string $gameKey): ?string
{
$gameKey = trim($gameKey);
if ($gameKey === '') {
return null;
}
$adapterKey = $this->getAdapterKeyForGame($gameKey);
if ($adapterKey !== null && $adapterKey !== '') {
$adapter = $this->getAdapterByKey($adapterKey);
$adapterAppId = isset($adapter['steam_app_id']) ? trim((string)$adapter['steam_app_id']) : '';
if ($adapterAppId !== '') {
return $adapterAppId;
}
}
$xml = $this->loadServerConfigXml($gameKey);
if ($xml === null) {
return null;