Skip to content

Commit

Permalink
Merge pull request #109 from AoiKamishiro/feature/legacyLTSSupport
Browse files Browse the repository at this point in the history
  • Loading branch information
mika-f authored Aug 9, 2024
2 parents 10f0a7d + 4866b44 commit 50fd72f
Show file tree
Hide file tree
Showing 2 changed files with 131 additions and 49 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ v3.0.0 supports the following versions of Blender:
- Blender 3.6.2 (x64 - Windows)
- Blender 3.6.4 (x64 - Windows)
- Blender 3.6.5 (x64 - Windows)
- Blender 3.6.7 (x64 - Windows)
- Blender 3.6.8 (x64 - Windows)
- Blender 3.6.9 (x64 - Windows)
- Blender 3.6.10 (x64 - Windows)
- Blender 3.6.11 (x64 - Windows)
- Blender 3.6.12 (x64 - Windows)
- Blender 3.6.13 (x64 - Windows)
- Blender 3.6.14 (x64 - Windows)
- Blender 4.0.0 (x64 - Windows)
- Blender 4.0.1 (x64 - Windows)
- Blender 4.0.2 (x64 - Windows)
Expand Down
172 changes: 123 additions & 49 deletions src/dll/BlenderPatchPatterns.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ struct BlenderPatchPattern
std::string bpy_interface_BPY_run_string_eval,
std::string space_view3d_view3d_ima_empty_drop_poll,
std::string space_view3d_view3d_ima_drop_poll,
std::string view3d_select_ED_view3d_give_object_under_cursor
)
std::string view3d_select_ED_view3d_give_object_under_cursor)
: _bpy_interface_BPY_run_string_eval(std::move(bpy_interface_BPY_run_string_eval)),
_space_view3d_view3d_ima_empty_drop_poll(std::move(space_view3d_view3d_ima_empty_drop_poll)),
_space_view3d_view3d_ima_drop_poll(std::move(space_view3d_view3d_ima_drop_poll)),
Expand Down Expand Up @@ -87,7 +86,6 @@ struct BlenderPatchPattern
static std::unordered_map<std::string, BlenderPatchPattern> Patchers{
#pragma region Blender 3.x
{

"3.1.0",
{
"E8 28 BC 3F 00",
Expand All @@ -112,7 +110,7 @@ static std::unordered_map<std::string, BlenderPatchPattern> Patchers{
"4C 8D 05 65 06 00 00",
"E8 7B FF FF FF 84 C0",
"E8 5B 2C 00 00 48 85 C0",
}
},
},
{
"3.2.0",
Expand All @@ -121,7 +119,7 @@ static std::unordered_map<std::string, BlenderPatchPattern> Patchers{
"4C 8D 05 77 06 00 00",
"E8 7B FF FF FF 84 C0",
"E8 BB 2C 00 00 48 85 C0",
}
},
},
{
"3.2.1",
Expand All @@ -130,7 +128,7 @@ static std::unordered_map<std::string, BlenderPatchPattern> Patchers{
"4C 8D 05 77 06 00 00",
"E8 7B FF FF FF 84 C0",
"E8 BB 2C 00 00 48 85 C0",
}
},
},
{
"3.2.2",
Expand All @@ -139,7 +137,7 @@ static std::unordered_map<std::string, BlenderPatchPattern> Patchers{
"4C 8D 05 77 06 00 00",
"E8 7B FF FF FF 84 C0",
"E8 BB 2C 00 00 48 85 C0",
}
},
},
{
"3.3.0",
Expand All @@ -148,7 +146,7 @@ static std::unordered_map<std::string, BlenderPatchPattern> Patchers{
"4C 8D 05 77 06 00 00",
"E8 7B FF FF FF 84 C0",
"E8 CB 2C 00 00 48 85 C0",
}
},
},
{
"3.3.1",
Expand All @@ -157,15 +155,15 @@ static std::unordered_map<std::string, BlenderPatchPattern> Patchers{
"4C 8D 05 77 06 00 00",
"E8 7B FF FF FF 84 C0",
"E8 CB 2C 00 00 48 85 C0",
}
},
},
{
"3.3.2",
{
"E8 6E BF 39 00",
"4C 8D 05 77 06 00 00",
"E8 7B FF FF FF 84 C0",
"E8 CB 2C 00 00 48 85 C0"
"E8 CB 2C 00 00 48 85 C0",
},
},
{
Expand All @@ -174,124 +172,200 @@ static std::unordered_map<std::string, BlenderPatchPattern> Patchers{
"E8 3E C0 39 00",
"4C 8D 05 77 06 00 00",
"E8 7B FF FF FF 84 C0",
"E8 CB 2C 00 00 48 85 C0"
}
"E8 CB 2C 00 00 48 85 C0",
},
},
{
"3.3.4",
{

"E8 5E C0 39 00",
"4C 8D 05 77 06 00 00",
"E8 7B FF FF FF 84 C0",
"E8 CB 2C 00 00 48 85 C0"
}
"E8 CB 2C 00 00 48 85 C0",
},
},
{
"3.4.0",
{
"E8 2E 7A 3C 00",
"4C 8D 05 B7 06 00 00",
"E8 7B FF FF FF 84 C0",
"E8 FB B6 00 00 48 85 C0"
}
"E8 FB B6 00 00 48 85 C0",
},
},
{
"3.4.1",
{
"E8 48 C0 3C 00",
"4C 8D 05 B7 06 00 00",
"E8 7B FF FF FF 84 C0",
"E8 FB B6 00 00 48 85 C0"
}
"E8 FB B6 00 00 48 85 C0",
},
},
{
"3.5.0",
{
"E8 C8 AD 3F 00",
"4C 8D 05 09 08 00 00",
"E8 7B FF FF FF 84 C0",
"E8 0B BC 00 00 48 85 C0"
}
"E8 0B BC 00 00 48 85 C0",
},
},
{
"3.5.1", {
"3.5.1",
{
"E8 AE 4D 3F 00 84 DB",
"4C 8D 05 09 08 00 00",
"E8 7B FF FF FF 84 C0",
"E8 0B BC 00 00 48 85 C0"
}
"E8 0B BC 00 00 48 85 C0",
},
},
{
"3.6.0", {
"3.6.0",
{
"E8 FC 8F 41 00 E8 C7 AD 22 04",
"4C 8D 05 F9 07 00 00",
"E8 7B FF FF FF 84 C0",
"E8 EB BD 00 00 48 85 C0"
}
"E8 EB BD 00 00 48 85 C0",
},
},
{

"3.6.1", {
"3.6.1",
{
"E8 AC 90 41 00 E8 B7 AA 22 04",
"4C 8D 05 F9 07 00 00",
"E8 7B FF FF FF 84 C0",
"E8 EB BD 00 00 48 85 C0"
}
"E8 EB BD 00 00 48 85 C0",
},
},
{

"3.6.2", {
"3.6.2",
{
"E8 7C 9C 41 00 E8 47 BC 22 04",
"4C 8D 05 F9 07 00 00",
"E8 7B FF FF FF 84 C0",
"E8 EB BD 00 00 48 85 C0",
}
},
},
{

"3.6.4", {
"3.6.4",
{
"E8 5C 9D 41 00 E8",
"4C 8D 05 09 08 00 00",
"E8 7B FF FF FF 84 C0",
"E8 EB BD 00 00 48 85 C0",
}
},
},
{

"3.6.5", {
"3.6.5",
{
"E8 1C A0 41 00 E8",
"4C 8D 05 09 08 00 00",
"E8 7B FF FF FF 84 C0",
"E8 EB BD 00 00 48 85 C0",
}
},
},
{
"3.6.7",
{
"E8 4C A8 41 00",
"4C 8D 05 09 08 00 00",
"E8 7B FF FF FF 84 C0",
"E8 EB BD 00 00 48 85 C0",
},
},
{
"3.6.8",
{
"E8 7C B5 41 00",
"4C 8D 05 09 08 00 00",
"E8 7B FF FF FF 84 C0",
"E8 EB BD 00 00 48 85 C0",
},
},
{
"3.6.9",
{
"E8 BC B5 41 00",
"4C 8D 05 09 08 00 00",
"E8 7B FF FF FF 84 C0",
"E8 EB BD 00 00 48 85 C0",
},
},
{
"3.6.10",
{
"E8 BC B6 41 00",
"4C 8D 05 09 08 00 00",
"E8 7B FF FF FF 84 C0",
"E8 EB BD 00 00 48 85 C0",
},
},
{
"3.6.11",
{
"E8 BC B6 41 00",
"4C 8D 05 19 08 00 00",
"E8 7B FF FF FF 84 C0",
"E8 EB BD 00 00 48 85 C0",
},
},
{
"3.6.12",
{
"E8 CC B6 41 00",
"4C 8D 05 19 08 00 00",
"E8 7B FF FF FF 84 C0",
"E8 EB BD 00 00 48 85 C0",
},
},
{
"3.6.13",
{
"E8 EC B5 41 00",
"4C 8D 05 19 08 00 00",
"E8 7B FF FF FF 84 C0",
"E8 EB BD 00 00 48 85 C0",
},
},
{
"3.6.14",
{
"E8 EC B5 41 00",
"4C 8D 05 19 08 00 00",
"E8 7B FF FF FF 84 C0",
"E8 EB BD 00 00 48 85 C0",
},
},
#pragma endregion // Blender 3.x

#pragma region Blender 4.x
{
"4.0.0", {
"4.0.0",
{
"E8 A9 4E 45 00",
"4C 8D 05 09 0A 00 00",
"E8 7B FF FF FF 84 C0",
"E8 FB 26 00 00 48 85 C0"
}
"E8 FB 26 00 00 48 85 C0",
},
},
{
"4.0.1", {
"4.0.1",
{
"E8 89 4E 45 00",
"4C 8D 05 09 0A 00 00",
"E8 7B FF FF FF 84 C0",
"E8 FB 26 00 00 48 85 C0"
}
"E8 FB 26 00 00 48 85 C0",
},
},
{
"4.0.2", {
"4.0.2",
{
"E8 89 54 45 00",
"4C 8D 05 09 0A 00 00",
"E8 7B FF FF FF 84 C0",
"E8 FB 26 00 00 48 85 C0"
}
"E8 FB 26 00 00 48 85 C0",
},
}
#pragma endregion // Blender 4.x
};

0 comments on commit 50fd72f

Please sign in to comment.