mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-09-21 10:29:37 +00:00
Fix extract/package detection
This commit is contained in:
parent
d62a47d423
commit
0ce0ea712e
@ -321,7 +321,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/.done"))) {
|
if (QFile::exists(m_path + QStringLiteral("/MP1/URDE/texture_cache.yaml"))) {
|
||||||
m_ui->packageBtn->setEnabled(true);
|
m_ui->packageBtn->setEnabled(true);
|
||||||
if (isPackageComplete())
|
if (isPackageComplete())
|
||||||
m_ui->launchBtn->setEnabled(true);
|
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/SamusGun.upak")) &&
|
||||||
QFile::exists(m_path + QStringLiteral("/out/files/SlideShow.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/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) {
|
static bool GetDLPackage(const QString& path, QString& dlPackage) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user