From d04882bc07e3e380512018403e97372122d7e008 Mon Sep 17 00:00:00 2001 From: Belonit Date: Sun, 11 Apr 2021 22:16:52 +0300 Subject: [PATCH 1/2] =?UTF-8?q?Semantic=20values=20=E2=80=8B=E2=80=8Bfor?= =?UTF-8?q?=20the=20Locomotor=20tag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Phobos.vcxproj | 1 + src/Misc/Hooks.INIClass.cpp | 66 +++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 src/Misc/Hooks.INIClass.cpp diff --git a/Phobos.vcxproj b/Phobos.vcxproj index e2e810c771..c581450605 100644 --- a/Phobos.vcxproj +++ b/Phobos.vcxproj @@ -42,6 +42,7 @@ + diff --git a/src/Misc/Hooks.INIClass.cpp b/src/Misc/Hooks.INIClass.cpp new file mode 100644 index 0000000000..5080adbbdf --- /dev/null +++ b/src/Misc/Hooks.INIClass.cpp @@ -0,0 +1,66 @@ +#include + +DEFINE_HOOK(527B0A, INIClass__Get_UUID, 8) +{ + GET(wchar_t*, buffer, ECX); + + if (buffer[0] != L'{') { + + if (_wcsicmp(buffer, L"Drive") == 0) { + wcscpy(buffer, L"{4A582741-9839-11d1-B709-00A024DDAFD1}"); + return 0; + } + + if (_wcsicmp(buffer, L"Jumpjet") == 0) { + wcscpy(buffer, L"{92612C46-F71F-11d1-AC9F-006008055BB5}"); + return 0; + } + + if (_wcsicmp(buffer, L"Hover") == 0) { + wcscpy(buffer, L"{4A582742-9839-11d1-B709-00A024DDAFD1}"); + return 0; + } + + if (_wcsicmp(buffer, L"Rocket") == 0) { + wcscpy(buffer, L"{B7B49766-E576-11d3-9BD9-00104B972FE8}"); + return 0; + } + + if (_wcsicmp(buffer, L"Tunnel") == 0) { + wcscpy(buffer, L"{4A582743-9839-11d1-B709-00A024DDAFD1}"); + return 0; + } + + if (_wcsicmp(buffer, L"Walk") == 0) { + wcscpy(buffer, L"{4A582744-9839-11d1-B709-00A024DDAFD1}"); + return 0; + } + + if (_wcsicmp(buffer, L"DropPod") == 0) { + wcscpy(buffer, L"{4A582745-9839-11d1-B709-00A024DDAFD1}"); + return 0; + } + + if (_wcsicmp(buffer, L"Fly") == 0) { + wcscpy(buffer, L"{4A582746-9839-11d1-B709-00A024DDAFD1}"); + return 0; + } + + if (_wcsicmp(buffer, L"Teleport") == 0) { + wcscpy(buffer, L"{4A582747-9839-11d1-B709-00A024DDAFD1}"); + return 0; + } + + if (_wcsicmp(buffer, L"Mech") == 0) { + wcscpy(buffer, L"{55D141B8-DB94-11d1-AC98-006008055BB5}"); + return 0; + } + + if (_wcsicmp(buffer, L"Ship") == 0) { + wcscpy(buffer, L"{2BEA74E1-7CCA-11d3-BE14-00104B62A16C}"); + return 0; + } + } + + return 0; +} From efcf934c9fdd85246affa6bc70f81f3748cf7faa Mon Sep 17 00:00:00 2001 From: "Meta (X230T)" Date: Tue, 13 Apr 2021 14:03:54 +0300 Subject: [PATCH 2/2] Add docs entry --- docs/Miscellanous.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/docs/Miscellanous.md b/docs/Miscellanous.md index d8ccfaa3ec..f3ae136c34 100644 --- a/docs/Miscellanous.md +++ b/docs/Miscellanous.md @@ -15,4 +15,22 @@ In `rulesmd.ini`: ```ini [GlobalControls] DebugKeysEnabled=yes ; boolean -``` \ No newline at end of file +``` + +### Semantic locomotor aliases + +- It's now possible to write locomotor aliases instead of their CLSIDs in the `Locomotor` tag value. Use the table below to find the needed alias for a locomotor. + +| *Alias*| *CLSID* | +| -----: | :--------------------------------------: | +Drive | `{4A582741-9839-11d1-B709-00A024DDAFD1}` | +Jumpjet | `{92612C46-F71F-11d1-AC9F-006008055BB5}` | +Hover | `{4A582742-9839-11d1-B709-00A024DDAFD1}` | +Rocket | `{B7B49766-E576-11d3-9BD9-00104B972FE8}` | +Tunnel | `{4A582743-9839-11d1-B709-00A024DDAFD1}` | +Walk | `{4A582744-9839-11d1-B709-00A024DDAFD1}` | +DropPod | `{4A582745-9839-11d1-B709-00A024DDAFD1}` | +Fly | `{4A582746-9839-11d1-B709-00A024DDAFD1}` | +Teleport | `{4A582747-9839-11d1-B709-00A024DDAFD1}` | +Mech | `{55D141B8-DB94-11d1-AC98-006008055BB5}` | +Ship | `{2BEA74E1-7CCA-11d3-BE14-00104B62A16C}` | \ No newline at end of file