Fix workshop search appID lookup and checkbox picker
Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
1514063525
commit
d8ad1aa924
7 changed files with 57 additions and 16 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue