1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#pragma once #include <memory> class CVersionKeeperManager { public: CVersionKeeperManager(); // whether the update screen was shown this boot. bool fired(); private: bool isVersionOlderThanRunning(const std::string& ver); bool m_bFired = false; }; inline std::unique_ptr<CVersionKeeperManager> g_pVersionKeeperMgr;