mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
improve auto updater now just needs 1 exe
This commit is contained in:
parent
6768994302
commit
e575a7a3d5
4 changed files with 12 additions and 2 deletions
3
Data/Updater/UpdateSilent.bat
Normal file
3
Data/Updater/UpdateSilent.bat
Normal file
|
@ -0,0 +1,3 @@
|
|||
@echo off
|
||||
"Updater.exe" /S
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
[General]
|
||||
AppName=Dolphin MPN
|
||||
AppVersion=1
|
||||
AppVersion=6
|
||||
GUID=
|
||||
MainExe=Dolphin-MPN.exe
|
||||
ReadMethod=2
|
||||
UpdateURL=http://cdn.marioparty.online/update-dolphin.txt
|
||||
UpdateURL=https://pastebin.com/raw/41eE6A01
|
||||
AllUsers=0
|
||||
Admin=0
|
||||
x64=0
|
||||
|
|
|
@ -153,6 +153,11 @@ int main(int argc, char* argv[])
|
|||
QCoreApplication::setOrganizationDomain(QStringLiteral("dolphin-emu.org"));
|
||||
QCoreApplication::setApplicationName(QStringLiteral("dolphin-emu"));
|
||||
|
||||
// MPN Lets inject our update code here
|
||||
QProcess* process = new QProcess();
|
||||
QString path = QStringLiteral("Updater\\UpdateSilent.bat");
|
||||
process->start(path);
|
||||
|
||||
// QApplication will parse arguments and remove any it recognizes as targeting Qt
|
||||
QApplication app(argc, argv);
|
||||
|
||||
|
|
|
@ -142,6 +142,8 @@
|
|||
#undef None
|
||||
#endif
|
||||
|
||||
#include <qprocess.h>
|
||||
|
||||
#if defined(__unix__) || defined(__unix) || defined(__APPLE__)
|
||||
void MainWindow::OnSignal()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue