1
0
Fork 0
mirror of synced 2024-06-26 10:11:19 +12:00

Update Readme, Import Games

This commit is contained in:
Dummerle 2021-01-05 20:49:29 +01:00
parent dea75068bd
commit 80d3802208
4 changed files with 23 additions and 4 deletions

1
.gitignore vendored
View file

@ -6,3 +6,4 @@
/build/
/dist/
/Rare.egg-info/
/RareBuild.sh

View file

@ -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)

View file

@ -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)

View file

@ -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")