Fix #1
This commit is contained in:
parent
30f838008c
commit
6fe13463fa
3
main.py
3
main.py
@ -6,7 +6,7 @@ import socket
|
|||||||
import zlib
|
import zlib
|
||||||
import sys
|
import sys
|
||||||
from PySide6.QtCore import QThread, QTimer, Signal
|
from PySide6.QtCore import QThread, QTimer, Signal
|
||||||
from PySide6.QtWidgets import QApplication, QMainWindow, QFileDialog
|
from PySide6.QtWidgets import QApplication, QMainWindow, QFileDialog, QMessageBox
|
||||||
from lib.enumresponse import EnumResponse
|
from lib.enumresponse import EnumResponse
|
||||||
from lib.giantsenumresponseparser import GiantsEnumResponseParser
|
from lib.giantsenumresponseparser import GiantsEnumResponseParser
|
||||||
from lib.packet import Packet
|
from lib.packet import Packet
|
||||||
@ -132,6 +132,7 @@ def read_configuration():
|
|||||||
global CONFIG
|
global CONFIG
|
||||||
if not os.path.exists(config_file):
|
if not os.path.exists(config_file):
|
||||||
# create it
|
# create it
|
||||||
|
QMessageBox.information(None, "GMD - Giants Maps Downloader", "Welcome to GMD!\n\nThis tool runs in the background to automatically download and upload hosted maps. For this to work, GMD needs to know where maps must be installed.\n\nPlease select where Giants.exe is after clicking OK.", QMessageBox.Ok)
|
||||||
giants_exe_path, _filename = QFileDialog.getOpenFileName(None, caption="Open Giants.exe", filter="Giants.exe")
|
giants_exe_path, _filename = QFileDialog.getOpenFileName(None, caption="Open Giants.exe", filter="Giants.exe")
|
||||||
if not giants_exe_path:
|
if not giants_exe_path:
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user