Update Readme, Import Games
This commit is contained in:
parent
dea75068bd
commit
80d3802208
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,3 +6,4 @@
|
|||
/build/
|
||||
/dist/
|
||||
/Rare.egg-info/
|
||||
/RareBuild.sh
|
||||
|
|
17
README.md
17
README.md
|
@ -4,8 +4,11 @@
|
|||
Rare is currently considered beta software and in no way feature-complete. You **will** run into issues, so make backups first!
|
||||
|
||||
### Requirements
|
||||
- requests, pillow and pyqt5 installed via PyPI
|
||||
- Legendary installed via PyPI
|
||||
- requests,
|
||||
- pillow
|
||||
- pyqt5
|
||||
- legendary-gl
|
||||
- PyQtWebengine
|
||||
|
||||
### Usage
|
||||
When you run Rare, it'll check if you're currently logged in and walk you through logging in if you aren't.
|
||||
|
@ -15,9 +18,19 @@ Rare is currently considered beta software and in no way feature-complete. You *
|
|||
- Launch, install and uninstall games
|
||||
- Authentication(Import from existing installation and via Browser)**(Please test it!)**
|
||||
- In-app Browser to buy games
|
||||
- Settings
|
||||
### Todos
|
||||
- Sync saves
|
||||
- ...
|
||||
|
||||
|
||||
### Images
|
||||
|
||||
![alt text](https://github.com/Dummerle/Rare/blob/master/Screenshots/GameList.png?raw=true)
|
||||
![alt text](https://github.com/Dummerle/Rare/blob/master/Screenshots/Uninstalled.png?raw=true)
|
||||
![alt text](https://github.com/Dummerle/Rare/blob/master/Screenshots/Settings.png?raw=true)
|
||||
|
||||
|
||||
|
||||
If you have features you want to have in this app, create an issue on github or build it yourself. Please report bugs(Especially Windows)
|
||||
|
||||
|
|
|
@ -57,7 +57,9 @@ class GameListInstalled(QScrollArea):
|
|||
available_drives = ['%s:' % d for d in string.ascii_uppercase if os.path.exists('%s:' % d)]
|
||||
for drive in available_drives:
|
||||
path = f"{drive}/Program Files/Epic Games/"
|
||||
self.auto_import_games(path)
|
||||
if os.path.exists(path):
|
||||
self.auto_import_games(path)
|
||||
|
||||
else:
|
||||
possible_wineprefixes = [os.path.expanduser("~/.wine/"), os.path.expanduser("~/Games/epic-games-store/")]
|
||||
for wine_prefix in possible_wineprefixes:
|
||||
|
@ -68,7 +70,9 @@ class GameListInstalled(QScrollArea):
|
|||
def auto_import_games(self, game_path):
|
||||
if not os.path.exists(game_path):
|
||||
return
|
||||
|
||||
if os.listdir(game_path) == 0:
|
||||
logger.info(f"No Games found in {game_path}")
|
||||
return
|
||||
for path in os.listdir(game_path):
|
||||
json_path = game_path + path + "/.egstore"
|
||||
print(json_path)
|
||||
|
|
|
@ -30,6 +30,7 @@ class ImportDialog(QDialog):
|
|||
|
||||
def button_click(self):
|
||||
if self.import_game():
|
||||
QMessageBox.about(self, "Info", "Please restart App to reload installed Games")
|
||||
self.close()
|
||||
else:
|
||||
self.info_text.setText("Failed to import Game")
|
||||
|
|
Loading…
Reference in a new issue