Update BRClient.Init to receive bool result
This commit is contained in:
parent
00e99bba2e
commit
083c6a7f6e
@ -1,10 +1,17 @@
|
||||
#include "bindings.h"
|
||||
|
||||
void Init(RE::StaticFunctionTag*)
|
||||
bool Init(RE::StaticFunctionTag*)
|
||||
{
|
||||
logger::info("Entered Init");
|
||||
init();
|
||||
logger::info("Init done");
|
||||
bool result = init();
|
||||
if (result) {
|
||||
logger::info("Init successful");
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
logger::error("Init failed");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
std::string GenerateApiKey(RE::StaticFunctionTag*)
|
||||
|
@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
void Init(RE::StaticFunctionTag*);
|
||||
bool Init(RE::StaticFunctionTag*);
|
||||
std::string GenerateApiKey(RE::StaticFunctionTag*);
|
||||
bool StatusCheck(RE::StaticFunctionTag*, RE::BSFixedString api_url, RE::TESQuest* quest);
|
||||
|
Loading…
Reference in New Issue
Block a user