23 bool show_license_key_failed =
false;
48 ImGui::OpenPopup(
" Access Restricted");
49 if (ImGui::BeginPopupModal(
" Access Restricted", NULL, ImGuiWindowFlags_AlwaysAutoResize))
51 static char key1[255] =
"haloman30@CUND82443161A";
52 static char key2[255] =
"00000000000000000000000";
53 static char key3[255] =
"haloman30@CUND82443161A";
54 static char key4[255] =
"haloman30@CUND82443161A";
55 static char key_generic[255] =
"altkey";
58 ImGui::Text(
"You are attempting to launch a development build of the engine.\nTo continue, you must input your developer access key.\nThis can be found on the Gitlab repository.");
61 ImGui::InputText(
"Access Key", access_key, IM_ARRAYSIZE(access_key));
132 std::string strAKey(access_key);
133 std::string strKey1(key1);
134 std::string strKey2(key2);
135 std::string strKey3(key3);
136 std::string strKey4(key4);
137 std::string strKeyGeneric(key_generic);
139 if (ImGui::Button(
"Accept", ImVec2(120, 0)))
148 if (access_key == strKey1)
152 show_license_key_failed =
false;
154 else if (access_key == strKeyGeneric)
158 show_license_key_failed =
false;
160 else if (access_key == strKey2)
164 show_license_key_failed =
false;
166 else if (access_key == strKey3)
170 show_license_key_failed =
false;
172 else if (access_key == strKey4)
176 show_license_key_failed =
false;
182 show_license_key_failed =
true;
190 if (show_license_key_failed)
192 ImGui::OpenPopup(
" Wrong Access Key");
194 if (ImGui::BeginPopupModal(
" Wrong Access Key", NULL, ImGuiWindowFlags_AlwaysAutoResize))
202 if (ImGui::Button(
"Retry", ImVec2(120, 0)))
204 show_license_key_failed =
false;
208 if (ImGui::Button(
"Cancel", ImVec2(120, 0)))