Skip to content

Commit

Permalink
Missing folder warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Dpeta committed Aug 19, 2022
1 parent a2ce2d0 commit 3f26789
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
18 changes: 16 additions & 2 deletions pesterchum.py
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,7 @@ def __init__(self, options, parent=None, app=None):
msgBox.setWindowTitle(":(")
msgBox.setTextFormat(QtCore.Qt.TextFormat.RichText) # Clickable html links
self.filename = _datadir+"pesterchum.js"
msgBox.setText("<html><h3>A profile error occured,"
msgBox.setText("<html><h3>A profile error occured, "
"trying to switch to default pesterClient profile."
"<br><br>%s<\h3><\html>" % e)
PchumLog.critical(e)
Expand Down Expand Up @@ -3772,7 +3772,21 @@ def __init__(self):
#self.app.setQuitOnLastWindowClosed(False)

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
Expand Down

0 comments on commit 3f26789

Please sign in to comment.