Commit Graph
9 Commits
Author SHA1 Message Date
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