Skip to content

Commit

Permalink
core: Some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Marechal-L committed Aug 16, 2022
1 parent 58909e5 commit 22dbe02
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion archipelago-client/ArchipelagoInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ BOOL CArchipelago::Initialise(std::string URI) {
ap->set_socket_disconnected_handler([]() {
});
ap->set_slot_connected_handler([](const json& data) {
std::cout << data.dump() << std::endl;
//std::cout << data.dump() << std::endl; //The slot_data feature is not ready yet
});
ap->set_slot_disconnected_handler([]() {
});
Expand Down
6 changes: 3 additions & 3 deletions archipelago-client/Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ VOID CCore::Panic(const char* pMessage, const char* pSort, DWORD dError, DWORD d
printf("%s\n", pOutput);

if (dIsFatalError) {
sprintf_s(pTitle, "[Item Randomiser - Fatal Error]");
sprintf_s(pTitle, "[Archipelago client - Fatal Error]");
}
else {
sprintf_s(pTitle, "[Item Randomiser - Error]");
sprintf_s(pTitle, "[Archipelago client - Error]");
};

MessageBoxA(NULL, pOutput, pTitle, MB_ICONERROR);
Expand Down Expand Up @@ -194,7 +194,7 @@ VOID CCore::ReadConfigFiles() {
//Mandatory values
if (!j.contains("locationsId") || !j.contains("locationsAddress") || !j.contains("locationsTarget") || !j.contains("itemsId")
|| !j.contains("itemsAddress") || !j.contains("base_id") || !j.contains("seed") || !j.contains("slot")) {
Core->Panic("One of the mandatory value is missing in the `AP.json` file", "Missing configuration values", AP_MissingValue, 1);
Core->Panic("Please check the following values : [locationsId], [locationsAddress], [locationsTarget], [itemsId], [itemsAddress], [base_id], [seed] and [slot]", "One of the mandatory values is missing in the `AP.json` file", AP_MissingValue, 1);
}

j.at("locationsId").get_to(ItemRandomiser->pLocationsId);
Expand Down
2 changes: 0 additions & 2 deletions archipelago-client/Core.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
#define _WEBSOCKETPP_CPP11_INTERNAL_
#define _CRT_SECURE_NO_WARNINGS

#define DEBUG

#include "subprojects/apclientpp/apclient.hpp"
#include <windows.h>
#include <Windows.h>
Expand Down

0 comments on commit 22dbe02

Please sign in to comment.