-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
247 additions
and
65 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: DoozyX/clang-format-lint-action@v0.16.2 | ||
with: | ||
source: '.' | ||
exclude: './docs' | ||
extensions: 'c,cc,cpp,cxx,h,hpp,hxx,inl,inc,ixx' | ||
clangFormatVersion: 16 | ||
inplace: True | ||
- uses: EndBug/add-and-commit@v9 | ||
with: | ||
author_name: clang-format | ||
message: 'chore: style formatting' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Submodule DKUtil
updated
26 files
+21 −0 | .github/workflows/clang-format.yml | |
+61 −12 | README.md | |
+5 −0 | docs/Config.md | |
+69 −9 | docs/Hook.md | |
+6 −0 | docs/Logger.md | |
+1 −1 | format-all.ps1 | |
+9 −9 | include/DKUtil/Extra.hpp | |
+4 −2 | include/DKUtil/Impl/Config/Data.hpp | |
+61 −3 | include/DKUtil/Impl/Config/Ini.hpp | |
+48 −2 | include/DKUtil/Impl/Config/Json.hpp | |
+23 −3 | include/DKUtil/Impl/Config/Proxy.hpp | |
+3 −1 | include/DKUtil/Impl/Config/Shared.hpp | |
+59 −1 | include/DKUtil/Impl/Config/Toml.hpp | |
+8 −5 | include/DKUtil/Impl/Extra/Serialization/resolver.hpp | |
+1 −1 | include/DKUtil/Impl/Hook/Assembly.hpp | |
+13 −19 | include/DKUtil/Impl/Hook/Internal.hpp | |
+22 −16 | include/DKUtil/Impl/Hook/Shared.hpp | |
+26 −15 | include/DKUtil/Impl/Hook/Trampoline.hpp | |
+2 −1 | include/DKUtil/Impl/Utility/templates.hpp | |
+2 −2 | test/ConfigTest.h | |
+10 −8 | test/HookTest.h | |
+1 −2 | test/LoggerTest.h | |
+12 −12 | test/PCH.h | |
+1 −1 | test/PluginTest.cpp | |
+1 −1 | test/SSEExtraTest.h | |
+4 −4 | test/UtilityTest.h |
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,46 @@ | ||
#pragma once | ||
|
||
#define is_at(M, O, C) static_assert(offsetof(C, M) == O) | ||
namespace RE | ||
{ | ||
namespace ls | ||
{ | ||
// placeholder type | ||
struct UIWidget | ||
{}; | ||
} | ||
|
||
namespace Noesis | ||
{ | ||
// because MSVC compiles std::string differently in debug mode lol | ||
struct string | ||
{ | ||
std::uint32_t length; | ||
std::uint16_t flag04; | ||
std::uint8_t unk06; | ||
bool unk07; | ||
char buffer[16]; // possible union with small string optimization | ||
|
||
constexpr auto string_view() const noexcept { return std::string_view{ buffer, length }; } | ||
}; | ||
static_assert(sizeof(string) == 0x18); | ||
|
||
struct XamlLoadRequest | ||
{ | ||
void* vtbl; | ||
std::uint32_t unk08; | ||
std::uint32_t unk0C; | ||
string file; // "SomeWidget.xaml" | ||
std::uint64_t unk28; | ||
string stack; // "HUD" / "Notification" / "" | ||
void* callable; | ||
string category; // "None" | ||
// skipped | ||
}; | ||
is_at(file, 0x10, XamlLoadRequest); | ||
is_at(stack, 0x30, XamlLoadRequest); | ||
is_at(category, 0x50, XamlLoadRequest); | ||
|
||
static inline std::add_pointer_t<void(RE::ls::UIWidget*, bool)> _SetVisiblityMask{ nullptr }; | ||
} // namespace Noesis | ||
} // namespace RE |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.