Commit Graph

25 Commits

Author SHA1 Message Date
kramo
643ca368a6 Unify games import 2023-03-29 00:23:23 +02:00
kramo
228db1b2f0 Add option to launch games by clicking cover 2023-03-26 11:04:40 +02:00
Bananaman
732bb77192 Refactor game launching, and fix Windows support
The function was getting a bit convoluted to follow, and there was a maintenance burden of having to remember that "shell=True" should only be true if the argument is a single string to be passed exactly as-is to the shell. If it's a list, only the first value in the list would be ran as the shell command and the rest would be given as arguments to the shell itself.

Therefore, it's been refactored to automatically determine shell-mode based on whether "args" is a list or a string.

On Windows, we now generate a correctly escaped shell-string via "shlex". This ensures that we properly support spaces inside quoted launch arguments, by auto-escaping them on a per-argument basis.

The extra pylint hint is needed because the import is detected as unused on non-Windows machines.
2023-03-25 14:29:28 +01:00
kramo
716051d826 Fix games not launching on Windows 2023-03-25 11:09:12 +01:00
kramo
030c220d7e Cleanups 2023-03-25 00:50:17 +01:00
kramo
41c97e1af7 Move menu models to the game class 2023-03-25 00:14:37 +01:00
kramo
b65bab3528 Move toggle_hidden into the game class 2023-03-24 23:26:36 +01:00
kramo
ecceaabff1 Move run_command into the game class 2023-03-24 23:21:50 +01:00
kramo
6b103c996b Remove redundant get_cover function 2023-03-24 23:09:56 +01:00
kramo
a665241d76 Disable some pylint warnings 2023-03-24 20:29:36 +01:00
kramo
b281a4bd0d Cleanups 2023-03-22 08:36:37 +01:00
kramo
eb3f9a8b8e Use blacklist for non-game items 2023-03-15 23:46:34 +01:00
kramo
e2a2ea6da2 Add developer property 2023-03-15 13:12:48 +01:00
kramo
8a2ff2561b Cleanups 2023-03-15 02:22:11 +01:00
kramo
bd0cf7402a Code style 2023-03-15 01:57:43 +01:00
kramo
f416155c2d Update code style 2023-03-14 23:05:47 +01:00
kramo
32d9f9a880 Cleanups 2023-03-14 21:20:59 +01:00
kramo
24eac24c33 Better image handling 2023-03-14 18:42:05 +01:00
kramo
a4b1b8efd9 Refactor 2023-03-14 16:48:00 +01:00
kramo
0ee20a1a1f Update animation 2023-03-12 12:00:54 +01:00
kramo
4ed6ab2bab Fix overlay layering 2023-03-11 23:41:25 +01:00
kramo
4b9e3666be Make menu button only appear on hover 2023-03-11 23:22:36 +01:00
kramo
aa77fc8bf3 Show play button on hover - closes #4 2023-03-11 22:07:56 +01:00
kramo
a9a5a1d3c2 Rename to Cartridges 2023-02-01 16:34:26 +01:00
kra-mo
f5c1012628 Add project files 2022-12-26 14:38:37 +01:00