Commit Graph

431 Commits

Author SHA1 Message Date
kramo
286b44360e Move game_cover away from GdkPixbuf 2023-06-18 13:57:09 +02:00
kramo
2aea2fb377 Move placeholders to Gdk.Texture 2023-06-18 13:46:17 +02:00
kramo
2e97edcdb5 Please pylint once and for all 2023-06-18 13:15:03 +02:00
kramo
32adc68d82 Correct directory check 2023-06-18 12:58:24 +02:00
kramo
8dcbe56e76 "Sigh..." 2023-06-17 16:33:27 +02:00
kramo
009e6f3641 "Intellisense betrayed me" 2023-06-17 16:31:14 +02:00
kramo
9d7a6d8ea4 Add copyright headers 2023-06-17 16:27:10 +02:00
GeoffreyCoulaud
cff2a4ae6c Fix adding games manually 2023-06-17 16:15:53 +02:00
kramo
eb91586216 Clean up relative dates 2023-06-17 16:11:02 +02:00
kramo
8eb203cb06 Convert executables to strings at init time 2023-06-17 15:35:43 +02:00
kramo
b2b1780374 Remove auto-import feature from settings 2023-06-17 10:07:23 +02:00
kramo
f0dda997c3 Only kill import toast after the user can click it 2023-06-16 20:46:50 +02:00
kramo
366b68cf8f Add after import error dialog 2023-06-16 16:22:12 +02:00
GeoffreyCoulaud
beba0ff1e2 🎨 Improved internal manager storage
- Stored pipeline managers in a set
- Renamed store method to enable_manager_in_pipeline
- Simplified a bit the ugly code™ in details_window
2023-06-16 15:38:05 +02:00
GeoffreyCoulaud
e694341a31 🐛 Fix game import not refreshing remove covers 2023-06-16 15:21:39 +02:00
kramo
d060acb90a Escape game titles in toasts 2023-06-16 13:16:48 +02:00
kramo
90667b0f31 Fix details_window logic 2023-06-15 17:53:48 +02:00
kramo
39bc64c136 Use signals for updating and saving games 2023-06-15 17:37:54 +02:00
kramo
e6afed6678 Cleanups 2023-06-15 15:22:08 +02:00
GeoffreyCoulaud
3bc0df3881 🎨 Change image composition logic 2023-06-14 17:23:54 +02:00
GeoffreyCoulaud
695cc88d76 🎨 Made OnlineCoverManager more general
- Does compositing of image with a blurred background
- Stretches the original image if it's not too much
- Handles images that are too wide and images that are too tall
- Removed ItchCoverManager
2023-06-14 00:05:38 +02:00
GeoffreyCoulaud
6dd8e3965f 🐛 Ported sqlite fix from main 2023-06-13 10:32:07 +02:00
GeoffreyCoulaud
dbb96a166b Added debug info to the beginning of log files 2023-06-13 09:48:18 +02:00
GeoffreyCoulaud
054089431f 🎨 Made log file rotation more robust 2023-06-13 09:05:29 +02:00
GeoffreyCoulaud
59c2d68642 Removed unnecessary prints 2023-06-13 00:25:24 +02:00
GeoffreyCoulaud
68273d9217 🎨 Improved logging
- One unlimited log file per session
- Up to 3 session logs kept at any time
- Log compressed via lzma
2023-06-12 23:11:09 +02:00
GeoffreyCoulaud
2798097623 🎨 Improved logging code
- Silenced unwanted library messages
- Logging to file with a max size of 8MB

When the file size is passed, a backup of the file is created,
and the file gets truncated.
There can only be one current file and one backup file.
2023-06-12 03:27:43 +02:00
GeoffreyCoulaud
6a099b2bdd New logging system 2023-06-11 21:11:53 +02:00
kramo
d340e007e3 Remove replaced_by_env_path decorator 2023-06-10 20:54:49 +02:00
kramo
de3ef53148 Make pylint happy 2023-06-10 19:34:00 +02:00
kramo
0db636b375 Port bottles fix from main 2023-06-10 19:13:25 +02:00
kramo
49011c395a Merge branch 'main' into gali-importer-structure 2023-06-10 19:04:59 +02:00
kramo
49769b7083 Fix import hanging if custom Bottles location 2023-06-10 18:45:56 +02:00
kramo
5fadaf8537 Add _ to Python builtins 2023-06-10 18:24:59 +02:00
GeoffreyCoulaud
dcd4357e57 🎨 No longer using SGDBSave
- Details window uses a Pipeline with SGDBTask
- Store saves managers in a type: instance dict
- Removed SGDBSave
2023-06-10 16:22:09 +02:00
GeoffreyCoulaud
3a0911e742 🐛 Fixed UI not updating on some game actions 2023-06-10 15:31:54 +02:00
GeoffreyCoulaud
8eb2a270f6 🎨 Improved manager error handling structure 2023-06-10 14:51:52 +02:00
GeoffreyCoulaud
e7fd01f509 🎨 Made manager attributes more flexible
Changed run_after, retryable_on and continue_on to be type Container.
We don't need them to be sets.

The performance gain of sets over small tuples is nonexistant
for in checks and the  syntax is more verbose.
2023-06-10 12:03:16 +02:00
GeoffreyCoulaud
c9a96f5eec 🎨 Fixed some linter warnings
Applied suggested pylint fixes and suppressed unhelpful pylint messages
2023-06-10 03:30:09 +02:00
GeoffreyCoulaud
842f9fe522 🎨 Various code style / behaviour fixes
- Merged platform sources when possible
- Added URLExecutableSource class
- Moved replaced_by_schema_key to utils/decorators
- Better retryable exception handling in some managers
-  Split SteamHelper into SteamFileHelper and SteamAPIHelper
- Delegated SteamRateLimiter creation to SteamAPIManager init
- Using additional_data for appid in SteamAPIManager
- Added Windows support for Legendary
- Stylistic changed suggested by pylint
2023-06-10 02:59:41 +02:00
GeoffreyCoulaud
070d875ff8 🎨 Improved Legendary source
- Fixed wrong library iteration
- Fixed executable format
- Added toggle in the preferences
- Added legendary to on_import_action
2023-06-09 17:06:33 +02:00
GeoffreyCoulaud
51922ad4c6 🚧 Base Legendary source 2023-06-08 10:50:09 +02:00
GeoffreyCoulaud
b895c8ebe2 🎨 Made itch cover manager sync 2023-06-07 19:31:15 +02:00
GeoffreyCoulaud
9ebd7cf7ee Added Itch source
- Added call stack to unretryable errors in managers
- Added existing itch cover downloading code
- Fixed importer not closing if no source enabled

TODO
- Tidying the itch cover downloading code
- If possible, make save_cover and resize_cover work in AsyncManager-s
2023-06-07 15:33:00 +02:00
GeoffreyCoulaud
5dc6ec899a 🎨 Various changes
- Changed source additional data to dict
- Moved local cover saving into a manager
- Added stub for itch cover manager
2023-06-07 15:00:42 +02:00
GeoffreyCoulaud
98f02da36c 🎨 SourceIterator can yield addtitional data
SourceIterator-s can yield a game and a tuple of additional data.
This data will be passed to the Store, Pipeline and Managers.
2023-06-07 14:01:06 +02:00
GeoffreyCoulaud
7eef050a64 🚧 WIP Itch source (only game discovery) 2023-06-07 12:12:12 +02:00
GeoffreyCoulaud
b50a0a1a04 📝 Updated SourceIterator type hints 2023-06-05 13:29:54 +02:00
GeoffreyCoulaud
725bab5c93 🐛 Fixed new location override syntax 2023-06-05 13:21:19 +02:00
GeoffreyCoulaud
1e3e6484e4 🎨 Simplified source location user override 2023-06-05 13:11:05 +02:00