Skip to content

Commit

Permalink
FIx broken build on 'master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Xeeynamo committed May 26, 2020
1 parent 3016dff commit 3f2367c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions OpenKh.Game/Infrastructure/ArchiveManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ private class Entry
[Bar.EntryType.Seqd] = entry => Sequence.Read(entry.Stream),
[Bar.EntryType.Imgd] = entry => Imgd.Read(entry.Stream),
[Bar.EntryType.Imgz] = entry => new Imgz(entry.Stream),
[Bar.EntryType.Vif] = entry => Mdlx.Read(entry.Stream),
[Bar.EntryType.Tim2] = entry => ModelTexture.Read(entry.Stream),
[Bar.EntryType.Model] = entry => Mdlx.Read(entry.Stream),
[Bar.EntryType.ModelTexture] = entry => ModelTexture.Read(entry.Stream),
};

private readonly Dictionary<(string name, Bar.EntryType type), Entry> archives;
Expand Down Expand Up @@ -51,8 +51,8 @@ public T Get<T>(string resourceName)
if (typeof(T) == typeof(Sequence)) return GetItem<T>(resourceName, Bar.EntryType.Seqd);
if (typeof(T) == typeof(Imgd)) return GetItem<T>(resourceName, Bar.EntryType.Imgd);
if (typeof(T) == typeof(Imgz)) return GetItem<T>(resourceName, Bar.EntryType.Imgz);
if (typeof(T) == typeof(Mdlx)) return GetItem<T>(resourceName, Bar.EntryType.Vif);
if (typeof(T) == typeof(ModelTexture)) return GetItem<T>(resourceName, Bar.EntryType.Tim2);
if (typeof(T) == typeof(Mdlx)) return GetItem<T>(resourceName, Bar.EntryType.Model);
if (typeof(T) == typeof(ModelTexture)) return GetItem<T>(resourceName, Bar.EntryType.ModelTexture);
return null;
}

Expand Down

0 comments on commit 3f2367c

Please sign in to comment.