BRClient.Init bool result, messagebox on error

This commit is contained in:
Tyler Hallada 2020-10-17 19:23:57 -04:00
parent 2f61106649
commit 8030bb1c8a
23 changed files with 4 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,5 +1,5 @@
scriptname BRClient
function Init() global native
bool function Init() global native
bool function StatusCheck(string apiKey, quest quest) global native
string function GenerateApiKey() global native

View File

@ -26,7 +26,9 @@ endEvent
function Maintenance()
Debug.Trace("BRQuestScript Maintenance")
UILib = (Self as Form) as UILIB_1
BRClient.Init()
if !BRClient.Init()
Debug.MessageBox("Failed to initialize Bazaar Realm client. Please ensure that the folder Documents\\My Games\\Skyrim Special Edition\\SKSE exists and is accessible by Skyrim.")
endif
int newVersion = GetVersion()
if ModVersion < newVersion
ModVersion = newVersion