diff --git a/ERSCMU.py b/ERSCMU.py index d5b4297..9cb0337 100644 --- a/ERSCMU.py +++ b/ERSCMU.py @@ -1,5 +1,6 @@ # Define version number PROGRAM_VERSION = "1.7.0.5" +LAUNCHER_VERSION = "1.1.0.0" # Define a persistent path for the configuration files in the AppData folder PERSISTENT_DIR = os.path.join(os.getenv('APPDATA'), 'ERSC Mod Updater') @@ -49,6 +50,8 @@ def check_logo(): print(f"Logo downloaded successfully to {LOGO_PATH}") else: print(f"Failed to download logo.\nHTTP status code: {response.status_code}") + else: + print(f"Logo discovered locally at {LOGO_PATH}") def ensure_vocabulary(config): if "vocabulary" not in config: @@ -786,7 +789,7 @@ def show_info(): last_updated = config.get('last_updated', 'Unknown') launcher_path = os.path.join(os.path.dirname(config["mod_path"]), config['launcher_name']) wdir = PERSISTENT_DIR - QMessageBox.information(None, "Info", f"Current Version: {installed_version}\nLast Updated: {last_updated}\nLauncher Path: {launcher_path}\nWorking Directory: {wdir}\nERSCMU Version: {PROGRAM_VERSION}") + QMessageBox.information(None, "Info", f"Current Version: {installed_version}\nLast Updated: {last_updated}\nLauncher Path: {launcher_path}\nWorking Directory: {wdir}\nERSCMU Version: {PROGRAM_VERSION}\nLauncher Version: {LAUNCHER_VERSION}") def show_about(): about_text = f""" @@ -803,6 +806,7 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ERSCMU Version: {PROGRAM_VERSION} +Launcher Version: {LAUNCHER_VERSION} """ QMessageBox.information(None, "About", about_text) @@ -852,7 +856,8 @@ def create_gui(): version_label.setAlignment(Qt.AlignRight | Qt.AlignVCenter) version_label.setStyleSheet("padding-right: 10px;") # Optional: add some padding to the right menu_bar.setCornerWidget(version_label, Qt.TopRightCorner) - version_label.setToolTip(str("ERSCMU version.\nThis is the version of this program you're currently running.")) + version_label_tooltip_text = f"ERSCMU version.\nThis is the version of this program you're currently running.\nLauncher Version: {LAUNCHER_VERSION}" + version_label.setToolTip(str(version_label_tooltip_text)) mod_path_label = QLabel("Mod Folder:") mod_path_entry = QLineEdit() @@ -917,4 +922,4 @@ def create_gui(): if __name__ == "__main__": check_logo() - create_gui() \ No newline at end of file + create_gui()