From f0b2b2b0e1aacaaa1aaab755b9e10cc8b3b5d86a Mon Sep 17 00:00:00 2001 From: Gogodr Date: Sat, 14 May 2022 22:24:08 -0500 Subject: [PATCH] bugfix: game detection config --- README.md | 5 ++++- modules/config.py | 2 +- modules/find_game.py | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3e99360..00f0849 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## LostArk Market Watcher 0.7.3 +## LostArk Market Watcher 0.7.4 This app listens to the screenshot folder for new files. Starting on the version 0.3.0 this app needs to be launched through the [Lost Ark Market Launcher](https://github.com/gogodr/LostArk-Market-Launcher) Each new file is scanned and if the market window is detected in the picture then the image is segmented. @@ -24,6 +24,9 @@ In order to contribute to the LostArk Marketplace database, the contributor must Audio files from [MixKit](https://mixkit.co/) ### Changelog +### 0.7.4 +- Bugfix: soft game detection config set + ### 0.7.3 - Soft config set diff --git a/modules/config.py b/modules/config.py index 2ef5ac7..3e6e578 100644 --- a/modules/config.py +++ b/modules/config.py @@ -15,7 +15,7 @@ class Config(metaclass=Singleton): - version = "0.7.3" + version = "0.7.4" region: str game_region: str debug = False diff --git a/modules/find_game.py b/modules/find_game.py index 55612c2..1dd22a0 100644 --- a/modules/find_game.py +++ b/modules/find_game.py @@ -18,6 +18,7 @@ def find_file(root_folder, rex): result = rex.search(f) if result: return os.path.join(root, f) + return None def find_file_in_all_drives(file_name): @@ -28,5 +29,7 @@ def find_file_in_all_drives(file_name): def find_lostark_directory(): lostark_file = find_file_in_all_drives('LOSTARK\.exe') - return os.path.abspath(os.path.join(os.path.dirname(lostark_file), '..', '..')) + if lostark_file: + return os.path.abspath(os.path.join(os.path.dirname(lostark_file), '..', '..')) + return None