mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-07 15:36:26 +00:00
Qt: fix gamelist sorting for playtimes
This commit is contained in:
parent
c4a01875d0
commit
1759d6d90a
5 changed files with 15 additions and 10 deletions
|
|
@ -8,13 +8,13 @@ persistent_settings::persistent_settings(QObject* parent) : settings(parent)
|
|||
|
||||
void persistent_settings::SetPlaytime(const QString& serial, const qint64& elapsed)
|
||||
{
|
||||
m_playtime[serial] = elapsed;
|
||||
SetValue(gui::persistent::playtime, serial, elapsed);
|
||||
m_playtime[serial] = std::max<qint64>(0, elapsed);
|
||||
SetValue(gui::persistent::playtime, serial, m_playtime[serial]);
|
||||
}
|
||||
|
||||
qint64 persistent_settings::GetPlaytime(const QString& serial)
|
||||
{
|
||||
return m_playtime[serial];
|
||||
return std::max<qint64>(0, m_playtime[serial]);
|
||||
}
|
||||
|
||||
void persistent_settings::SetLastPlayed(const QString& serial, const QString& date)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue