mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 17:43:52 +00:00
Fix Windows RC icon path and remove stray include in warden_module
Copy Wowee.ico into the build tree at configure time so llvm-rc can resolve the relative assets\\wowee.ico path in wowee.rc. Also remove a redundant #include <sys/mman.h> that was incorrectly placed inside a function body.
This commit is contained in:
parent
9d44d672d2
commit
2e32312fb2
2 changed files with 6 additions and 1 deletions
|
|
@ -309,6 +309,12 @@ set(WOWEE_HEADERS
|
||||||
|
|
||||||
set(WOWEE_PLATFORM_SOURCES)
|
set(WOWEE_PLATFORM_SOURCES)
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
|
# Copy icon into build tree so llvm-rc can find it via the relative path in wowee.rc
|
||||||
|
configure_file(
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/assets/Wowee.ico
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/assets/wowee.ico
|
||||||
|
COPYONLY
|
||||||
|
)
|
||||||
list(APPEND WOWEE_PLATFORM_SOURCES resources/wowee.rc)
|
list(APPEND WOWEE_PLATFORM_SOURCES resources/wowee.rc)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -494,7 +494,6 @@ bool WardenModule::parseExecutableFormat(const std::vector<uint8_t>& exeData) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#include <sys/mman.h>
|
|
||||||
moduleMemory_ = mmap(
|
moduleMemory_ = mmap(
|
||||||
nullptr,
|
nullptr,
|
||||||
finalCodeSize,
|
finalCodeSize,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue