Merge pull request #650 from DanielSvoboda/main

Fix creation files.json in 'Download All Patches'
This commit is contained in:
georgemoralis 2024-08-29 23:47:25 +03:00 committed by GitHub
commit 7e7854346d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -36,6 +36,7 @@ public:
void downloadCheats(const QString& source, const QString& m_gameSerial, void downloadCheats(const QString& source, const QString& m_gameSerial,
const QString& m_gameVersion, bool showMessageBox); const QString& m_gameVersion, bool showMessageBox);
void downloadPatches(const QString repository, const bool showMessageBox); void downloadPatches(const QString repository, const bool showMessageBox);
void createFilesJson(const QString& repository);
signals: signals:
void downloadFinished(); void downloadFinished();
@ -58,7 +59,6 @@ private:
void applyCheat(const QString& modName, bool enabled); void applyCheat(const QString& modName, bool enabled);
void applyPatch(const QString& patchName, bool enabled); void applyPatch(const QString& patchName, bool enabled);
void createFilesJson(const QString& repository);
void uncheckAllCheatCheckBoxes(); void uncheckAllCheatCheckBoxes();
void updateNoteTextEdit(const QString& patchName); void updateNoteTextEdit(const QString& patchName);

View File

@ -391,6 +391,8 @@ void MainWindow::CreateConnects() {
nullptr, tr("Download Complete"), nullptr, tr("Download Complete"),
QString(tr("Patches Downloaded Successfully!") + "\n" + QString(tr("Patches Downloaded Successfully!") + "\n" +
tr("All Patches available for all games have been downloaded."))); tr("All Patches available for all games have been downloaded.")));
cheatsPatches->createFilesJson("GoldHEN");
cheatsPatches->createFilesJson("shadPS4");
panelDialog->accept(); panelDialog->accept();
}); });
panelDialog->exec(); panelDialog->exec();