2024-12-06 15:45:02 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
2025-01-23 21:55:41 +01:00
|
|
|
#include "../helpers/memory/Memory.hpp"
|
2024-12-06 15:45:02 +01:00
|
|
|
|
|
|
|
|
class CVersionKeeperManager {
|
|
|
|
|
public:
|
|
|
|
|
CVersionKeeperManager();
|
|
|
|
|
|
2025-01-10 19:09:40 +01:00
|
|
|
// whether the update screen was shown this boot.
|
|
|
|
|
bool fired();
|
|
|
|
|
|
2024-12-06 15:45:02 +01:00
|
|
|
private:
|
2025-01-10 19:09:40 +01:00
|
|
|
bool isVersionOlderThanRunning(const std::string& ver);
|
|
|
|
|
|
2025-05-02 17:07:20 +02:00
|
|
|
bool m_fired = false;
|
2024-12-06 15:45:02 +01:00
|
|
|
};
|
|
|
|
|
|
2025-01-23 21:55:41 +01:00
|
|
|
inline UP<CVersionKeeperManager> g_pVersionKeeperMgr;
|