1
0
Fork 0
mirror of synced 2024-08-30 09:22:27 +12:00
Commit graph

60 commits

Author SHA1 Message Date
loathingKernel
fb1175ee04
Main: Trust shebangs. Fixes launching games on NixOS
Co-authored-by: multisn8 <contact@multisamplednight.com>
2023-03-12 15:38:18 +02:00
lennard
d42a631713
Add dry run argument to launch helper 2023-03-08 21:33:58 +02:00
loathingKernel
1721677e33 GameWidget: Implement reactive and interactive labels
The `status_label` displays what is currently going on with the game.
It reflects the current operation running on it or if it requires special
attention (update, needs verification etc)

The `tooltip_label` displays hover information such as what happens
if a part of the widget is clicked or in the case of the launch button if
the game can run (without version check, offline etc)

The context menu on the widgets will be updated and populated according
to the installation state of the game. Since the context menu was revised
the shortcut creation code was revised too to make it more compact.

the `create_desktop_link` and `get_rare_executable` functions are moved
from `rare.utils.misc` to `rare.utils.paths` to avoid cyclical imports and
better grouping. Two functions are added, `desktop_link_path` to uniformly
calculate the path of the shortcut and `desktop_links_supported` which
checks if Rare supports creating shortcuts on the current platform.
`desktop_links_supported` should be used as safeguard before `desktop_link_path`.

Desktop links are currently untested on Windows but if `shortcut.Description`
works as expected, it should be good to go.
2023-02-07 13:41:59 +02:00
loathingKernel
0d4b75d399 GameProcess: Make it a persistent member of RareGame
The `GameProcess` class now acts as a persistent member of `RareGame`
that can be re-used for launching games. Its signals are handled and
repeated by `RareGame`.

Implements launching directly into `RareGame`

Signed-off-by: loathingKernel <142770+loathingKernel@users.noreply.github.com>
2023-02-04 17:38:06 +02:00
lennard
4cadc263e6
Fix --skip-update-check option for launch helper 2022-10-01 00:45:22 +02:00
Stelios Tsampas
9d28680804 Build: enable console output on windows if it is a test build 2022-09-13 12:38:43 +03:00
Stelios Tsampas
cbf4c38564 Redirect stdout and stderr to os.devnull if we are in a frozen GUI application form 2022-09-10 22:05:00 +03:00
Stelios Tsampas
c3e192cbbe Add requirements-full.txt with everything 2022-09-09 20:49:30 +03:00
Stelios Tsampas
d5d795ce79 Paths: Query paths after the OrganizationName and ApplicationName have been set
At the point they were evaluated, `OrganizationName` and `ApplicationName` are unset
resulting in wrong paths. As a quick fix, explicitly set them to their later values
Per OS examples:
Windows:
	before:
		data: C:\Users\<user>\AppData\Local
		cache: C:\Users\<user>\AppData\Local\cache
	after:
		data: C:\Users\<user>\AppData\Local\Rare\Rare
		cache: C:\Users\<user>\AppData\Local\Rare\Rare\cache
2022-09-08 01:27:37 +03:00
Stelios Tsampas
377fd486dc stupid quotes 2022-09-07 20:46:56 +03:00
Dummerle
0d43f1103d
Include source directory, when running from source 2022-09-05 20:18:40 +02:00
loathingKernel
0a89f0e0b8 Make launch and alias for start 2022-09-02 13:17:05 +03:00
Dummerle
a71bb1fe91
Add missing dependencies to pyproject.toml 2022-08-27 13:43:55 +02:00
loathingKernel
b15a5b7007 Fix game launching if compiled with Nuitka 2022-08-18 02:24:51 +03:00
loathingKernel
3ecbae0564 Utils: Rename utils.py to misc.py to not confuse PyCharm checker 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
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
Dummerle
cbf51b6bb7
Add a restart function in debug settings to easier test game helper 2022-06-19 22:50:13 +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
01a513d844
Do not start rare with --desktop-shortcut option 2022-04-18 11:45:14 +02:00
MultisampledNight
a73fb2e01b
Merge create_desktop_link and Rare's version 2022-03-31 21:58:18 +02:00
Dummerle
2e6890bfd9
Move appdata paths to utils/paths.py to avoid crashes, if PyQt5 does not exist (deb workflow) 2022-02-17 00:04:53 +01:00
aznd
9b59707a10
Unify strings formatting (#158)
* Part 1: Unifying strings

* Part 2: Unifying strings

* Part 3: Unifying strings

* Fix missing close bracket

* Remove unneeded str()
2022-02-01 22:29:34 +01:00
Stelios Tsampas
8f89eb6e88
Rare: pass through Black formatter 2021-12-27 00:37:13 +01:00
Dummerle
df885bafa6
Fix run from source 2021-12-13 22:05:05 +01:00
Dummerle
c5aeded9ad
Add some sys infos to debug option and print code name with --version 2021-12-11 23:41:55 +01:00
Dummerle
d93294536a
Add --test-start to use in appimage-builder 2021-12-11 00:18:57 +01:00
Dummerle
454b8ed80f
Fix wrong paths for sys.path 2021-12-10 19:56:44 +01:00
Dummerle
fc1f91e758
Insert source directory, only if run from source 2021-12-07 22:16:03 +01:00
Dummerle
ea13fc9433
Move legendary submodule to rare/legendary, to fix conflicts with already installed legendary 2021-12-07 21:49:15 +01:00
Dummerle
e79bee57c0 Some fixes for pylint and workflow 2021-09-18 17:21:43 +02:00
BuildTools
740153bd0d Fix create startmenu/desktop link 2021-09-18 16:34:43 +02:00
Dummerle
ba05cf3d2e some fixes for pylint 2021-09-13 22:44:59 +02:00
Dummerle
bb4f08691a Fix set locale to legendary locale + reformatting 2021-09-13 20:24:09 +02:00
Dummerle
c07992b982 Fix some memory leaks and some other errors 2021-09-12 23:28:54 +02:00
Dummerle
9570b52eed Add some options for debug; fix error in sync_widget.py; fix pylint workflow 2021-09-10 22:41:30 +02:00
Dummerle
c84a9e1f87 Some fixes 2021-09-06 21:46:51 +02:00
Dummerle
588558c6e9 add legendary submodule and rename custom_legendary to legendary in imports 2021-09-06 21:09:00 +02:00
Dummerle
5f0e918323
Merge branch 'main' into dev 2021-09-05 22:00:14 +02:00
BuildTools
f278a29c32 Fix .msi file and remove macos .app file, because is did not work 2021-09-05 00:54:43 +02:00
Dummerle
f7f7f83101
Merge branch 'main' into dev 2021-09-04 22:49:08 +02:00
Dummerle
5f01d99062 Add freeze.py to generate msi file for windows. (Bug fixed) 2021-08-30 20:34:53 +02:00
Dummerle
df5da90292 New api core for store requests 2021-08-22 22:22:17 +02:00
Dummerle
ff0ba4c544 Add wishlist offers in Store 2021-08-18 22:17:14 +02:00
Dummerle
ed81bbf399 Removed unused disable protondb option 2021-08-17 20:15:27 +02:00
Dummerle
59a7359e19 Set cache_dir and data_dir in one place (xdg) 2021-08-08 00:49:27 +02:00
Dummerle
a5997f62ab replace os.name with platform.system() to differentiate between mac and linux 2021-06-20 21:55:31 +02:00
Dummerle
69675ee639 Add --debug option 2021-06-20 21:07:56 +02:00