mirror of
https://github.com/Luca1991/NDSFactory.git
synced 2025-07-08 21:20:13 +02:00
21 lines
916 B
C++
21 lines
916 B
C++
#include <filesystem>
|
|
#include "./../../mainwindow.h"
|
|
|
|
|
|
bool MainWindow::extractFatData(const std::string& fatDataSectionPath, const std::string& fatSectionPath,
|
|
const std::string& fntSectionPath, uint32_t originalFatDataAddr, const std::string& savePath, bool logFileIDs)
|
|
{
|
|
return ndsFactory.extractFatData(fatDataSectionPath, fatSectionPath, fntSectionPath, originalFatDataAddr, savePath, logFileIDs);
|
|
}
|
|
|
|
bool MainWindow::patchFat(const std::string& loadPath, uint32_t shiftSize, const std::string& savePath)
|
|
{
|
|
return ndsFactory.patchFat(loadPath, shiftSize, savePath);
|
|
}
|
|
|
|
bool MainWindow::buildFatData(const std::string& fatDataDirPath, const std::string& originalFatPath, uint32_t fatDataAddr, const std::string& savePath)
|
|
{
|
|
if (!std::filesystem::exists(fatDataDirPath + "/_file_IDs.txt")) return false;
|
|
return ndsFactory.buildFatData(fatDataDirPath, originalFatPath, fatDataAddr, savePath);
|
|
}
|