1
0
Fork 0
mirror of synced 2024-05-04 20:52:58 +12:00
Commit graph

2017 commits

Author SHA1 Message Date
loathingKernel f6a372cc1f ConfigHelper: Add wine related functions
`get_wine_prefixes`: Returns all prefixes defined in legendary's configuration
`get_wine_prefix`: Returns wine prefix associated with a game
2023-12-24 21:08:26 +02:00
loathingKernel efe9031211 Proton: Add functions to find and integrate compatibilty tools and runtimes 2023-12-24 21:08:26 +02:00
loathingKernel 1f34ad4b13 ProtonSettings: Move proton search function into utils/proton.py 2023-12-24 21:08:26 +02:00
loathingKernel 616df235cd ListWidget: Use line variant for qta icon 2023-12-24 21:08:26 +02:00
loathingKernel 400625975d Dialogs: Re-implement Launch and Login dialogs on top of a few common super-classes
To keep dialogs in a common format and allow them to share the same
properties, three classes of dialogs have been implemented inheriting from
each other.

The classes are `BaseDialog` -> `ButtonDialog` -> `ActionDialog`

* Basedialog: is the basis of all dialogs and is responsible for
rejecting close requests from the window manager and the keyboard.
It also restricts access to `exec()` and `exec_()` because they are harmful.
It serves as the basis of Launch and Login dialogs

* ButtonDialog: is offering buttons for accepting or rejecting the presented
option. It implements its own buttons and exposes abstract methods to
implement handling in them. It restricts access to `close()` because these
dialogs should always product a result.
It is the basis of Uninstall, Selective dialogs.

* ActionDialog: in addition to the ButtonDialog, it offers an action buttom
with to validate the form or to make the dialog unable to close. It serves
as the basis of Install and Move dialogs.
2023-12-24 21:08:26 +02:00
Stelios Tsampas 95d73ea234
Merge pull request #351 from loathingKernel/next
Usability fixes
2023-12-23 14:27:01 +02:00
loathingKernel 69a73882f5
Lgndr: Don't try to anonymize 2023-12-23 13:48:21 +02:00
loathingKernel 51904efa90
GameWidget: Request pixmap in paintEvent.
Requesting the pixmap in `paintEvent` only loads the
pixmap when the widget first becomes visible, making loading
the library smoother. Also avoid spawning multiple singleshot
QTimers and use QObject's internal timer, with CoarseTimer precision.
2023-12-23 13:46:12 +02:00
loathingKernel eb0d727d34
Misc: exclude deleted files in ui2py.sh 2023-12-23 13:45:12 +02:00
loathingKernel 6d3dd3784e
RareCore: Temporarily disable automatic egl sync and remove UI option.
Also set some more defaults for legendary because Rare lacks support for
them. Forced at startup.

* Set `disable_auto_crossover` to `false` because we don't support CX yet.
* Set `egl_sync` to `false` because issues.
2023-12-23 13:38:29 +02:00
Stelios Tsampas a2baa3a978
Merge pull request #350 from loathingKernel/next
Update readme
2023-12-20 12:26:00 +02:00
loathingKernel 09e4fb9f35
Update readme 2023-12-20 12:25:37 +02:00
Stelios Tsampas dedb2bf66c
Merge pull request #349 from loathingKernel/next
Release 1.10.11
2023-12-20 11:25:45 +02:00
loathingKernel edab90eb4b
Rare: Release 1.10.11 2023-12-20 11:25:29 +02:00
loathingKernel 8e0333f8a7
Update readme 2023-12-20 11:25:29 +02:00
Stelios Tsampas 7af01591da
Merge pull request #348 from loathingKernel/next
Update README.md
2023-12-19 15:11:19 +02:00
loathingKernel e23cb61768
Update readme 2023-12-19 12:07:56 +02:00
loathingKernel b039f9e06c
LaunchDialog: allow legendary to check for updates in its own way 2023-12-19 11:46:13 +02:00
Stelios Tsampas 8575e4001f
Merge pull request #347 from loathingKernel/next
Rare: re-release 1.10.9 as 1.10.10 for PyPI
2023-12-18 13:32:22 +02:00
loathingKernel e08169f9d6
Rare: re-release 1.10.9 as 1.10.10 for PyPI 2023-12-18 13:27:36 +02:00
Stelios Tsampas a50fed7d5a
Merge pull request #345 from loathingKernel/next
Workflows: inherit secrets for pypi workflow
2023-12-18 13:07:27 +02:00
loathingKernel 981574ab63
Workflows: inherit secrets for pypi workflow 2023-12-18 13:06:44 +02:00
Stelios Tsampas 05471c97e2
Merge pull request #343 from loathingKernel/next
Rare: update flatpak requirements
2023-12-18 12:05:34 +02:00
loathingKernel c44ef55a14
Rare: update flatpak requirements 2023-12-18 11:59:57 +02:00
Stelios Tsampas c068b1f183
Merge pull request #342 from loathingKernel/next
Paths: Apply the executable rename in `pythonw` too
2023-12-18 10:55:26 +02:00
Stelios Tsampas b3bff4ef3f Paths: Apply the executable rename in pythonw too
Fixes launching the game launcher when Rare is installed through `pip`
on Windows.

Fixes: #339
2023-12-18 10:44:47 +02:00
Stelios Tsampas 2803319373
Merge pull request #338 from loathingKernel/next
Prepare for 1.10.9
2023-12-17 19:46:58 +02:00
loathingKernel 85d29372d4
GameSettings: Hide proton settings on macOS 2023-12-17 19:34:37 +02:00
loathingKernel bc485ed40b
RareCore: Don't delete overlay RareGame at exit 2023-12-17 19:34:08 +02:00
loathingKernel a990400e34
Rare: Release 1.10.9 2023-12-17 15:22:09 +02:00
loathingKernel 32565b3a9c
HeadBar: Update some strings 2023-12-17 01:28:56 +02:00
loathingKernel dfa60aa99f
ImportGroup: Add platform selection when importing games.
If we are importing multiple games, default to importing the native platform
if the game supports it, otherwise fallback to the Windows platform
2023-12-17 01:20:07 +02:00
loathingKernel c9264c732e
HeadBar: Default to Mac games fitler on macOS 2023-12-16 21:57:09 +02:00
loathingKernel 1cf53e3b54
Library: Filter unreal engine entries expect for the dedicated option 2023-12-16 20:26:56 +02:00
loathingKernel b93435d920
Lgndr: Disable legendary's update checks and ignore config file options 2023-12-16 16:23:58 +02:00
loathingKernel bfa2335551
RareCore: Strengthen config initialization and checks
* Check if the `default_platform` option exists and it is correct
* Check if `install_dir` and `mac_install_dir` are already set
2023-12-16 15:40:01 +02:00
loathingKernel 54ac89a85a
Lgndr: Validate default platform if it is coming from the config 2023-12-16 15:36:38 +02:00
loathingKernel 5f5e471169
RareGameBase: Add default_platform property
This property reports the default platform to use for a game based
on legendary's configuration and if they platform is available in the
game's assets.

Using that property we can make better choices on what platform to operate
on without user intervention. Currently we use it to infer the platform
in when installing, importing, and calculating game versions.
2023-12-16 14:02:53 +02:00
loathingKernel 447d704de3
Lgndr: Log what config location we are using 2023-12-16 13:57:32 +02:00
loathingKernel 1139765343
ImageSize: Make Library images slightly larger to accommodate more text on macOS 2023-12-16 13:52:37 +02:00
loathingKernel 8e573083ad
RareCore: Set install_dir and mac_install_dir on new configurations. 2023-12-16 13:52:06 +02:00
loathingKernel 79df146348
Rare: expand LEGENDARY_CONFIG_PATH before using it. 2023-12-16 13:50:48 +02:00
loathingKernel 0bd34af720
ImportGroup: calculate correct install dir when importing game 2023-12-16 01:28:37 +02:00
loathingKernel 6249e56849
InstallDialog: Oooooooof.gif
* Infer the displayed to reflect where the affected directory is
  If base_path is set outside of InstallDialog, display that.
  If the game is already installed, show the installation directory
  If neither of the above is true, use legendary's inference based on
  the default platform if the game supports it. Fallback to Windows.

* Disable irrelevant and potentially harmful options when the game is
  already installed, such as the installation path, the platform selection
  and creating a shortcut.

* Infer the correct platform based on the existing installation. If it
  is not installed, use the default platform if the game supports it and
  fallback to windows.

* Move the horrible lambda used to populate the error box when the
  platform was unsupported into a separate method.
2023-12-16 00:49:51 +02:00
loathingKernel db588ed4e2
Use legendary's installation directory inference 2023-12-16 00:40:15 +02:00
loathingKernel c3bdffcd50
RareCore: Check if LEGENDARY_CONFIG_PATH is set before creating a new config 2023-12-16 00:39:00 +02:00
loathingKernel 097b76fc6b
FetchWorker: Update strings MacOS -> macOS 2023-12-15 23:30:13 +02:00
loathingKernel 6d5b60a56e
LegendarySettings: Add path edit for macOS specific mac_install_dir option
Used only when installing macOS games on macOS, in any other OS
the setting is set to the same value as `install_dir`
2023-12-15 23:28:49 +02:00
loathingKernel 392b4b7896
RareSettings: Always show information label in interface section 2023-12-15 23:23:32 +02:00
loathingKernel fd809c708f
UI: Update some strings 2023-12-15 23:22:55 +02:00