Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions screenshot_bot/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ endif()


target_link_libraries(${CURRENT_TARGET}
libs
${INDIGO_WIN32_LIBS}
${LINUX_LIBS}
PRIVATE
libs
${INDIGO_WIN32_LIBS}
${LINUX_LIBS}
)

17 changes: 9 additions & 8 deletions screenshot_bot/ScreenshotBot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Copyright Glare Technologies Limited 2025 -


#include "../shared/Protocol.h"
#include <networking/networking.h>
#include <networking/Networking.h>
#include <networking/TLSSocket.h>
#include <networking/url.h>
#include <networking/URL.h>
#include <utils/SocketBufferOutStream.h>
#include <PlatformUtils.h>
#include <Clock.h>
Expand All @@ -25,11 +25,11 @@ Copyright Glare Technologies Limited 2025 -
#include <tls.h>


struct ScreenshotBotConfig
{
std::string server_hostname;
std::string screenshot_bot_password;
std::string substrata_client_path;
struct ScreenshotBotConfig
{
std::string server_hostname;
std::string screenshot_bot_password;
std::string substrata_client_path;
};


Expand All @@ -52,7 +52,7 @@ int main(int argc, char* argv[])
{
Clock::init();
Networking::init();
PlatformUtils::ignoreUnixSignals();
PlatformUtils::ignoreUnixSignals();
TLSSocket::initTLS();

const ScreenshotBotConfig config = parseScreenshotBotConfig(PlatformUtils::getAppDataDirectory("Cyberspace") + "/screenshot_bot_config.xml");
Expand Down Expand Up @@ -357,3 +357,4 @@ int main(int argc, char* argv[])
return 1;
}
}