mirror of
https://github.com/haven1433/HexManiacAdvance.git
synced 2026-03-21 17:34:13 -05:00
bug fixes
This commit is contained in:
parent
68991ed780
commit
4c3adfc2a0
|
|
@ -1,7 +1,6 @@
|
|||
using HavenSoft.HexManiac.Core.Models.Runs;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
|
||||
|
||||
|
|
@ -515,6 +514,9 @@ namespace HavenSoft.HexManiac.Core.Models {
|
|||
if (name == MoveTutors) format = format.Replace("]15", "]128");
|
||||
if (name == TmMoves) format = format.Replace("]58", "]128");
|
||||
|
||||
// graphics.pokemon.type.map[width. height. xy:|t|:|x:|.|y::]data.pokemon.type.names+1+2
|
||||
if (name == "graphics.pokemon.type.map") format = format.Replace("data.pokemon.type.names+1+5", "data.pokemon.type.names+1+2");
|
||||
|
||||
// overworld sprites
|
||||
if (name == OverworldSprites) format = format.Replace("graphics.overworld.tablelength", "240");
|
||||
|
||||
|
|
|
|||
|
|
@ -1696,7 +1696,12 @@ namespace HavenSoft.HexManiac.Core.ViewModels.Tools {
|
|||
}
|
||||
}
|
||||
}
|
||||
fileSystem.SaveImage(pixels, palette);
|
||||
try {
|
||||
fileSystem.SaveImage(pixels, palette);
|
||||
} catch (Exception) {
|
||||
// failed to export - try again using the un-indexed system.
|
||||
fileSystem.SaveImage(PixelData, PixelWidth);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user