diff --git a/src/HexManiac.WPF/Implementations/WindowsFileSystem.cs b/src/HexManiac.WPF/Implementations/WindowsFileSystem.cs index c22ca915..828c921c 100644 --- a/src/HexManiac.WPF/Implementations/WindowsFileSystem.cs +++ b/src/HexManiac.WPF/Implementations/WindowsFileSystem.cs @@ -195,7 +195,10 @@ namespace HavenSoft.HexManiac.WPF.Implementations { public bool SaveMetadata(string originalFileName, string[] metadata) { if (metadata == null) return true; // nothing to save - var metadataName = Path.ChangeExtension(originalFileName, ".toml"); + var metadataName = originalFileName + ".toml"; + if (originalFileName.ToLower().EndsWith(".gba")) { + metadataName = Path.ChangeExtension(originalFileName, ".toml"); + } int tryCount = 0; while (tryCount < 5) { try {