iw4x-client/src/Components/Modules/News.hpp
momo5502 60f96edcce [Maps] Install dlcs using the updater
This also fixes @iw4x-dev-urandom's bug that prevents the updater from starting!!!
2017-02-11 19:47:48 +01:00

32 lines
574 B
C++

#pragma once
namespace Components
{
class News : public Component
{
public:
News();
~News();
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
const char* getName() override { return "News"; };
#endif
void preDestroy() override;
bool unitTest() override;
static void LaunchUpdater(std::string params);
static bool Updating();
private:
static std::string UpdaterArgs;
static std::thread Thread;
static bool Terminate;
static void CheckForUpdate();
static void ExitProcessStub(unsigned int exitCode);
static const char* GetNewsText();
};
}