Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
fix standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
Prevter committed Apr 21, 2024
1 parent eaef22b commit b571db2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ target_link_libraries(
spdlog::spdlog
libcurl
cocos2d
opengl32
)

# Set "OPENHACK_STANDALONE" to 1
Expand Down
2 changes: 1 addition & 1 deletion src/shared/gui/color.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ namespace openhack::gui {
/// @return New color
static Color fromString(const char *color) {
uint32_t c;
#ifdef WIN32
#if defined(WIN32) || defined(OPENHACK_STANDALONE)
sscanf_s(color, "%X", &c);
#else
sscanf(color, "%X", &c);
Expand Down
1 change: 1 addition & 0 deletions src/shared/platform/win32/win32.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "dll_inject.hpp"

#include <gd.hpp>
#include <sinaps.hpp>

namespace openhack::utils {
/// @brief Gets the current directory of the running executable.
Expand Down

0 comments on commit b571db2

Please sign in to comment.