diff --git a/ui/dialogs/about/revision.h b/ui/dialogs/about/revision.h index 8be0c90..9fabee6 100644 --- a/ui/dialogs/about/revision.h +++ b/ui/dialogs/about/revision.h @@ -1,6 +1,6 @@ #ifndef REVISION_H #define REVISION_H -#define GIT_COMMIT_HASH "0b9b628" +#define GIT_COMMIT_HASH "319d0e2" #endif diff --git a/ui/tabs/packer/packertabfunctions.cpp b/ui/tabs/packer/packertabfunctions.cpp index a3b4cf2..89c2c1f 100644 --- a/ui/tabs/packer/packertabfunctions.cpp +++ b/ui/tabs/packer/packertabfunctions.cpp @@ -1,5 +1,6 @@ #include #include +#include #include #include "./../../mainwindow.h" #include "./../../ui_mainwindow.h" @@ -311,6 +312,8 @@ bool MainWindow::writeEverything(const std::string& savePath) else paddingType = static_cast('\xff'); + std::remove(savePath.c_str()); + res &= writeHeader(savePath); res &= writeHeaderPadding(paddingType, savePath); res &= writeArm9Bin(savePath, isArm9FooterPresent);