mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Server File Changes
- added Testlive server option - changed code to use different appids.
This commit is contained in:
parent
96ba2c3474
commit
a20354c1b1
32 changed files with 969 additions and 812 deletions
|
|
@ -479,8 +479,11 @@ namespace ServerManagerTool
|
|||
{
|
||||
WorkshopFileDetailResponse localCache = null;
|
||||
|
||||
var appId = _profile.UseTestlive ? Config.Default.AppId_Testlive : Config.Default.AppId;
|
||||
var workshopCacheFile = string.Format(Config.Default.WorkshopCacheFile, appId);
|
||||
|
||||
await Task.Run(() => {
|
||||
var file = Path.Combine(Config.Default.DataPath, Config.Default.WorkshopCacheFile);
|
||||
var file = Path.Combine(Config.Default.DataPath, workshopCacheFile);
|
||||
|
||||
// try to load the cache file.
|
||||
localCache = WorkshopFileDetailResponse.Load(file);
|
||||
|
|
|
|||
|
|
@ -160,8 +160,11 @@ namespace ServerManagerTool
|
|||
WorkshopFileDetailResponse localCache = null;
|
||||
WorkshopFileDetailResponse steamCache = null;
|
||||
|
||||
var appId = _profile.UseTestlive ? Config.Default.AppId_Testlive : Config.Default.AppId;
|
||||
var workshopCacheFile = string.Format(Config.Default.WorkshopCacheFile, appId);
|
||||
|
||||
await Task.Run( () => {
|
||||
var file = Path.Combine(Config.Default.DataPath, Config.Default.WorkshopCacheFile);
|
||||
var file = Path.Combine(Config.Default.DataPath, workshopCacheFile);
|
||||
|
||||
// try to load the cache file.
|
||||
localCache = WorkshopFileDetailResponse.Load(file);
|
||||
|
|
@ -174,7 +177,7 @@ namespace ServerManagerTool
|
|||
// check if the cache exists
|
||||
if (steamCache == null)
|
||||
{
|
||||
steamCache = SteamUtils.GetSteamModDetails(Config.Default.AppId);
|
||||
steamCache = SteamUtils.GetSteamModDetails(appId);
|
||||
if (steamCache != null)
|
||||
steamCache.Save(file);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue