20 Commits
Author SHA1 Message Date
Mikaël Capelle f502fb468f Add pre-commit hook (#179)
* Update dev dependencies.
* Add pre-commit hook.
2025-04-25 08:23:10 +02:00
Mikaël Capelle 71dbb8c557 Refactoring of game features for better management. (#149)
* Refactoring following uibase change for game features.
* Switch to ruff for linting and formatting.
* Bump stubs to 2.5.1a0.
2024-06-09 12:25:46 +02:00
Mikaël Capelle bffe41fe6f Bump dev dependencies and re-apply black. (#138) 2024-02-13 08:55:04 +01:00
Zash 44645a54f7 Add metadata to BasicGameSaveGameInfo(Widget) (#109)
* Fix subnautica preview file path

* Add BasicGameSaveGameInfo with "File Date" to all BasicGames

* Add max_width option to BasicGameSaveGameInfo(Widget)

* Refactor Blade & Sorcery with get_metadata

* Refactor & cleanup Black & White SaveGameInfo
2023-10-08 18:24:33 +02:00
Jeremy Rimpo 55a987bff6 Additional fixes and cleanup for python updates 2023-09-23 14:24:22 +02:00
Mikaël Capelle af6fa07882 Fix for typing after stubs update. 2022-05-07 14:02:01 +02:00
Mikaël Capelle 117be45a83 Multiple fixes for PyQt6 and CI. 2022-04-21 22:13:00 +02:00
Jeremy Rimpo 1fdf5031ea PyQt6 Compatibility 2021-12-06 05:20:37 -06:00
Mikaël Capelle a83e96528f Apply isort. 2021-07-18 10:33:08 +02:00
Mikaël Capelle be9ad2cb1f Remove old pieces of code from BasicGameSaveGameInfo and fix W3 save game handling. 2021-02-26 20:57:38 +01:00
Mikaël Capelle ca7aa7f800 Fix position of savegame widget. 2021-02-07 17:32:39 +01:00
Mikaël Capelle cc5f5cc586 Minor fixes. Add missing %USERPROFILE% replacement. 2020-11-29 19:59:11 +01:00
Mikaël Capelle b385652e7a Update for IPluginGame::listSaves(). 2020-11-18 19:17:55 +01:00
Mikaël Capelle 53ad1f4f0c Add save file to W3 and DS2. 2020-10-17 12:53:31 +02:00
Chris Djali f20d5a3bd1 mtime was correct
Holt elaborated here: https://github.com/ModOrganizer2/modorganizer-basic_games/pull/4#issuecomment-668716972
2020-08-04 18:10:35 +01:00
Chris Djali 20ab101e63 Pathlib stuff
`os.path` is old and less safe than Pathlib, so I removed it while I wanted to meddle with this file anyway.

It looked suspicious that `getCreationTime` was returning the modification time instead of the creation time, so I changed that from `mtime` to `ctime`.

I also added handling for `value` being a `Path` object as that's the type for the thing it represents. I might not have needed the explicit `str` call as Path is implicitly convertible to `str` lots of the time, but I've not actually tested the change so wanted to play it safe.
2020-08-04 18:03:24 +01:00
Mikaël Capelle 27c497ae85 Allow QImage for basic game preview. 2020-06-13 20:53:00 +02:00
Mikaël Capelle 2b51e21f2e Clean save game basic feature. 2020-06-12 21:36:38 +02:00
Mikaël Capelle 09bcd4d68e Allow different return types in get_preview for saves. 2020-06-12 00:14:08 +02:00
Mikaël Capelle 374505d6c7 Add basic save game implementation. 2020-06-12 00:06:01 +02:00