1
0
Fork 0
mirror of synced 2024-06-03 03:04:42 +12:00
Commit graph

33 commits

Author SHA1 Message Date
lennard 554d3557d3
fix auto sync saves 2023-03-19 20:23:44 +01:00
lennard 3874fac402
Sync saves when game finished 2023-03-18 16:14:01 +01:00
lennard 901f339415
Only auto sync in launch helper if enabled
Signed-off-by: loathingKernel <142770+loathingKernel@users.noreply.github.com>
2023-03-08 22:29:53 +02:00
lennard 45ecaa39f3
Add sync worker to launch helper
Signed-off-by: loathingKernel <142770+loathingKernel@users.noreply.github.com>
2023-03-08 22:27:02 +02:00
lennard 63e4223a96
Move slim RareGame to different file, to avoid circular import
Signed-off-by: loathingKernel <142770+loathingKernel@users.noreply.github.com>
2023-03-08 22:14:19 +02:00
lennard d42a631713
Add dry run argument to launch helper 2023-03-08 21:33:58 +02:00
loathingKernel 9d4e0995fd
RareAppException: Create exception handler that can show a dialog
The reason is that `sys.excepthook` is a global attribute which we
have to unset for threads because we show a Qt dialog in it and we
can't do that from threads. Before this change, we used to unset
it in threads, but since it is a global attr, that was unsetting it
for the whole application. We cannot reliably reset it because we
can have multiple threads executing and there will be race conditions.

To fix this situation, `RareAppException` implements a callback to
be patched into `sys.excepthook` which emits a signal to be serviced
by the the `RareAppException` instance in the main thread.
`RareAppException` can be subclassed to implement the
`RareAppException._handler` method for domain specific handling.

The `RareApp` base class instantiates its own `RareAppException`
instance for early basic handling. `RareAppException` is subclassed
into `RareException` and `RareLauncherExcpetion` in `Rare` and `RareLauncher`
respectively to implement the aforemention domain specific handling.
Each of these classes deletes the previous instance and replace it
with their specialized handlers.
2023-03-07 17:11:21 +02:00
loathingKernel 7fbd941c98 GameProcess: Move GameProcess out of GameUtils and into its own file under rare/shared
In the same vain, move `rare/game_launch_helper/message_models` into `rare/modes` since it is used in both the server and the client side.

Signed-off-by: loathingKernel <142770+loathingKernel@users.noreply.github.com>
2023-02-04 17:38:06 +02:00
lennard 7d0ac98a7c
Add a workaround for Fall Guys 2023-01-09 18:12:44 +01:00
loathingKernel a5c8d92e24 Application: set HiDPi scaling attribute 2022-10-29 14:50:18 +03:00
lennard 4cadc263e6
Fix --skip-update-check option for launch helper 2022-10-01 00:45:22 +02:00
loathingKernel 2f5da4e628 GameLaunchHelper: actually exit when game has finished 2022-09-16 17:33:26 +03:00
Stelios Tsampas afcb3f7e7a GameLaunchHelper: Allow closing the window only if the application has exited or crashed 2022-09-08 16:02:17 +03:00
Stelios Tsampas 8d9f02eab5 Initialize logging in RareApp and log both Rare and GameLaunchHelper 2022-09-08 15:33:36 +03:00
Stelios Tsampas e4638c2fa3 Console: Center window on show() 2022-09-08 13:34:47 +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
loathingKernel aa9cf4c5b5 GameLaunchHelper: Remove LegendaryCoreSingleton usage 2022-09-04 21:40:41 +03:00
Dummerle 625066d2da
Fix two small errors in game launch helper 2022-08-27 12:32:20 +02:00
loathingKernel 38dfdc8bc2 Lgndr: Remove LegendaryCLISingleton
Since `LegendaryCLI` isn't stateful, we can instantiate
it when needed
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
Dummerle e6fc2323f1
Do not exit console, when game exited 2022-08-01 01:22:37 +02: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
Dummerle 52765be01a
Fix console and game exit when rare closed 2022-06-27 00:53:28 +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 87a110b62b
Fix missing game environment and add last played to game meta 2022-06-19 22:07:21 +02:00
Dummerle d288ed3b78 Immediately stop helper after launching an origin game to avoid zombie processes 2022-06-18 23:55:35 +02:00
Dummerle 37ae6e2b6e
Fix most errors 2022-06-18 13:25:39 +02:00
Dummerle 0bb1d0ef7e
Add communication system for game helper 2022-06-13 22:59:35 +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
Renamed from rare/utils/game_process_helper.py (Browse further)