mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-28 08:04:13 +08:00
vmpause
This commit is contained in:
parent
3162ca5762
commit
80305412ad
@ -906,8 +906,11 @@ class MAINUI:
|
||||
_t = time.time()
|
||||
|
||||
def isok(gameuid):
|
||||
savehook_new_data[gameuid]["statistic_playtime"] += _t - __t
|
||||
if self.__currentexe == name_:
|
||||
# 可能开着程序进行虚拟机暂停,导致一下子多了很多时间。不过测试vbox上应该没问题
|
||||
maybevmpaused = (_t - __t) > 60
|
||||
if not maybevmpaused:
|
||||
savehook_new_data[gameuid]["statistic_playtime"] += _t - __t
|
||||
if (not maybevmpaused) and (self.__currentexe == name_):
|
||||
self.traceplaytime(
|
||||
uid2gamepath[gameuid], self.__statistictime - 1, _t, False
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user