 |
Blamite Game Engine - blam!
00406.12.10.23.1457.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
21 bool show_license_key_failed =
false;
38 static char key1[255] =
"haloman30@CUND82443161A";
39 static char key2[255] =
"00000000000000000000000";
40 static char key3[255] =
"haloman30@CUND82443161A";
41 static char key4[255] =
"haloman30@CUND82443161A";
42 static char key_generic[255] =
"altkey";
44 ImGui::Text(
"You are attempting to launch a development build of the engine.\nTo continue, you must input "
45 "your developer access key.\nThis can be found on the Gitlab repository.");
50 "click 'Accept'. If the key is valid, the game will continue normally.");
118 std::string strAKey(access_key);
119 std::string strKey1(key1);
120 std::string strKey2(key2);
121 std::string strKey3(key3);
122 std::string strKey4(key4);
123 std::string strKeyGeneric(key_generic);
132 if (access_key == strKey1)
136 show_license_key_failed =
false;
138 else if (access_key == strKeyGeneric)
142 show_license_key_failed =
false;
144 else if (access_key == strKey2)
148 show_license_key_failed =
false;
150 else if (access_key == strKey3)
154 show_license_key_failed =
false;
156 else if (access_key == strKey4)
160 show_license_key_failed =
false;
166 show_license_key_failed =
true;
174 if (show_license_key_failed)
187 show_license_key_failed =
false;
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:130
IMGUI_API void EndPopup()
Definition: imgui.cpp:7675
bool show
Controls whether or not the group should be shown. May not be used in all groups.
Definition: imgui.h:34
IMGUI_API bool BeginPopupModal(const char *name, bool *p_open=NULL, ImGuiWindowFlags flags=0)
Definition: imgui.cpp:7647
IMGUI_API bool InputText(const char *label, char *buf, size_t buf_size, ImGuiInputTextFlags flags=0, ImGuiInputTextCallback callback=NULL, void *user_data=NULL)
Definition: imgui_widgets.cpp:3068
IMGUI_API void SameLine(float offset_from_start_x=0.0f, float spacing=-1.0f)
Definition: imgui.cpp:7147
Class representing an ImGUI window.
Definition: imgui.h:31
Dialog to prompt for developer key authentication.
Definition: license_prompt.hpp:18
IMGUI_API void OpenPopup(const char *str_id)
Definition: imgui.cpp:7453
IMGUI_API void Text(const char *fmt,...) IM_FMTARGS(1)
Definition: imgui_widgets.cpp:238
void Draw()
Displays the access key dialog.
Definition: license_prompt.hpp:27
#define IM_ARRAYSIZE(_ARR)
Definition: imgui.h:75
@ ImGuiWindowFlags_AlwaysAutoResize
Definition: imgui.h:720
IMGUI_API void Separator()
Definition: imgui_widgets.cpp:1284
IMGUI_API bool Button(const char *label, const ImVec2 &size=ImVec2(0, 0))
Definition: imgui_widgets.cpp:644