Skip to content

Commit 8ef3422

Browse files
committed
Merge branch 'master' into pd-upscaler
2 parents aa076e2 + 6a38ef8 commit 8ef3422

39 files changed

+7469
-603
lines changed

.github/workflows/build-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: windows-latest
88
strategy:
99
matrix:
10-
target: [RE2, RE2_TDB66, RE3, RE3_TDB67, RE4, RE7, RE7_TDB49, RE8, DMC5, MHRISE, SF6, DD2, MHWILDS]
10+
target: [RE2, RE2_TDB66, RE3, RE3_TDB67, RE4, RE7, RE7_TDB49, RE8, DMC5, MHRISE, SF6, DD2, MHWILDS, PRAGMATA]
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

.github/workflows/dev-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: windows-latest
88
strategy:
99
matrix:
10-
target: [RE2, RE2_TDB66, RE3, RE3_TDB67, RE4, RE7, RE7_TDB49, RE8, DMC5, MHRISE, SF6, DD2, MHWILDS]
10+
target: [RE2, RE2_TDB66, RE3, RE3_TDB67, RE4, RE7, RE7_TDB49, RE8, DMC5, MHRISE, SF6, DD2, MHWILDS, PRAGMATA]
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ src/sdk/generated
1212
cmake-build*
1313
.idea/
1414
build_vs2019_devmode_DMC5.bat
15-
src/CommitHash.autogenerated
15+
src/CommitHash.autogenerated

CMakeLists.txt

Lines changed: 1057 additions & 2 deletions
Large diffs are not rendered by default.

MakeCommitHash.bat

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ FOR /F "tokens=*" %%b IN ('git rev-parse --abbrev-ref HEAD') DO (SET REF_BRANCH=
2424
FOR /F "tokens=*" %%n IN ('git rev-list --count HEAD') DO (SET REF_TOTAL_COMMITS=%%n)
2525
IF "%REF_TOTAL_COMMITS%"=="" (SET REF_TOTAL_COMMITS=0)
2626

27-
FOR /F "tokens=2 delims==" %%a IN ('wmic OS get localdatetime /value') DO (
28-
SET datetime=%%a
29-
)
27+
FOR /F "tokens=* delims=" %%a IN ('powershell -NoProfile -Command "Get-Date -Format yyyyMMddHHmm"') DO (SET datetime=%%a)
3028

3129
SET year=%datetime:~0,4%
3230
SET month=%datetime:~4,2%
@@ -42,4 +40,4 @@ echo #define REF_COMMITS_PAST_TAG %REF_COMMITS_PAST_TAG% >> src/CommitHash.autog
4240
echo #define REF_BRANCH "%REF_BRANCH%" >> src/CommitHash.autogenerated
4341
echo #define REF_TOTAL_COMMITS %REF_TOTAL_COMMITS% >> src/CommitHash.autogenerated
4442
echo #define REF_BUILD_DATE "%day%.%month%.%year%" >> src/CommitHash.autogenerated
45-
echo #define REF_BUILD_TIME "%hour%:%minute%" >> src/CommitHash.autogenerated
43+
echo #define REF_BUILD_TIME "%hour%:%minute%" >> src/CommitHash.autogenerated

cmake.toml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ set(ASMJIT_STATIC ON CACHE BOOL "" FORCE)
1616
set(DYNAMIC_LOADER ON CACHE BOOL "" FORCE) # OpenXR
1717
set(BUILD_TOOLS OFF CACHE BOOL "" FORCE) # DirectXTK
1818
set(SAFETYHOOK_FETCH_ZYDIS ON)
19+
set(FT_DISABLE_HARFBUZZ ON CACHE BOOL "" FORCE) # Freetype
1920
2021
if ("${CMAKE_BUILD_TYPE}" MATCHES "Release")
2122
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MT")
@@ -48,6 +49,7 @@ REF_BUILD_MHRISE_SDK = false
4849
REF_BUILD_SF6_SDK = false
4950
REF_BUILD_DD2_SDK = false
5051
REF_BUILD_MHWILDS_SDK = false
52+
REF_BUILD_PRAGMATA_SDK = false
5153
REF_BUILD_FRAMEWORK = { value = true }
5254
REF_BUILD_DEPENDENCIES = { value = true }
5355

@@ -67,6 +69,7 @@ build-mhrise-sdk = "REF_BUILD_MHRISE_SDK OR REF_BUILD_FRAMEWORK"
6769
build-sf6-sdk = "REF_BUILD_SF6_SDK OR REF_BUILD_FRAMEWORK"
6870
build-dd2-sdk = "REF_BUILD_DD2_SDK OR REF_BUILD_FRAMEWORK"
6971
build-mhwilds-sdk = "REF_BUILD_MHWILDS_SDK OR REF_BUILD_FRAMEWORK"
72+
build-pragmata-sdk = "REF_BUILD_PRAGMATA_SDK OR REF_BUILD_FRAMEWORK"
7073
build-framework-dependencies = "REF_BUILD_DEPENDENCIES AND CMAKE_SIZEOF_VOID_P EQUAL 8"
7174

7275
[fetch-content.asmjit]
@@ -128,13 +131,26 @@ condition = "build-framework-dependencies"
128131
git = "https://github.com/cursey/safetyhook"
129132
tag = "b046e123dc69821f2c375161e0adef3c6d9c9db4"
130133

134+
[fetch-content.freetype]
135+
git = "https://github.com/freetype/freetype"
136+
tag = "f1cd6dbfa0c98f352b698448f40ac27e8fb3832e"
137+
131138
[target.imgui]
132139
type = "static"
133-
sources = ["dependencies/imgui/*.cpp"]
134-
include-directories = ["dependencies/imgui", "src/re2-imgui"]
140+
sources = [
141+
"dependencies/imgui/*.cpp",
142+
"dependencies/imgui/misc/freetype/imgui_freetype.cpp",
143+
]
144+
include-directories = [
145+
"dependencies/imgui",
146+
"dependencies/imgui/misc/freetype",
147+
"src/re2-imgui"]
135148
compile-definitions = [
136149
"IMGUI_USER_CONFIG=\"${CMAKE_CURRENT_SOURCE_DIR}/src/re2-imgui/re2_imconfig.hpp\"",
137150
]
151+
link-libraries = [
152+
"freetype"
153+
]
138154
condition = "build-framework"
139155

140156
[target.imguizmo]
@@ -187,7 +203,7 @@ tag = "v1.34.10"
187203

188204
[fetch-content.kananlib]
189205
git = "https://github.com/cursey/kananlib"
190-
tag = "d659e3b8312e26ba19329f96b73ba88d1211bfdb"
206+
tag = "3a2448d5b12afd607f02af231571ec76443cb545"
191207

192208
[target.utility]
193209
type = "static"
@@ -374,6 +390,14 @@ condition = "build-mhwilds-sdk"
374390
[target.MHWILDS]
375391
type = "game"
376392

393+
[target.PRAGMATASDK]
394+
type = "sdk"
395+
compile-definitions = ["PRAGMATA", "REENGINE_PACKED", "REENGINE_AT"]
396+
condition = "build-pragmata-sdk"
397+
398+
[target.PRAGMATA]
399+
type = "game"
400+
377401
[template.plugin]
378402
type = "shared"
379403
include-directories = ["include/"]

dependencies/imgui

Submodule imgui updated 100 files

dependencies/imnodes/imnodes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ void ImDrawListGrowChannels(ImDrawList* draw_list, const int num_channels)
354354
{
355355
ImDrawCmd draw_cmd;
356356
draw_cmd.ClipRect = draw_list->_ClipRectStack.back();
357-
draw_cmd.TextureId = draw_list->_TextureIdStack.back();
357+
draw_cmd.TexRef = draw_list->_TextureStack.back();
358358
channel._CmdBuffer.push_back(draw_cmd);
359359
}
360360
}

include/reframework/API.hpp

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,13 @@ class API {
529529
static const auto fn = API::s_instance->sdk()->type_definition->get_methods;
530530

531531
std::vector<API::Method*> methods;
532-
methods.resize(get_num_methods());
532+
533+
auto num_methods = get_num_methods();
534+
if (num_methods < 1) {
535+
return {};
536+
}
537+
538+
methods.resize(num_methods);
533539

534540
auto result = fn(*this, (REFrameworkMethodHandle*)&methods[0], methods.size() * sizeof(API::Method*), nullptr);
535541

@@ -544,7 +550,14 @@ class API {
544550
static const auto fn = API::s_instance->sdk()->type_definition->get_fields;
545551

546552
std::vector<API::Field*> fields;
547-
fields.resize(get_num_fields());
553+
554+
555+
auto num_fields = get_num_fields();
556+
if (num_fields < 1) {
557+
return {};
558+
}
559+
560+
fields.resize(num_fields);
548561

549562
auto result = fn(*this, (REFrameworkFieldHandle*)&fields[0], fields.size() * sizeof(API::Field*), nullptr);
550563

@@ -681,7 +694,13 @@ class API {
681694
static const auto fn = API::s_instance->sdk()->method->get_params;
682695

683696
std::vector<REFrameworkMethodParameter> params;
684-
params.resize(get_num_params());
697+
698+
auto num_params = get_num_params();
699+
if (num_params < 1) {
700+
return {};
701+
}
702+
703+
params.resize(num_params);
685704

686705
auto result = fn(*this, (REFrameworkMethodParameter*)&params[0], params.size() * sizeof(REFrameworkMethodParameter), nullptr);
687706

nightly-body.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ If you want builds that work on the old non-RT versions, download the versions t
1313

1414
[Documentation](https://cursey.github.io/reframework-book/)
1515

16-
[Modding Haven](https://discord.gg/9Vr2SJ3) (General RE Engine modding)
16+
[Haven's Night](https://discord.gg/9Vr2SJ3) (General RE Engine modding)
1717

1818
[Infernal Warks](https://discord.com/invite/nX5EzVU) (DMC5 modding)
1919

0 commit comments

Comments
 (0)