Skip to content

Commit

Permalink
dev: add 32bit support
Browse files Browse the repository at this point in the history
  • Loading branch information
clshortfuse committed Mar 11, 2024
1 parent f238f9c commit f884bd4
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@
*.app

build/**
build32/**

7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ endfunction()

build_shader_target()

set(TARGET_SUFFIX ".addon64")
if(CMAKE_GENERATOR_PLATFORM STREQUAL "Win32")
set(TARGET_SUFFIX ".addon32")
endif()

foreach(ADDON ${ADDON_LIST})
add_library(${ADDON} MODULE ${CMAKE_CURRENT_SOURCE_DIR}/src/${ADDON}/addon.cpp)
add_dependencies(${ADDON} shaders)
Expand All @@ -92,7 +97,7 @@ foreach(ADDON ${ADDON_LIST})
set_target_properties(${ADDON}
PROPERTIES
PREFIX "renodx-"
SUFFIX ".addon64"
SUFFIX ${TARGET_SUFFIX}
)
endforeach()

Expand Down
2 changes: 2 additions & 0 deletions src/batman-arkhamknight/addon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
*/

#define IMGUI_DISABLE_INCLUDE_IMCONFIG_H
#define ImTextureID ImU64

#define DEBUG_LEVEL_0

#include <embed/0x978BFB09.h>
Expand Down
2 changes: 2 additions & 0 deletions src/cp2077/addon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
*/

#define IMGUI_DISABLE_INCLUDE_IMCONFIG_H
#define ImTextureID ImU64

#define DEBUG_LEVEL_0
#define DEBUG_SLIDERS_OFF

Expand Down
2 changes: 2 additions & 0 deletions src/seaofstars/addon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
*/

#define IMGUI_DISABLE_INCLUDE_IMCONFIG_H
#define ImTextureID ImU64

#define DEBUG_LEVEL_0

#include <embed/0x552A4A60.h>
Expand Down
2 changes: 2 additions & 0 deletions src/seaofthieves/addon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
*/

#define IMGUI_DISABLE_INCLUDE_IMCONFIG_H
#define ImTextureID ImU64

#define DEBUG_LEVEL_0

#include <embed/0x84B99833.h>
Expand Down

0 comments on commit f884bd4

Please sign in to comment.