mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-13 02:05:51 +00:00
Use .done file to detect extraction complete
This commit is contained in:
parent
98b821a20a
commit
0c27722831
@ -320,7 +320,7 @@ void MainWindow::enableOperations() {
|
|||||||
m_ui->launchBtn->setText(tr("Launch"));
|
m_ui->launchBtn->setText(tr("Launch"));
|
||||||
|
|
||||||
m_ui->extractBtn->setEnabled(true);
|
m_ui->extractBtn->setEnabled(true);
|
||||||
if (QFile::exists(m_path + QStringLiteral("/MP1/!original_ids.yaml"))) {
|
if (QFile::exists(m_path + QStringLiteral("/MP1/.done"))) {
|
||||||
m_ui->packageBtn->setEnabled(true);
|
m_ui->packageBtn->setEnabled(true);
|
||||||
if (isPackageComplete())
|
if (isPackageComplete())
|
||||||
m_ui->launchBtn->setEnabled(true);
|
m_ui->launchBtn->setEnabled(true);
|
||||||
@ -339,9 +339,6 @@ void MainWindow::enableOperations() {
|
|||||||
|
|
||||||
bool MainWindow::isPackageComplete() const {
|
bool MainWindow::isPackageComplete() const {
|
||||||
return
|
return
|
||||||
#if RUNTIME_ORIGINAL_IDS
|
|
||||||
QFile::exists(m_path + QStringLiteral("/out/files/!original_ids.upak")) &&
|
|
||||||
#endif
|
|
||||||
QFile::exists(m_path + QStringLiteral("/out/files/AudioGrp.upak")) &&
|
QFile::exists(m_path + QStringLiteral("/out/files/AudioGrp.upak")) &&
|
||||||
QFile::exists(m_path + QStringLiteral("/out/files/GGuiSys.upak")) &&
|
QFile::exists(m_path + QStringLiteral("/out/files/GGuiSys.upak")) &&
|
||||||
QFile::exists(m_path + QStringLiteral("/out/files/Metroid1.upak")) &&
|
QFile::exists(m_path + QStringLiteral("/out/files/Metroid1.upak")) &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user