2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-09-15 00:23:49 +00:00

Fix extract/package detection

This commit is contained in:
Luke Street 2020-04-14 02:52:56 -04:00
parent d62a47d423
commit 0ce0ea712e

View File

@ -321,7 +321,7 @@ void MainWindow::enableOperations() {
m_ui->launchBtn->setText(tr("Launch"));
m_ui->extractBtn->setEnabled(true);
if (QFile::exists(m_path + QStringLiteral("/MP1/.done"))) {
if (QFile::exists(m_path + QStringLiteral("/MP1/URDE/texture_cache.yaml"))) {
m_ui->packageBtn->setEnabled(true);
if (isPackageComplete())
m_ui->launchBtn->setEnabled(true);
@ -357,7 +357,8 @@ bool MainWindow::isPackageComplete() const {
QFile::exists(m_path + QStringLiteral("/out/files/SamusGun.upak")) &&
QFile::exists(m_path + QStringLiteral("/out/files/SlideShow.upak")) &&
QFile::exists(m_path + QStringLiteral("/out/files/TestAnim.upak")) &&
QFile::exists(m_path + QStringLiteral("/out/files/Tweaks.upak"));
QFile::exists(m_path + QStringLiteral("/out/files/Tweaks.upak")) &&
QFile::exists(m_path + QStringLiteral("/out/files/URDE.upak"));
}
static bool GetDLPackage(const QString& path, QString& dlPackage) {