diff --git a/games/game_cyberpunk2077.py b/games/game_cyberpunk2077.py index 388c648..29c5898 100644 --- a/games/game_cyberpunk2077.py +++ b/games/game_cyberpunk2077.py @@ -4,7 +4,7 @@ from pathlib import Path import mobase -from PyQt6.QtCore import QDir, qInfo +from PyQt6.QtCore import QDateTime, QDir, qInfo from ..basic_features import BasicLocalSavegames, BasicModDataChecker, GlobPatterns from ..basic_features.basic_save_game_info import ( @@ -192,6 +192,11 @@ def __init__(self, filepath: Path): def getName(self) -> str: return self._name or super().getName() + def getCreationTime(self) -> QDateTime: + return QDateTime.fromSecsSinceEpoch( + int((self._filepath / "sav.dat").stat().st_mtime) + ) + class Cyberpunk2077Game(BasicGame): Name = "Cyberpunk 2077 Support Plugin"