Skip to content

Commit

Permalink
bugfix: game detection config
Browse files Browse the repository at this point in the history
  • Loading branch information
gogodr committed May 15, 2022
1 parent 21f3410 commit f0b2b2b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion modules/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


class Config(metaclass=Singleton):
version = "0.7.3"
version = "0.7.4"
region: str
game_region: str
debug = False
Expand Down
5 changes: 4 additions & 1 deletion modules/find_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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

0 comments on commit f0b2b2b

Please sign in to comment.