Added: HiRes images are now also applied to sprites.

Fixed: HiRes images should be loaded from subdirectories too.
Fixed: in some cases the editor was unable to locate existing "LoRes" images when loading HiRes images.
Disabled some HiRes-related warnings, because the editor doesn't track all sprites or graphics.
This commit is contained in:
MaxED 2016-03-22 22:24:33 +00:00
parent 07a4c5c51e
commit 6b4dc3a287
5 changed files with 42 additions and 18 deletions

View file

@ -239,14 +239,14 @@ namespace CodeImp.DoomBuilder.Data
public override IEnumerable<HiResImage> LoadHiResTextures()
{
// Go for all files
string[] files = GetAllFiles(HIRES_DIR, false);
string[] files = GetAllFiles(HIRES_DIR, true);
List<HiResImage> result = new List<HiResImage>(files.Length);
foreach(string f in files)
{
if(string.IsNullOrEmpty(Path.GetFileNameWithoutExtension(f)))
{
// Can't load image without name
General.ErrorLogger.Add(ErrorType.Error, "Can't load an unnamed HiRes texture from \"" + HIRES_DIR + "\". Please consider giving names to your resources.");
General.ErrorLogger.Add(ErrorType.Error, "Can't load an unnamed HiRes texture from \"" + Path.Combine(this.location.GetDisplayName(), HIRES_DIR) + "\". Please consider giving names to your resources.");
}
else
{