diff --git a/OpenRA.FileFormats/Graphics/TileSetRenderer.cs b/OpenRA.FileFormats/Graphics/TileSetRenderer.cs index 2850c991f2..b83bb7e1c2 100644 --- a/OpenRA.FileFormats/Graphics/TileSetRenderer.cs +++ b/OpenRA.FileFormats/Graphics/TileSetRenderer.cs @@ -25,7 +25,7 @@ namespace OpenRA.FileFormats List LoadTemplate(string filename, string[] exts, Cache r8Cache, int[] frames) { - if (exts.Contains(".r8") && FileSystem.Exists(filename+".r8")) + if (exts.Contains(".R8") && FileSystem.Exists(filename+".R8")) { var data = new List(); @@ -45,7 +45,7 @@ namespace OpenRA.FileFormats this.TileSize = tileSize; templates = new Dictionary>(); - var r8Cache = new Cache(s => new R8Reader(FileSystem.OpenWithExts(s, ".r8"))); + var r8Cache = new Cache(s => new R8Reader(FileSystem.OpenWithExts(s, ".R8"))); foreach (var t in TileSet.Templates) templates.Add(t.Key, LoadTemplate(t.Value.Image, tileset.Extensions, r8Cache, t.Value.Frames)); } diff --git a/OpenRA.Game/Graphics/Theater.cs b/OpenRA.Game/Graphics/Theater.cs index 1ff13f4dcf..6efe0095bd 100644 --- a/OpenRA.Game/Graphics/Theater.cs +++ b/OpenRA.Game/Graphics/Theater.cs @@ -27,7 +27,7 @@ namespace OpenRA.Graphics Sprite[] LoadTemplate(string filename, string[] exts, Cache r8Cache, int[] frames) { - if (exts.Contains(".r8") && FileSystem.Exists(filename+".r8")) + if (exts.Contains(".R8") && FileSystem.Exists(filename+".R8")) { return frames.Select(f => { @@ -60,7 +60,7 @@ namespace OpenRA.Graphics return new Sheet(new Size(tileset.SheetSize, tileset.SheetSize)); }; - var r8Cache = new Cache(s => new R8Reader(FileSystem.OpenWithExts(s, ".r8"))); + var r8Cache = new Cache(s => new R8Reader(FileSystem.OpenWithExts(s, ".R8"))); templates = new Dictionary(); sheetBuilder = new SheetBuilder(SheetType.Indexed, allocate); foreach (var t in tileset.Templates)