h2-mod/src/client/component/updater.hpp

28 lines
531 B
C++
Raw Normal View History

2022-03-19 19:13:14 -04:00
#pragma once
2022-07-16 18:31:15 -04:00
#define CLIENT_DATA_FOLDER "cdata"
2022-03-19 19:13:14 -04:00
namespace updater
{
void relaunch();
void set_has_tried_update(bool tried);
bool get_has_tried_update();
bool auto_updates_enabled();
bool is_update_available();
bool is_update_check_done();
bool get_update_check_status();
bool is_update_download_done();
bool get_update_download_status();
bool is_restart_required();
std::string get_last_error();
std::string get_current_file();
void start_update_check();
void start_update_download();
void cancel_update();
}