Skip to content

Commit

Permalink
better xensik/serious formatters
Browse files Browse the repository at this point in the history
  • Loading branch information
ate47 committed Aug 27, 2024
1 parent 2948d98 commit abbb2cb
Show file tree
Hide file tree
Showing 51 changed files with 3,003 additions and 662 deletions.
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,12 @@
[submodule "deps/dbflib"]
path = deps/dbflib
url = https://github.com/ate47/dbflib
[submodule "deps/json-rpc-cxx"]
path = deps/json-rpc-cxx
url = https://github.com/jsonrpcx/json-rpc-cxx
[submodule "deps/json"]
path = deps/json
url = https://github.com/nlohmann/json
[submodule "deps/rapidcsv"]
path = deps/rapidcsv
url = https://github.com/d99kris/rapidcsv
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ My set of tools. The code is more important than the features, so feel free to r

| Name | Revision | Decompiler | Compiler | PS4 support |
| ------------------------ | -------- | ---------- | -------- | ----------- |
| Black Ops 3 (T7) | 1B | Partial | ||
| Black Ops 3 (T7) | 1C || ||
| Black Ops 3 (T7) | 1B | Partial | ||
| Black Ops 3 (T7) | 1C || ||
| Black Ops 4 (T8) | 36 ||| EXT |
| Black Ops Cold War (T9) | 37 | DEC || EXT |
| Black Ops Cold War (T9) | 38 | DEC || EXT |
Expand Down
43 changes: 43 additions & 0 deletions premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ project "ACTSSharedLibrary"
"src/shared",
"deps/asmjit/src/",
"deps/Detours/src/",
"deps/rapidjson/include/",
}

vpaths {
Expand Down Expand Up @@ -142,6 +143,44 @@ project "AtianCodToolsBO4DLL"
dependson "detours"
dependson "asmjit"


project "AtianCodToolsBO4DLL2"
kind "SharedLib"
language "C++"
cppdialect "C++20"
targetdir "%{wks.location}/bin/"
objdir "%{wks.location}/obj/"

targetname "acts-bo4-ext"

files {
"./src/bo4-ext-dll/**.hpp",
"./src/bo4-ext-dll/**.h",
"./src/bo4-ext-dll/**.cpp",
}

includedirs {
"src/bo4-ext-dll",
"src/shared",
-- link detours
"deps/Detours/src/",
"deps/asmjit/src/",
"deps/rapidjson/include/",
"deps/dbflib/src/lib/",
"deps/hw_break/HwBpLib/inc/",
}

vpaths {
["*"] = "*"
}

links { "ACTSSharedLibrary" }
links { "detours" }
links { "asmjit" }
dependson "ACTSSharedLibrary"
dependson "detours"
dependson "asmjit"

project "AtianCodToolsBOCWDLL"
kind "SharedLib"
language "C++"
Expand Down Expand Up @@ -223,6 +262,10 @@ project "AtianCodTools"
"deps/Detours/src/",
"deps/rapidjson/include/",
"deps/dbflib/src/lib/",
"deps/json-rpc-cxx/include/",
"deps/json/include/",
"deps/rapidcsv/src/",
"deps/hw_break/HwBpLib/inc/",
}

vpaths {
Expand Down
4 changes: 2 additions & 2 deletions src/acts/actscli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ namespace {

// register the vm itself
const char* str = strcontainer.AddString(name);
tool::gsc::opcode::RegisterVM(vm.vm, str, str, vm.vmflags);
tool::gsc::opcode::RegisterVM(vm.vm, str, str, str, vm.vmflags);

auto* platforms = reinterpret_cast<ActsPackVMPlatform*>(pack->header.magic + vm.platformsOffset);

Expand Down Expand Up @@ -250,7 +250,7 @@ namespace {
auto CreateBlock = [&packFileData](size_t size) -> uint32_t {
size_t offset = packFileData.size();
if (offset + size < packFileData.capacity()) {
packFileData.reserve(max(offset + size * 2, offset * 2));
packFileData.reserve(std::max(offset + size * 2, offset * 2));
}

for (size_t i = 0; i < size; i++) {
Expand Down
2 changes: 2 additions & 0 deletions src/acts/actscli.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ namespace actscli {
bool show0Hash{ false };
const char* saveProfiler{};
const char* seriousDBFile{};
const char* hashPrefixByPass{};
bool heavyHashes{};
};

ActsOptions& options();
Expand Down
Loading

0 comments on commit abbb2cb

Please sign in to comment.