2
0
Fork 0
mirror of https://github.com/KillzXGaming/Switch-Toolbox synced 2025-02-02 23:33:25 +00:00

Disable gmx saving as editing isn't supported yet

This commit is contained in:
KillzXGaming 2020-06-30 21:27:52 -04:00
parent 65d5fc1a32
commit a5ab81cc9b
2 changed files with 3 additions and 1 deletions
File_Format_Library/FileFormats/GMX
Switch_Toolbox_Library/IO

View file

@ -113,7 +113,7 @@ namespace FirstPlugin
public void Load(System.IO.Stream stream)
{
CanSave = true;
CanSave = false;
//Set renderer
Renderer = new GMX_Renderer();

View file

@ -113,6 +113,8 @@ namespace Toolbox.Library.IO
bool IsBotwFile = FilePath.IsSubPathOf(Runtime.BotwGamePath);
bool IsTPHDFile = FilePath.IsSubPathOf(Runtime.TpGamePath);
STConsole.WriteLine($"IsTPHDFile {IsTPHDFile}");
if (Runtime.ResourceTables.BotwTable && IsBotwFile)
{
string newFilePath = FilePath.Replace(Runtime.BotwGamePath, string.Empty).Remove(0, 1);