1
0
Fork 0
mirror of synced 2024-06-26 18:20:50 +12:00
Commit graph

861 commits

Author SHA1 Message Date
loathingKernel 10b845c0aa Lgndr: Save the manifest if it was downloaded while verifying 2022-08-02 10:42:38 +03:00
loathingKernel 545d77ef07 Lgndr: Expose 'resolve_aliases' for outside usage 2022-08-02 10:42:38 +03:00
loathingKernel 3aae3887f6 Lgndr: Create argument models for consistent function arguments and cleaner implementation.
Lgndr: Prefix files that aren't part of legendary with 'api_'
Lgndr: Return statistics from 'verify_game' instead of parsing the exception
VerifyWorker: Add 'error' signal for exceptions.
2022-08-02 10:42:38 +03:00
loathingKernel 197f915fb3 InstallOptionsModel: Rename fields to use the same names as Legendary's arguments 2022-08-02 10:42:38 +03:00
loathingKernel 883bd268ff Mirror Legendary classes structure in the shim.
Lgndr: Move code segments copied from `prepare_download` back to their original location in `install_game`
Lgndr: Add the LgndrLogHandler at initialization instead of every function.
Lgndr: Move `verify_game` to its original place in `LegendaryCLI`
Lgndr: Change the way DLManager is patched into LegendaryCore proper
Shared: Add singleton for LegendaryCLI, LegendaryCoreSignleton returns core from LegendaryCLI
VerifyWorker: Update to use `verify_game` from `LegendaryCLI` directly
PreLaunchThread: Initialize LegendaryCLI to get LegendaryCore from it
InstallDialog: Update `prepare_install` argument names
2022-08-02 10:42:38 +03:00
loathingKernel 3892f4a594 ImportGroup: Update the shim stuff for the import worker 2022-08-02 10:42:38 +03:00
loathingKernel 51c45015a4 InstallDialog: Remove unused arguments 2022-08-02 10:42:38 +03:00
loathingKernel d4bf783018 Update core to the submodule rebase 2022-08-02 10:42:38 +03:00
loathingKernel fd2c094dc2 Add override for prepare_overlay_install() 2022-08-02 10:42:38 +03:00
loathingKernel 9af4e7ead8 Specify correct return type for prepare_download() and disable formatting for copied code segments 2022-08-02 10:42:38 +03:00
loathingKernel 2c2f44c97c Use a loggin handler in stead of monkeypatching for raising LgndrException 2022-08-02 10:42:38 +03:00
loathingKernel 78fb13830e Set logging level instead of disabling it in DLManager 2022-08-02 10:42:38 +03:00
loathingKernel 99ab488820 Pass the correct status queue and monkeypatch run_real in prepare_download 2022-08-02 10:42:38 +03:00
loathingKernel 9698bf445b Re-enable logging in DLManager correctly 2022-08-02 10:42:38 +03:00
loathingKernel 82015f21d4 Fix ordering in InstallDownloadModel to match prepare_download 2022-08-02 10:42:38 +03:00
loathingKernel ad81546b35 Adjust EGLSyncGroup to use LgndrException 2022-08-02 10:42:38 +03:00
loathingKernel c302775acd Remove dead code from EGLSyncGroup 2022-08-02 10:42:38 +03:00
loathingKernel d4718f823f Use custom exception to overload log.error and log.fatal in egl_import and egl_export 2022-08-02 10:42:38 +03:00
loathingKernel 3ec8973de8 Update shim UIUpdate and DLManager to the cleanup changes from the submodule 2022-08-02 10:42:38 +03:00
loathingKernel a9954a98f6 LegendaryCore: Re-use super's prepare_download() instead of copying it. 2022-08-02 10:42:38 +03:00
Stelios Tsampas 04a76ed2ff Include PoC implementation of LegendaryCLI for the import_game method 2022-08-02 10:42:38 +03:00
Stelios Tsampas e58d33ee5d Create shim legendary classes for overloaded functions 2022-08-02 10:42:37 +03:00
Stelios Tsampas f4743d99b6 Remove submodules 2022-08-02 10:42:37 +03:00
Dummerle e6fc2323f1
Do not exit console, when game exited 2022-08-01 01:22:37 +02:00
loathingKernel 4139797eff ImageManager: Also test if 'game.metadata' has 'keyImages' 2022-07-28 22:20:06 +03:00
loathingKernel e005423d0a GameUtils: Remove functions moved to LaunchHelper 2022-07-11 23:07:00 +03:00
loathingKernel ef88a913f9 LaunchHelper: Add terminate and kill button in the console (visible only in windows for now) 2022-07-11 22:18:26 +03:00
loathingKernel 43c8cf8b52 LaunchHelper: Move console into the game_launch_helper folder
LaunchHelper: Log stderr to the console
2022-07-11 22:18:26 +03:00
loathingKernel 406cfc136f ImportGroup: Close file after reading app_name 2022-07-11 22:18:26 +03:00
loathingKernel 06e5901aab ImportGroup: properly name the hlayout 2022-07-11 22:18:26 +03:00
Dummerle 165b289c4f
Remove extra information for eos overlay 2022-07-10 22:00:35 +02:00
Dummerle 87ea29d005
Fix appname error in game_info.py and error in postinstall 2022-07-10 01:18:19 +02:00
Dummerle ef5e814f64
Fix bug, hwn launching origin games 2022-07-07 23:56:19 +02:00
loathingKernel 0d6c9a8505 ImportGroup: Show messagebox when importing multiple games (scanning install folder)
I moved around a few things because the separate lists felt like they
would make the handling a bit complicated.
2022-07-02 22:19:40 +03:00
loathingKernel 76cd33054a EGLSyncListGroup: Move message box outside of thread to prevent "parent in other thread" crash 2022-07-02 11:48:33 +03:00
Dummerle 667ca0ecb6
Move import games to separate thread 2022-07-01 17:43:25 +02:00
Dummerle 2f43431589
Do not remove config, when deleting a game, but keep files 2022-07-01 17:42:41 +02:00
Dummerle 93c732401c
Fix error after uninstalling, if action in tray icon does not exist 2022-07-01 17:03:18 +02:00
Dummerle 35f4807a26
Fix Attribute error on too old Qt version 2022-06-29 21:45:15 +02:00
Dummerle 59032e3577
Merge pull request #224 from aznd/fix_restart_func
Fix get_rare_executable func for macOS
2022-06-27 22:06:27 +02:00
aznd 576b4571cf Fix get_rare_executable func for macOS 2022-06-27 16:53:19 +02:00
Dummerle 52765be01a
Fix console and game exit when rare closed 2022-06-27 00:53:28 +02:00
aznd 19ac7e6c50 Don't double delete the dir 2022-06-26 17:27:35 +02:00
loathingKernel 1ad5413e02 LibraryWidget: Always update the progress label to work-around layout issue 2022-06-26 14:31:12 +03:00
loathingKernel b8668854db Move the installed and available games count to the head bar.
Moving them to the head bar makes the library containers
simpler structurally as there the library's frame can be removed.

Remove games_tab UI files as they were getting very thin,
what they contained is being setup manually instead

Signed-off-by: loathingKernel <142770+loathingKernel@users.noreply.github.com>
2022-06-25 19:21:24 +03:00
Stelios Tsampas 61a2a6781d Add window hint to keep minimize button while still disabling close button
Disable reject method for launch dialog
Don.t update the assets again for the 32bit and mac games by waiting for ImageWorker to finish
2022-06-24 11:29:41 +03:00
Dummerle 7cba799d21
Merge pull request #220 from loathingKernel/fixups
Bug fixes for merged features
2022-06-23 22:13:57 +02:00
Dummerle 583f75d235
Fix some errors 2022-06-23 22:01:14 +02:00
Dummerle dace98b567
Add debug console for games and use same QApplication base for Rare and helper 2022-06-23 21:26:08 +02:00
Dummerle 43369ae143
Revert "Add a restart function in debug settings to easier test game helper"
This reverts commit cbf51b6bb7.
2022-06-23 20:11:09 +02:00
loathingKernel 367f6cf0eb Add window buttons to Launch and Login Dialogs 2022-06-23 20:39:43 +03:00
loathingKernel 7dbe414b87 Pass edited files through black 2022-06-23 18:05:04 +03:00
loathingKernel 145bc5f540 Use SlidingStackedWidget for the login dialog.
Also fixes the login window missing dialog type hints for the window manager.

Signed-off-by: loathingKernel <142770+loathingKernel@users.noreply.github.com>
2022-06-23 17:57:29 +03:00
loathingKernel fe40dac368 Don't show the installing widget for Epic Overlay and DLCs
Signed-off-by: loathingKernel <142770+loathingKernel@users.noreply.github.com>
2022-06-23 17:54:26 +03:00
Dummerle d8a766e756
Fix missing icon font prefix for LTS distros 2022-06-22 20:06:38 +02:00
loathingKernel 9e394f9981 GamesTab: Create methods for repeated widget removal and deletion code segments
HeadBar: Compact the headbar, re-use ButtonLineEdit from shop for the search function
SelectViewWidget: Remove content margins and make widget naming consistent

Signed-off-by: loathingKernel <142770+loathingKernel@users.noreply.github.com>
2022-06-22 20:00:00 +03:00
loathingKernel 5eb3ae7f80 Add SlidingStackedWidget from #196 2022-06-22 16:53:26 +03:00
loathingKernel ff09475cac ImageManager: Handle broken image.cache 2022-06-21 01:05:39 +03:00
Dummerle b3843b095f
Merge pull request #215 from aznd/enhancements_moving_game
Small enhancements in moving game
2022-06-20 22:32:46 +02:00
loathingKernel 08ab130c5c LibraryLayout from #196
Introduces the LibraryLayout from #196.
This layout distributes the available space in either horizontal side and in-between the widgets.

Known issues: When searching for a game, it will re-align visible widgets, effectively centering the results.
This is because the search and grouping functions are interleaved. #196 handles it differently by adjusting
the opacity and re-ordering of the irrelevant widgets.

Signed-off-by: loathingKernel <142770+loathingKernel@users.noreply.github.com>
2022-06-20 19:04:46 +03:00
aznd 9535885318 Change "Available space" text in pop up for uniformity 2022-06-20 16:13:34 +02:00
aznd d51bba60db Use shutil.disk_usage because statvfs not available outside of UNIX 2022-06-20 16:11:58 +02:00
Dummerle d772c4000e
Merge pull request #213 from loathingKernel/image_widget
Add ImageWidget and LibraryWidget from #196
2022-06-19 22:53:11 +02:00
Dummerle cbf51b6bb7
Add a restart function in debug settings to easier test game helper 2022-06-19 22:50:13 +02:00
Dummerle 87a110b62b
Fix missing game environment and add last played to game meta 2022-06-19 22:07:21 +02:00
loathingKernel 6335293eef Add ImageWidget and LibraryWidget from #196
Add the Image and Library widgets from #196. In this iteration they replace the image `QLabel` in the existing widgets.

The `PaintWidget` in the `InstallingWidget` has been replaced by the future `LibraryWidget` that has progress indication.

The `ImageWidget` was also used to replace the image `QLabel` in `GameInfo` and `GameDlc` widgets.

Signed-off-by: loathingKernel <142770+loathingKernel@users.noreply.github.com>
2022-06-19 20:42:49 +03:00
loathingKernel 3a28f2f0a2 Implement image manager
Signed-off-by: loathingKernel <142770+loathingKernel@users.noreply.github.com>
2022-06-19 17:12:59 +03:00
Dummerle 7073a6ad7a
Merge pull request #212 from loathingKernel/theming
Split resources into base and themes to make diffs lighter
2022-06-19 00:49:14 +02:00
Dummerle d288ed3b78 Immediately stop helper after launching an origin game to avoid zombie processes 2022-06-18 23:55:35 +02:00
loathingKernel 99f3303db1 Resources: Split stylesheets from base resources
Stylesheets: Each stylesheet specifies its own resources file

Signed-off-by: loathingKernel <142770+loathingKernel@users.noreply.github.com>
2022-06-19 00:01:56 +03:00
Dummerle 37ae6e2b6e
Fix most errors 2022-06-18 13:25:39 +02:00
Dummerle 8a9ef67d2f
Check for running games at startup 2022-06-13 22:59:35 +02:00
Dummerle 0bb1d0ef7e
Add communication system for game helper 2022-06-13 22:59:35 +02:00
Dummerle b3d7f5ba92
Add system environment to processes 2022-06-13 22:59:34 +02:00
Dummerle c4617de206
Add offline and some other options and cleanup code 2022-06-13 22:59:34 +02:00
Dummerle 4d441c4068
Integrate helper with rare to launch games 2022-06-13 22:59:34 +02:00
Dummerle 54f82aa4b5
Basic working helper process 2022-06-13 22:59:34 +02:00
Dummerle 9bfa841ef5
Add game helper to launch games in a detached process 2022-06-13 22:59:34 +02:00
Dummerle feb45afc47
Fix eos overlay bug not showing installed correct 2022-06-13 21:37:26 +02:00
Dummerle 46614e4b1d
Merge pull request #199 from aznd/feature-move-across-drives
Update move game to support moving across different drives
2022-06-12 23:16:42 +02:00
Dummerle 260eac6a33
Update legendary 2022-06-12 00:20:16 +02:00
Dummerle 5593ab80ca
Update translations 2022-06-12 00:20:16 +02:00
Dummerle 89d7b62f92
Fix click on unreal engine assets 2022-06-12 00:20:16 +02:00
Dummerle 4db4dfa0da
Fix infinite loading bug in shop 2022-06-12 00:20:15 +02:00
aznd ca25e9ad7c MoveGameAcrossDrive: Implementation 2022-05-30 22:26:45 +02:00
Stelios Tsampas 06c89b459e InstallDialog: Remove QMessageBox, use existing dedicated label
InstallInfoWorker: Reset excepthook to default

Also pass through black formatter
2022-05-27 13:26:01 +03:00
loathingKernel 3bf7b20fbc InstallDialog: Add max shared memory override and download reordering options
Fixes: #206
2022-05-26 23:17:02 +03:00
aznd ab55325591 Fix typo 2022-05-13 22:29:09 +02:00
loathingKernel 4ec42a1708 InstallDialog: Move worker signals inside worker class
Signed-off-by: loathingKernel <142770+loathingKernel@users.noreply.github.com>
2022-05-05 15:25:28 +03:00
Stelios Tsampas f91b3651ae Console: Move Environment Variables UI to a file
Signed-off-by: Stelios Tsampas <loathingkernel@gmail.com>
2022-05-05 13:27:39 +03:00
Stelios Tsampas 1c296474c5 Add a bunch of accumulated fixes.
Shared: Require an argument to initialize the each singleton, if it is called uninitialized, raise a RuntimeError
InstallDialog: Use QCheckBox label for the information text and remove the layout
LaunchDialog: Minor code clarity improvements
Console: add a Dialog with the process's environment variables
GameUtils: Inherit the system's environment and not a clean one
ImportGroup: Add the ability to automatically import all games in a folder
RareStyle: Use rgb values, remove hex codes and rgba values
IndicatorLineEdit/PathEdit: Infer object names from class name, don't override layout method
Models: Type fields as Optional (`Union[<something>, None]`)
Paths: Use pathlib for everything

Signed-off-by: Stelios Tsampas <loathingkernel@gmail.com>
2022-05-05 13:27:39 +03:00
Dummerle f025047021
Add a check if qt found current screen. Fallback to primary screen 2022-05-03 23:08:22 +02:00
Dummerle c53d31380e
update legendary to fix webview login 2022-05-02 21:34:39 +02:00
Dummerle afc919421c
Do not run test workflow on every commit + fix small desktop link on windows 2022-04-26 21:13:37 +02:00
Dummerle 1ae1f81915
Fix Error, that origin games are not shown 2022-04-26 21:03:43 +02:00
Dummerle c698aad5a9
Remove tray icon quick launch item, when game was uninstalled 2022-04-26 20:50:40 +02:00
Dummerle d2436c0cda
Show waning text, if game has no metadata. Only launching offline 2022-04-25 23:32:32 +02:00
Dummerle 150fff348b
Fix Desktop shortcut and login dialog task bar icon + bump version 2022-04-25 23:32:26 +02:00
aznd 87c3534da4
Fix uninstall for third party launcher games (#200)
* Dont allow third party launcher games to be uninstalled

* Fix indentation
2022-04-23 17:03:03 +02:00
Dummerle 01a513d844
Do not start rare with --desktop-shortcut option 2022-04-18 11:45:14 +02:00
Dummerle bea6311df5
Catch error, if re-login fails 2022-04-13 01:08:28 +02:00
Dummerle 613de928a6
Add a log to non debug mode, to get python version and os 2022-04-13 01:08:28 +02:00
Dummerle 8b723f7fcc
Update install prequisites, which raised an error 2022-04-13 01:08:27 +02:00
aznd 7a82091285
Implement moving game installations (#193)
Implement moving game installations
2022-04-10 21:14:46 +02:00
Dummerle 48562f6527
Use pathlib for resources path, to fix FileNotFoundError 2022-04-10 14:24:41 +02:00
Dummerle 0bb74197ce
Remove version and codename from paths.py 2022-04-04 23:25:38 +02:00
Dummerle 5b8bb411ee
Don't create resources folder in paths.py 2022-04-04 23:21:23 +02:00
Dummerle 57f10b7ec0
Fix game finished signal, if rare exited 2022-04-04 23:12:21 +02:00
Dummerle 97214d5267
Optimize steam grades 2022-04-04 21:02:01 +02:00
MultisampledNight e234656951
Use QStandardPaths everywhere needed 2022-03-31 21:58:18 +02:00
MultisampledNight a73fb2e01b
Merge create_desktop_link and Rare's version 2022-03-31 21:58:18 +02:00
MultisampledNight 30361eb4bb
Use QStandardPaths instead of guessing ~/Desktop 2022-03-31 21:58:15 +02:00
Stelios Tsampas 6249bd19bb Remove py files for the settings widgets from the old location 2022-03-30 01:51:23 +03:00
Stelios Tsampas 303bd0fd20 A bunch of minor UI fixes 2022-03-29 00:36:42 +03:00
BuildTools ee766b72a9 Add line space between processes in debug console 2022-03-28 21:11:22 +02:00
Dummerle a978771d82
Update console and origin launch 2022-03-27 23:03:48 +02:00
Dummerle 8ac9a1c41f
Rewrite game launch code; Fix override_exe; auto renew session 2022-03-27 21:52:32 +02:00
Dummerle bdbb840e32
Replace IndicatorEdit with PathEdit for pre-launch 2022-03-22 21:55:49 +01:00
Dummerle 7f44ca7985
Fix proton settings and bug in pre-launch 2022-03-22 21:48:20 +01:00
Dummerle a98ffb766e
Fix question, if no save path exists and move env vars to default game settings 2022-03-22 20:40:23 +01:00
Dummerle 44e0bbb14a
Better text for pre launch command 2022-03-21 23:01:55 +01:00
Dummerle b996aac3f7
Fix Wine Resolver, mangohud, pre launch, 2022-03-21 23:01:55 +01:00
Dummerle 89e1336940
Fix proton prefix settings, saving always 2022-03-21 23:01:55 +01:00
Dummerle 81da5faec9
Change Linux settings to default game settings 2022-03-21 23:01:53 +01:00
Dummerle 49c68917a7
Rename filter "All" to "All games" 2022-03-21 23:00:33 +01:00
Dummerle 3c148d8093
Add wrapper for PahEdit edit function to accept "~" as $HOME 2022-03-21 23:00:33 +01:00
Dummerle d077e2bc24
Add pre_launch settings 2022-03-21 23:00:33 +01:00
Dummerle 1a84abcb2b
Move Proton Settings so separate file 2022-03-21 23:00:32 +01:00
Dummerle c26a30d9c9
Add load meta settings for 32 bit and macos 2022-03-21 23:00:32 +01:00
Dummerle 6de9a4c15e
Merge pull request #180 from aznd/envvars
Implement environment variables
2022-03-21 22:53:20 +01:00
aznd d528d82462 Fix crash when no keys exists 2022-03-21 22:40:02 +01:00
aznd d3d269b16c Append row 2022-03-20 22:28:47 +01:00
aznd db3b409b18 Fix indexerror when trying to delete a env var that hasnt been saved to the config yet 2022-03-20 21:42:51 +01:00
aznd 12f0f0c806 Cover a new use case 2022-03-20 00:46:07 +01:00
aznd be643eacb1 Fix segfault 2022-03-20 00:04:14 +01:00
aznd 937c306aa5 Add helper function for appending row and fix a bug 2022-03-19 23:23:36 +01:00
aznd c84cc388fb Implement env_vars 2022-03-19 16:57:56 +01:00
Stelios Tsampas 0718753e3f Wrappers: Make widgets and the scrollarea smaller, adjust size on scrollbar visibility 2022-03-19 17:51:06 +02:00
Stelios Tsampas c70e9e9b02 Avoid making window smaller than horizontal contents 2022-03-18 19:36:47 +02:00
Stelios Tsampas cb852b6912 Align a bunch of stuff 2022-03-18 19:12:19 +02:00
Stelios Tsampas 717945d729 SideTabWidget: Add container widget with a title and a scrollarea as the master widget for each tab 2022-03-18 18:03:14 +02:00
aznd c2a117e226 Delete comments and stub functions 2022-03-17 20:01:57 +01:00
aznd 9540c2c40f Ask user what to do when env var already exists 2022-03-17 20:01:57 +01:00
aznd 8de1ca7c4e Use filewatcher to update table when required and use different layout so user can use escape key in the env var table to go one index back 2022-03-17 20:01:57 +01:00
aznd 6929c04c72 Satisfy linter 2022-03-17 20:01:57 +01:00
aznd 0f03c06dab Implement env_vars 2022-03-17 20:01:57 +01:00
Dummerle 324530171e
Change kinetic scroll exceptions to property 2022-03-17 19:51:19 +01:00
Dummerle 16fa26e1df
Fix crash for Fortnite extension pack 2022-03-16 17:47:18 +01:00
Stelios Tsampas 9b5b54929d RareStyle: Update QProgressBar and QScrollBar
RareStyle: Add QToolBox style
RareStyle: Add comment section with information about the colors
2022-03-14 20:52:49 +02:00
Dummerle 66ae7c614f
Show wrapper widget for proton and mangohud with disabled button 2022-03-14 17:23:55 +01:00