Modification of comments
This commit is contained in:
@@ -156,7 +156,6 @@ extern "C" __declspec(dllexport) void SetFixEnabled(bool enabled, bool init)
|
||||
logger->warn("Aspect ratio signature not found. Maybe your game has been updated and is no more compatible with this plugin.");
|
||||
else {
|
||||
logger->info("Aspect ratio signature found at address: 0x{:X}.", reinterpret_cast<uintptr_t>(Aspectaddress));
|
||||
//Aspectaddress = Aspectaddress + 0x63;
|
||||
Aspectaddress = Aspectaddress + 0x13;
|
||||
}
|
||||
}
|
||||
@@ -422,9 +421,10 @@ static void AspectFixEnabled(bool fix_enabled) {
|
||||
auto obj = reinterpret_cast<UObject*>(ctx.rbx);
|
||||
constexpr auto PauseBackScreenStringObfuscated = make_obfuscated<0x4A>("WP_PauseBackScreen");
|
||||
auto decrypted = PauseBackScreenStringObfuscated.decrypt();
|
||||
if (!decrypted.empty() && decrypted.back() == '\0')
|
||||
if (!decrypted.empty() && decrypted.back() == '\0') // trim right nul terminated character
|
||||
decrypted.pop_back();
|
||||
|
||||
// This will force screen aspect ratio when pause menu is activated only
|
||||
if (obj->GetName().find(decrypted) != std::string::npos)
|
||||
ctx.xmm0.f64[0] = static_cast<double>(aspectRatio);
|
||||
});
|
||||
@@ -491,7 +491,7 @@ static void EnableConsole()
|
||||
std::thread([&]() {
|
||||
UEngine* Engine = nullptr;
|
||||
|
||||
for (int i = 0; i < 100; ++i) { // gives 10 seconds to recreate console
|
||||
for (int i = 0; i < 100; ++i) { // gives 10 seconds to find UE Engine
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||
Engine = UEngine::GetEngine();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user