From 2e2cbd26d188b46962328efb081af1a277dd6b85 Mon Sep 17 00:00:00 2001 From: Rim Date: Thu, 16 May 2024 17:35:57 -0400 Subject: [PATCH] maint: rebrand --- README.md | 1 + source/proxy-dll/component/blackbox.cpp | 6 +++--- source/proxy-dll/component/gsc_funcs.cpp | 8 ++++---- source/proxy-dll/component/hashes.cpp | 4 ++-- source/proxy-dll/component/logger.cpp | 6 +++--- source/proxy-dll/component/mods.cpp | 2 +- source/proxy-dll/component/splash.cpp | 2 +- source/proxy-dll/demonware/objects.cpp | 2 +- source/shared-code/utilities/json_config.cpp | 2 +- 9 files changed, 17 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index f0f7408..12cf571 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +# T8-Mod ![code](https://raw.githubusercontent.com/project-bo4/shield-development/master/assets/readme_header.jpg) diff --git a/source/proxy-dll/component/blackbox.cpp b/source/proxy-dll/component/blackbox.cpp index 24104f3..41a8419 100644 --- a/source/proxy-dll/component/blackbox.cpp +++ b/source/proxy-dll/component/blackbox.cpp @@ -72,7 +72,7 @@ namespace blackbox utilities::thread::suspend_other_threads(); show_mouse_cursor(); - MessageBoxA(nullptr, error_str.data(), "Project-BO4 ERROR", MB_ICONERROR); + MessageBoxA(nullptr, error_str.data(), "T8-Mod ERROR", MB_ICONERROR); TerminateProcess(GetCurrentProcess(), exception_data.code); } @@ -84,7 +84,7 @@ namespace blackbox ++recovery_data.recovery_counts; game::Com_Error(game::ERR_DROP, "Fatal error (0x%08X) at 0x%p (0x%p).\nA minidump has been written.\n\n" - "Project-BO4 has tried to recover your game, but it might not run stable anymore.\n\n" + "T8-Mod has tried to recover your game, but it might not run stable anymore.\n\n" "Make sure to update your graphics card drivers and install operating system updates!\n" "Closing or restarting Steam might also help.", exception_data.code, exception_data.address, @@ -262,7 +262,7 @@ namespace blackbox utilities::compression::zip::archive zip_file{}; zip_file.add("crash.dmp", exception::create_minidump(exceptioninfo)); zip_file.add("info.txt", generate_crash_info(exceptioninfo)); - zip_file.write(crash_name, "Project-bo4 Crash Dump"); + zip_file.write(crash_name, "T8-Mod Crash Dump"); } bool is_harmless_error(const LPEXCEPTION_POINTERS exceptioninfo) diff --git a/source/proxy-dll/component/gsc_funcs.cpp b/source/proxy-dll/component/gsc_funcs.cpp index 0fdd47a..50e4d27 100644 --- a/source/proxy-dll/component/gsc_funcs.cpp +++ b/source/proxy-dll/component/gsc_funcs.cpp @@ -725,15 +725,15 @@ namespace gsc_funcs return; } - std::string file{ std::format("project-bo4/saved/{}/{}.json", (inst ? "client" : "server"), fileid) }; + std::string file{ std::format("t8-mod/saved/{}/{}.json", (inst ? "client" : "server"), fileid) }; if (inst) { - std::filesystem::create_directories("project-bo4/saved/client"); + std::filesystem::create_directories("t8-mod/saved/client"); } else { - std::filesystem::create_directories("project-bo4/saved/server"); + std::filesystem::create_directories("t8-mod/saved/server"); } game::ScrVarValue_t* val = &game::scrVmPub[inst].top[-1]; @@ -933,7 +933,7 @@ namespace gsc_funcs return; } - std::string file{ std::format("project-bo4/saved/{}/{}.json", (inst ? "client" : "server"), fileid) }; + std::string file{ std::format("t8-mod/saved/{}/{}.json", (inst ? "client" : "server"), fileid) }; std::string file_content{}; diff --git a/source/proxy-dll/component/hashes.cpp b/source/proxy-dll/component/hashes.cpp index 23b4319..63ffa97 100644 --- a/source/proxy-dll/component/hashes.cpp +++ b/source/proxy-dll/component/hashes.cpp @@ -236,14 +236,14 @@ namespace hashes } // load default files - std::filesystem::path default_file_name_str = "project-bo4/strings.txt"; + std::filesystem::path default_file_name_str = "t8-mod/strings.txt"; if (std::filesystem::exists(default_file_name_str)) { load_file(default_file_name_str, HFF_STRING); } - std::filesystem::path default_file_name_common = "project-bo4/hashes.csv"; + std::filesystem::path default_file_name_common = "t8-mod/hashes.csv"; if (std::filesystem::exists(default_file_name_common)) { diff --git a/source/proxy-dll/component/logger.cpp b/source/proxy-dll/component/logger.cpp index 67822bf..bb92c77 100644 --- a/source/proxy-dll/component/logger.cpp +++ b/source/proxy-dll/component/logger.cpp @@ -38,7 +38,7 @@ namespace logger #endif // OUTPUT_DEBUG_API std::ofstream fs; - fs.open("project-bo4.log", std::ios_base::app); + fs.open("t8-mod.log", std::ios_base::app); time_t now = time(0); std::tm* t = std::localtime(&now); @@ -64,11 +64,11 @@ namespace logger void pre_start() override { #ifdef REMOVE_PREVIOUS_LOG - utilities::io::remove_file("project-bo4.log"); + utilities::io::remove_file("t8-mod.log"); #endif // REMOVE_PREVIOUS_LOG write(LOG_TYPE_INFO, "======================================================================================================="); - write(LOG_TYPE_INFO, " Project-BO4 Initializing ... %s[0x%llX]", utilities::nt::library{}.get_name().c_str(), utilities::nt::library{}.get_ptr()); + write(LOG_TYPE_INFO, " T8-Mod Initializing ... %s[0x%llX]", utilities::nt::library{}.get_name().c_str(), utilities::nt::library{}.get_ptr()); write(LOG_TYPE_INFO, "======================================================================================================="); } diff --git a/source/proxy-dll/component/mods.cpp b/source/proxy-dll/component/mods.cpp index 9959e89..da60a40 100644 --- a/source/proxy-dll/component/mods.cpp +++ b/source/proxy-dll/component/mods.cpp @@ -20,7 +20,7 @@ namespace mods { constexpr const char* gsic_magic = "GSIC"; constexpr const char* mod_metadata_file = "metadata.json"; - std::filesystem::path mod_dir = "project-bo4/mods"; + std::filesystem::path mod_dir = "t8-mod/mods"; namespace { struct raw_file diff --git a/source/proxy-dll/component/splash.cpp b/source/proxy-dll/component/splash.cpp index 4ae1999..c390067 100644 --- a/source/proxy-dll/component/splash.cpp +++ b/source/proxy-dll/component/splash.cpp @@ -83,7 +83,7 @@ namespace splash if (image) { - window = CreateWindowExA(WS_EX_APPWINDOW, "Black Ops 4 Splash Screen", "Project-Bo4", + window = CreateWindowExA(WS_EX_APPWINDOW, "Black Ops 4 Splash Screen", "T8-Mod", WS_POPUP | WS_SYSMENU, (x_pixels - 320) / 2, (y_pixels - 100) / 2, 320, 100, nullptr, nullptr, diff --git a/source/proxy-dll/demonware/objects.cpp b/source/proxy-dll/demonware/objects.cpp index 1ad0e78..94312a3 100644 --- a/source/proxy-dll/demonware/objects.cpp +++ b/source/proxy-dll/demonware/objects.cpp @@ -613,7 +613,7 @@ namespace demonware bdProtobufHelper header_2nd; header_2nd.writeString(1, "Authorization", 16); - header_2nd.writeString(2, "Bearer project-bo4", 2048); + header_2nd.writeString(2, "Bearer t8-mod", 2048); bdProtobufHelper buffer; diff --git a/source/shared-code/utilities/json_config.cpp b/source/shared-code/utilities/json_config.cpp index f5b730c..c9e0e2f 100644 --- a/source/shared-code/utilities/json_config.cpp +++ b/source/shared-code/utilities/json_config.cpp @@ -8,7 +8,7 @@ namespace utilities::json_config { rapidjson::Document json_doc{}; - std::string file_name = "project-bo4.json"; + std::string file_name = "t8-mod.json"; namespace {