GH-1217 reset time played on zip pack import
This commit is contained in:
@ -108,7 +108,7 @@ void BaseInstance::setRunning(bool running)
|
||||
m_isRunning = running;
|
||||
}
|
||||
|
||||
int64_t BaseInstance::totalTimePlayed()
|
||||
int64_t BaseInstance::totalTimePlayed() const
|
||||
{
|
||||
qint64 current = settings()->get("totalTimePlayed").toLongLong();
|
||||
if(m_isRunning)
|
||||
@ -119,6 +119,11 @@ int64_t BaseInstance::totalTimePlayed()
|
||||
return current;
|
||||
}
|
||||
|
||||
void BaseInstance::resetTimePlayed()
|
||||
{
|
||||
settings()->reset("totalTimePlayed");
|
||||
}
|
||||
|
||||
QString BaseInstance::instanceType() const
|
||||
{
|
||||
return m_settings->get("InstanceType").toString();
|
||||
|
Reference in New Issue
Block a user