Commit Graph

18 Commits

Author SHA1 Message Date
kramo
6edd85e80a Cleanups 2023-04-14 14:44:44 +02:00
kramo
a08ed1d4c2 Cleanups 2023-04-11 20:57:11 +02:00
kramo
960eaa1949 Use utf-8 everywhere 2023-04-02 07:28:04 +02:00
kramo
b511ce22b7 Cleanups 2023-04-02 07:20:05 +02:00
kramo
6899246d01 Use simpler syntax for I/O operations 2023-04-01 16:14:19 +02:00
kramo
3bcbf8457c Refactor to use pathlib 2023-04-01 11:33:48 +02:00
kramo
fc2932f7dd Cleanups 2023-03-24 22:56:12 +01:00
Bananaman
973ec01b38 Cleanup: Remove pointless calls to close()
Since "with open()" automatically closes the files anyway.
2023-03-24 22:37:01 +01:00
Bananaman
214687c9ce Cleanup: Remove backwards-compatible code
Since we aren't interested in backwards compatibility this early in development, let's remove those code chunks to keep the code shorter.
2023-03-24 22:35:55 +01:00
Bananaman
703c65395c Improved game executable launcher, and added argument validation
Now uses proper shell escaping and parsing for all executable arguments, for more robust game launching. All existing game JSON files with the old string values will automatically be converted to the new format on app launch. The executable parsing uses the "shlex" library, which guarantees accurate parsing.

We now also use direct process launching (without any intermediary shell) by default, but the old "shell"-based launch method still exists in the code via an alternative flag in `run_command.py` (if we ever need to restore it for some reason).

Furthermore, if the user attempts to manually write an improperly escaped argument into the game's details (such as missing closing quotation marks), the GUI will now alert the user that their executable argument is invalid, along with telling them the exact reason why it's invalid.
2023-03-24 22:03:39 +01:00
Domenico
053d5791a4 Refactory of the code (#19)
* Refactory of the code

* Autoformatting with black

---------

Co-authored-by: Domefemia <domefemia@hotmail.com>
2023-03-24 20:26:55 +01:00
kramo
b281a4bd0d Cleanups 2023-03-22 08:36:37 +01:00
kramo
516c020cbc Allow building as a non-flatpak app 2023-03-16 17:24:03 +01:00
kramo
bd0cf7402a Code style 2023-03-15 01:57:43 +01:00
kramo
32d9f9a880 Cleanups 2023-03-14 21:20:59 +01:00
kramo
094bfad10d Cleanups 2023-03-14 17:21:16 +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