mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-04-08 16:56:22 +00:00
added ShutdownException and registry queries
This commit is contained in:
@@ -10,14 +10,21 @@
|
||||
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
struct VersionParser {
|
||||
explicit VersionParser(const std::string& from_string);
|
||||
std::strong_ordering operator<=>(VersionParser const& rhs) const noexcept;
|
||||
bool operator==(VersionParser const& rhs) const noexcept;
|
||||
std::vector<size_t> data;
|
||||
};
|
||||
|
||||
class Launcher {
|
||||
public: //constructors
|
||||
Launcher(int argc, char* argv[]);
|
||||
~Launcher();
|
||||
public: //available functions
|
||||
std::string Login(const std::string& fields);
|
||||
bool Terminate() const;
|
||||
void RunDiscordRPC();
|
||||
void QueryRegistry();
|
||||
void LoadConfig();
|
||||
void LaunchGame();
|
||||
void CheckKey();
|
||||
@@ -36,11 +43,20 @@ private: //variables
|
||||
bool Shutdown = false;
|
||||
bool LoginAuth = false;
|
||||
fs::path CurrentPath{};
|
||||
std::string BeamRoot{};
|
||||
std::string UserRole{};
|
||||
std::string PublicKey{};
|
||||
std::thread DiscordRPC{};
|
||||
std::string BeamVersion{};
|
||||
std::string BeamUserPath{};
|
||||
std::string DiscordMessage{};
|
||||
std::string Version{"3.0"};
|
||||
std::string TargetBuild{"default"};
|
||||
std::string FullVersion{Version + ".0"};
|
||||
VersionParser SupportedVersion{"0.24.1.1"};
|
||||
};
|
||||
|
||||
class ShutdownException : public std::runtime_error {
|
||||
public:
|
||||
explicit ShutdownException(const std::string& message): runtime_error(message){};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user