-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove tracking patches by separate git fix missing logic in replace_mouse_dinput_to_user32
- Loading branch information
Showing
28 changed files
with
1,225 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,7 +87,6 @@ venv.bak/ | |
|
||
# Flame | ||
/build/ | ||
/src/ | ||
/tools/obj_research/ | ||
/libs/dkii_exe/api/ | ||
/install/ | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
set(TARGET dkii_flame) | ||
|
||
add_executable(${TARGET} | ||
main.cpp | ||
dkii_exe_functions.cpp | ||
dk2/MyResources.cpp | ||
dk2/MyGame.cpp | ||
dk2/MyDxMouse.cpp | ||
dk2/CFrontEndComponent.cpp | ||
|
||
patches/replace_mouse_dinput_to_user32.cpp | ||
patches/use_wheel_to_zoom.cpp | ||
patches/micro_patches.cpp | ||
|
||
${DKII_RESOURCES_FILE} | ||
) | ||
target_include_directories(${TARGET} PRIVATE ${CMAKE_CURRENT_LIST_DIR}) | ||
target_compile_definitions(${TARGET} PRIVATE | ||
DIRECTINPUT_VERSION=0x0500 | ||
DIRECT3D_VERSION=0x0600 | ||
) | ||
target_link_libraries(${TARGET} PRIVATE | ||
dkii_delinked dkii_exe_api | ||
# gog_patch_dll | ||
|
||
# dk2 specific libs | ||
qmixer_genlib # generated in qmixer_dll/genlib | ||
weanetr_genlib # generated in weanetr_dll/genlib | ||
|
||
# the others libs dk2 depends on | ||
winmm | ||
dinput_genlib # generated in dinput_dll/genlib | ||
ddraw # patch - dont link against gog's PATCH.dll because patch addresses are change after recompilation | ||
# also i fully decompiled gog's PATCH.dll and bundled in project | ||
|
||
imm32 | ||
# wsock32 is old link target | ||
ws2_32 # should be better | ||
dsound | ||
) | ||
|
||
target_compile_options(${TARGET} PRIVATE | ||
/Gy # Enable Function-Level Linking | ||
/Gw # Optimize Global Data | ||
/GS- | ||
/Gz # use __stdcall by default | ||
) | ||
target_link_options(${TARGET} PRIVATE /OPT:NOREF) | ||
target_link_options(${TARGET} PRIVATE /MAP) # generate msvc mapping file for exe | ||
set_property(TARGET ${TARGET} PROPERTY | ||
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>") | ||
set_target_properties(${TARGET} PROPERTIES OUTPUT_NAME | ||
"DKII-Flame${OUTPUT_SUFFIX}" | ||
) | ||
|
||
|
Oops, something went wrong.