Skip to content

Commit

Permalink
Add Dragon's Dogma 2 build
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Mar 12, 2024
1 parent 4226451 commit e1a13a6
Show file tree
Hide file tree
Showing 10 changed files with 5,007 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
target: [RE2, RE2_TDB66, RE3, RE3_TDB67, RE4, RE7, RE7_TDB49, RE8, DMC5, MHRISE, SF6]
target: [RE2, RE2_TDB66, RE3, RE3_TDB67, RE4, RE7, RE7_TDB49, RE8, DMC5, MHRISE, SF6, DD2]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dev-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
target: [RE2, RE2_TDB66, RE3, RE3_TDB67, RE4, RE7, RE7_TDB49, RE8, DMC5, MHRISE, SF6]
target: [RE2, RE2_TDB66, RE3, RE3_TDB67, RE4, RE7, RE7_TDB49, RE8, DMC5, MHRISE, SF6, DD2]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
918 changes: 918 additions & 0 deletions CMakeLists.txt

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions cmake.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ REF_BUILD_RE8_SDK = false
REF_BUILD_DMC5_SDK = false
REF_BUILD_MHRISE_SDK = false
REF_BUILD_SF6_SDK = false
REF_BUILD_DD2_SDK = false
REF_BUILD_FRAMEWORK = { value = true, comment = "Enable building the full REFramework" }
REF_BUILD_DEPENDENCIES = { value = true, comment = "Enable building dependencies" }

Expand All @@ -61,6 +62,7 @@ build-re8-sdk = "REF_BUILD_RE8_SDK OR REF_BUILD_FRAMEWORK"
build-dmc5-sdk = "REF_BUILD_DMC5_SDK OR REF_BUILD_FRAMEWORK"
build-mhrise-sdk = "REF_BUILD_MHRISE_SDK OR REF_BUILD_FRAMEWORK"
build-sf6-sdk = "REF_BUILD_SF6_SDK OR REF_BUILD_FRAMEWORK"
build-dd2-sdk = "REF_BUILD_DD2_SDK OR REF_BUILD_FRAMEWORK"
build-framework-dependencies = "REF_BUILD_DEPENDENCIES AND CMAKE_SIZEOF_VOID_P EQUAL 8"

[fetch-content.asmjit]
Expand Down Expand Up @@ -329,6 +331,14 @@ condition = "build-sf6-sdk"
[target.SF6]
type = "game"

[target.DD2SDK]
type = "sdk"
compile-definitions = ["DD2", "REENGINE_PACKED", "REENGINE_AT"]
condition = "build-dd2-sdk"

[target.DD2]
type = "game"

[template.plugin]
type = "shared"
include-directories = ["include/"]
Expand Down
2 changes: 2 additions & 0 deletions shared/sdk/ReClass.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#pragma pack(push, r1, 1)
#ifdef DMC5
#include "ReClass_Internal_DMC5.hpp"
#elif defined(DD2)
#include "ReClass_Internal_DD2.hpp" // Copy of SF6
#elif defined(SF6)
#include "ReClass_Internal_SF6.hpp"
#elif defined(MHRISE)
Expand Down
Loading

0 comments on commit e1a13a6

Please sign in to comment.