Skip to content

Commit

Permalink
Support patch 1.62.1
Browse files Browse the repository at this point in the history
  • Loading branch information
psiberx committed Apr 20, 2023
1 parent 0ede4f6 commit d3c2069
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 39 deletions.
2 changes: 1 addition & 1 deletion src/App/Project.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ constexpr auto Author = "psiberx";
constexpr auto NameW = L"TweakXL";
constexpr auto AuthorW = L"psiberx";

constexpr auto Version = semver::from_string_noexcept("1.1.3").value();
constexpr auto Version = semver::from_string_noexcept("1.1.4").value();
}
8 changes: 4 additions & 4 deletions src/App/Version.rc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#define VER_PRODUCTVERSION 1,1,3,0
#define VER_FILEVERSION 1,1,3,2303221150
#define VER_PRODUCTVERSION 1,1,4,0
#define VER_FILEVERSION 1,1,4,2304202158

#define VER_PRODUCTNAME_STR "TweakXL\0"
#define VER_PRODUCTVERSION_STR "1.1.3\0"
#define VER_FILEVERSION_STR "1.1.3.2303221150\0"
#define VER_PRODUCTVERSION_STR "1.1.4\0"
#define VER_FILEVERSION_STR "1.1.4.2304202158\0"

1 VERSIONINFO
FILEVERSION VER_FILEVERSION
Expand Down
8 changes: 4 additions & 4 deletions src/Red/Addresses.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

// Generated by cp77ida.py on 2023-04-12 for Cyberpunk 2077 v.1.62
// Generated by cp77ida.py on 2023-04-20 for Cyberpunk 2077 v.1.62
// DO NOT MODIFY. USE tools\ida\scan.py TO GENERATE THIS FILE.

#include <cstdint>
Expand All @@ -11,8 +11,8 @@ constexpr uintptr_t ImageBase = 0x140000000;

constexpr uintptr_t Main = 0x1401A0330 - ImageBase; // 40 53 48 81 EC ? ? ? ? FF 15 ? ? ? ? E8 ? ? ? ? E8 ? ? ? ?, expected: 1, index: 0

constexpr uintptr_t TweakDB_Load = 0x140BE5330 - ImageBase; // 48 89 5C 24 18 55 57 41 56 48 8B EC 48 83 EC 70 48 8B D9 45 33 F6 48 8D, expected: 1, index: 0
constexpr uintptr_t TweakDB_CreateRecord = 0x140FD3110 - ImageBase; // 48 89 5C 24 08 ? 89 ? 24 18 57 48 83 EC 30 8B C2, expected: 1, index: 0
constexpr uintptr_t TweakDB_Load = 0x140BE5440 - ImageBase; // 48 89 5C 24 18 55 57 41 56 48 8B EC 48 83 EC 70 48 8B D9 45 33 F6 48 8D, expected: 1, index: 0
constexpr uintptr_t TweakDB_CreateRecord = 0x140FD3220 - ImageBase; // 48 89 5C 24 08 ? 89 ? 24 18 57 48 83 EC 30 8B C2, expected: 1, index: 0

constexpr uintptr_t TweakDBID_Derive = 0x142C226F0 - ImageBase; // 40 53 48 83 EC 30 33 C0 4C 89 44 24 20 48 8B DA, expected: 1, index: 0
constexpr uintptr_t TweakDBID_Derive = 0x142C22A60 - ImageBase; // 40 53 48 83 EC 30 33 C0 4C 89 44 24 20 48 8B DA, expected: 1, index: 0
}
23 changes: 1 addition & 22 deletions src/pch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,8 @@
#include <utility>
#include <vector>

#include <RED4ext/Api/EMainReason.hpp>
#include <RED4ext/Api/Sdk.hpp>
#include <RED4ext/Api/Runtime.hpp>
#include <RED4ext/Api/SemVer.hpp>
#include <RED4ext/Api/Version.hpp>
#include <RED4ext/RED4ext.hpp>

#include <RED4ext/CName.hpp>
#include <RED4ext/CNamePool.hpp>
#include <RED4ext/CString.hpp>
#include <RED4ext/DynArray.hpp>
#include <RED4ext/GameEngine.hpp>
#include <RED4ext/Handle.hpp>
#include <RED4ext/HashMap.hpp>
#include <RED4ext/NativeTypes.hpp>
#include <RED4ext/RTTISystem.hpp>
#include <RED4ext/RTTITypes.hpp>
#include <RED4ext/ResourcePath.hpp>
#include <RED4ext/ResourceReference.hpp>
#include <RED4ext/SortedArray.hpp>
#include <RED4ext/TweakDB.hpp>
#include <RED4ext/Scripting/CProperty.hpp>
#include <RED4ext/Scripting/Functions.hpp>
#include <RED4ext/Scripting/Stack.hpp>
#include <RED4ext/Scripting/Natives/ScriptGameInstance.hpp>
#include <RED4ext/Scripting/Natives/Generated/Color.hpp>
#include <RED4ext/Scripting/Natives/Generated/EulerAngles.hpp>
Expand Down
2 changes: 1 addition & 1 deletion vendor/RED4ext.SDK
Submodule RED4ext.SDK updated 660 files
13 changes: 6 additions & 7 deletions xmake.lua
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
set_xmakever("2.5.9")

set_project("TweakXL")
set_version("1.1.3", {build = "%y%m%d%H%M"})
set_version("1.1.4", {build = "%y%m%d%H%M"})

set_arch("x64")
set_languages("cxx20", "cxx2a")
set_optimize("none")
add_cxxflags("/MP /GR- /EHsc")

if is_mode("debug") then
set_symbols("debug")
set_optimize("none")
add_cxxflags("/Od /Ob0 /Zi /RTC1")
elseif is_mode("release") then
set_symbols("hidden")
set_strip("all")
add_cxxflags("/O2 /Ob2 /fp:fast")
set_optimize("fastest")
add_cxxflags("/Ob2")
elseif is_mode("releasedbg") then
set_symbols("debug")
set_strip("all")
add_cxxflags("/O2 /Ob1 /fp:fast /Zi")
set_optimize("fastest")
add_cxxflags("/Ob1 /Zi")
end

if is_mode("debug") then
Expand All @@ -29,8 +31,6 @@ end

add_requires("fmt", "hopscotch-map", "minhook", "spdlog", "tiltedcore", "yaml-cpp")

add_defines("RED4EXT_STATIC_LIB", "YAML_CPP_STATIC_DEFINE")

target("TweakXL")
set_default(true)
set_kind("shared")
Expand All @@ -53,7 +53,6 @@ target("RED4ext.SDK")
set_default(false)
set_kind("static")
set_group("vendor")
add_files("vendor/RED4ext.SDK/src/**.cpp")
add_headerfiles("vendor/RED4ext.SDK/include/**.hpp")
add_includedirs("vendor/RED4ext.SDK/include/", { public = true })

Expand Down

0 comments on commit d3c2069

Please sign in to comment.