mirror of
https://github.com/Luca1991/NDSFactory.git
synced 2025-07-23 05:12:28 +02:00
Compare commits
2 Commits
a2739a9ca8
...
e2e53cbed7
Author | SHA1 | Date | |
---|---|---|---|
|
e2e53cbed7 | ||
|
c453236abd |
@ -251,7 +251,7 @@ bool NDSFactory::extractFatData(const std::string& fatDataSectionPath, const std
|
|||||||
|
|
||||||
if (logFileIDs)
|
if (logFileIDs)
|
||||||
{
|
{
|
||||||
std::string log = std::format("{:x}",subFolderId) + "::D::" + newPath.substr(savePath.size()+1) + '\n';
|
std::string log = std::format("{:x}",subFolderId) + ":::" + newPath.substr(savePath.size()+1) + '\n';
|
||||||
if (!logToFile(savePath + "/_file_IDs.txt", log)) return false;
|
if (!logToFile(savePath + "/_file_IDs.txt", log)) return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -270,7 +270,7 @@ bool NDSFactory::extractFatData(const std::string& fatDataSectionPath, const std
|
|||||||
|
|
||||||
if (logFileIDs)
|
if (logFileIDs)
|
||||||
{
|
{
|
||||||
std::string log = std::format("{:x}", fatOffset) + "::F::" + newPath.substr(savePath.size()+1) + '\n';
|
std::string log = std::format("{:x}", fatOffset) + ":::" + newPath.substr(savePath.size()+1) + '\n';
|
||||||
if (!logToFile(savePath + "/_file_IDs.txt", log)) return false;
|
if (!logToFile(savePath + "/_file_IDs.txt", log)) return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#ifndef REVISION_H
|
#ifndef REVISION_H
|
||||||
#define REVISION_H
|
#define REVISION_H
|
||||||
|
|
||||||
#define GIT_COMMIT_HASH "fb12309"
|
#define GIT_COMMIT_HASH "a2739a9"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -78,7 +78,6 @@ private:
|
|||||||
bool dumpIconTitle(const std::string& dirPath);
|
bool dumpIconTitle(const std::string& dirPath);
|
||||||
bool dumpFatFiles(const std::string& dirPath);
|
bool dumpFatFiles(const std::string& dirPath);
|
||||||
bool dumpEverything(QString dirPath);
|
bool dumpEverything(QString dirPath);
|
||||||
void notifyExtractionResult(bool result);
|
|
||||||
|
|
||||||
void populatePackerSectionHeader(NDSHeader *ndsHeader);
|
void populatePackerSectionHeader(NDSHeader *ndsHeader);
|
||||||
void enableCalcCrcButton();
|
void enableCalcCrcButton();
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
#include "./../../mainwindow.h"
|
#include "./../../mainwindow.h"
|
||||||
#include "./../../ui_mainwindow.h"
|
#include "./../../ui_mainwindow.h"
|
||||||
#include "./../../utils/filepicker.h"
|
#include "./../../utils/filepicker.h"
|
||||||
|
#include "./../../utils/ui.h"
|
||||||
|
|
||||||
|
|
||||||
void MainWindow::on_loadRomBtn_clicked()
|
void MainWindow::on_loadRomBtn_clicked()
|
||||||
@ -137,15 +138,3 @@ void MainWindow::on_unpackerDumpEverythingBtn_clicked()
|
|||||||
if (!dirPath.isNull())
|
if (!dirPath.isNull())
|
||||||
notifyExtractionResult(dumpEverything(dirPath));
|
notifyExtractionResult(dumpEverything(dirPath));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::notifyExtractionResult(bool result)
|
|
||||||
{
|
|
||||||
if(result)
|
|
||||||
{
|
|
||||||
QMessageBox::information(this, tr("NDS Factory"), tr("Extraction completed!"));
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
QMessageBox::critical(this, tr("NDS Factory"), tr("Error during the extraction!"));
|
|
||||||
}
|
|
||||||
}
|
|
15
ui/utils/ui.h
Normal file
15
ui/utils/ui.h
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <QMessageBox>
|
||||||
|
|
||||||
|
void notifyExtractionResult(bool result)
|
||||||
|
{
|
||||||
|
if (result)
|
||||||
|
{
|
||||||
|
QMessageBox::information(Q_NULLPTR, "NDS Factory", "Extraction completed!");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
QMessageBox::critical(Q_NULLPTR, "NDS Factory", "Error during the extraction!");
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user