rework transient files to work on a per job/global basis

fix removal of stale paths

fix some shit

fix some bugs

fix pet spaghetti
This commit is contained in:
Stanley Dimant
2024-09-09 21:06:08 +02:00
committed by Loporrit
parent 9d1e1ad726
commit 00c59fce3b
4 changed files with 206 additions and 108 deletions

View File

@@ -171,7 +171,7 @@ public class DalamudUtilService : IHostedService, IMediatorSubscriber
public bool IsZoning => _condition[ConditionFlag.BetweenAreas] || _condition[ConditionFlag.BetweenAreas51];
public bool IsInCombatOrPerforming { get; private set; } = false;
public bool HasModifiedGameFiles => _gameData.HasModifiedGameDataFiles;
public uint ClassJobId => _classJobId!.Value;
public Lazy<Dictionary<ushort, string>> WorldData { get; private set; }
public Lazy<Dictionary<int, Lumina.Excel.Sheets.UIColor>> UiColors { get; private set; }
public Lazy<Dictionary<uint, string>> TerritoryData { get; private set; }
@@ -330,7 +330,7 @@ public class DalamudUtilService : IHostedService, IMediatorSubscriber
public uint GetHomeWorldId()
{
EnsureIsOnFramework();
return _clientState.LocalPlayer!.HomeWorld.RowId;
return _clientState.LocalPlayer?.HomeWorld.RowId ?? 0;
}
public uint GetWorldId()