Missing folder warning

This commit is contained in:
unknown 2022-08-19 16:52:43 +02:00
parent a2ce2d09e4
commit 3f267898d4
2 changed files with 17 additions and 2 deletions

View file

@ -9,6 +9,7 @@
- Show S3RV3R NOT R3SPOND1NG if the server hasn't responded in 45 seconds. (15 seconds after ping)
- Close connection and try to reconnect if the server hasn't responded in 90 seconds. (60 seconds after ping)
- Fallback to PyQt5. (for Windows 7 users mainly)
- Warning for people who forgot to extract the zipfile.
### Fixed
- Error when manually moving group.

View file

@ -3773,6 +3773,20 @@ class MainProgram(QtCore.QObject):
options = self.oppts(sys.argv[1:])
# Check if the user is a silly little guy
for folder in ['smilies', 'themes']:
if not os.path.isdir(folder):
msgbox = QtWidgets.QMessageBox()
msg = ("'%s' folder not found, Pesterchum will "
"probably not function correctly."
"\nIf this is an excecutable build, "
"verify you extracted the zipfile." % folder)
msgbox.setWindowTitle("SK1LL 1SSU3 >:[")
msgbox.setInformativeText(msg)
msgbox.setIcon(QtWidgets.QMessageBox.Icon.Critical)
msgbox.exec()
# If we're using pygame for sound we need to init
if 'pygame' in sys.modules:
# we could set the frequency higher but i love how cheesy it sounds