Skip to content

Commit

Permalink
Make it work
Browse files Browse the repository at this point in the history
  • Loading branch information
outercloudstudio committed Apr 7, 2024
1 parent 60ef4df commit db93ebb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#pragma once
#include <cstdint>
#include "amethyst/Memory.hpp"

enum class LogLevel : unsigned int {
Verbose = 0,
Expand Down Expand Up @@ -55,5 +57,9 @@ class ContentLog {
uintptr_t** vtable;

template<typename... Strings>
int Log(bool doNotRepeat, LogLevel logLevel, LogArea logArea, Strings... strings);
int Log(bool doNotRepeat, LogLevel logLevel, LogArea logArea, Strings... strings) {
using function = int (ContentLog::*)(bool, LogLevel, LogArea, Strings...);
auto func = std::bit_cast<function>(SigScan("44 89 4C 24 ? 48 83 EC"));
return (this->*func)(doNotRepeat, logLevel, logArea, strings...);
}
};

0 comments on commit db93ebb

Please sign in to comment.