feat(ui): implement Script_SetSavedAccountName

This commit is contained in:
Tristan Cormier authored and fallenoak committed 2025-10-21 08:35:54 -05:00
1 parent 5bd90ecf29
commit 30e23dc46b
1 file changed
+9 -1
+9 -1
View File
@@ -30,7 +30,15 @@ int32_t Script_GetSavedAccountName(lua_State* L) {
}
int32_t Script_SetSavedAccountName(lua_State* L) {
WHOA_UNIMPLEMENTED(0);
if (!lua_isstring(L, 1)) {
return luaL_error(L, "Usage: SetSavedAccountName(\"accountName\")");
}
const char* accountName = lua_tostring(L, 1);
Client::g_accountNameVar->Set(accountName, true, false, false, true);
return 0;
}
int32_t Script_GetUsesToken(lua_State* L) {