maint: rebrand
This commit is contained in:
parent
0fb9cf5398
commit
2e2cbd26d1
@ -1,3 +1,4 @@
|
|||||||
|
# T8-Mod
|
||||||
|
|
||||||
![code](https://raw.githubusercontent.com/project-bo4/shield-development/master/assets/readme_header.jpg)
|
![code](https://raw.githubusercontent.com/project-bo4/shield-development/master/assets/readme_header.jpg)
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ namespace blackbox
|
|||||||
utilities::thread::suspend_other_threads();
|
utilities::thread::suspend_other_threads();
|
||||||
show_mouse_cursor();
|
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);
|
TerminateProcess(GetCurrentProcess(), exception_data.code);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -84,7 +84,7 @@ namespace blackbox
|
|||||||
++recovery_data.recovery_counts;
|
++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"
|
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"
|
"Make sure to update your graphics card drivers and install operating system updates!\n"
|
||||||
"Closing or restarting Steam might also help.",
|
"Closing or restarting Steam might also help.",
|
||||||
exception_data.code, exception_data.address,
|
exception_data.code, exception_data.address,
|
||||||
@ -262,7 +262,7 @@ namespace blackbox
|
|||||||
utilities::compression::zip::archive zip_file{};
|
utilities::compression::zip::archive zip_file{};
|
||||||
zip_file.add("crash.dmp", exception::create_minidump(exceptioninfo));
|
zip_file.add("crash.dmp", exception::create_minidump(exceptioninfo));
|
||||||
zip_file.add("info.txt", generate_crash_info(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)
|
bool is_harmless_error(const LPEXCEPTION_POINTERS exceptioninfo)
|
||||||
|
@ -725,15 +725,15 @@ namespace gsc_funcs
|
|||||||
return;
|
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)
|
if (inst)
|
||||||
{
|
{
|
||||||
std::filesystem::create_directories("project-bo4/saved/client");
|
std::filesystem::create_directories("t8-mod/saved/client");
|
||||||
}
|
}
|
||||||
else
|
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];
|
game::ScrVarValue_t* val = &game::scrVmPub[inst].top[-1];
|
||||||
@ -933,7 +933,7 @@ namespace gsc_funcs
|
|||||||
return;
|
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{};
|
std::string file_content{};
|
||||||
|
|
||||||
|
@ -236,14 +236,14 @@ namespace hashes
|
|||||||
}
|
}
|
||||||
|
|
||||||
// load default files
|
// 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))
|
if (std::filesystem::exists(default_file_name_str))
|
||||||
{
|
{
|
||||||
load_file(default_file_name_str, HFF_STRING);
|
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))
|
if (std::filesystem::exists(default_file_name_common))
|
||||||
{
|
{
|
||||||
|
@ -38,7 +38,7 @@ namespace logger
|
|||||||
#endif // OUTPUT_DEBUG_API
|
#endif // OUTPUT_DEBUG_API
|
||||||
|
|
||||||
std::ofstream fs;
|
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);
|
time_t now = time(0);
|
||||||
std::tm* t = std::localtime(&now);
|
std::tm* t = std::localtime(&now);
|
||||||
@ -64,11 +64,11 @@ namespace logger
|
|||||||
void pre_start() override
|
void pre_start() override
|
||||||
{
|
{
|
||||||
#ifdef REMOVE_PREVIOUS_LOG
|
#ifdef REMOVE_PREVIOUS_LOG
|
||||||
utilities::io::remove_file("project-bo4.log");
|
utilities::io::remove_file("t8-mod.log");
|
||||||
#endif // REMOVE_PREVIOUS_LOG
|
#endif // REMOVE_PREVIOUS_LOG
|
||||||
|
|
||||||
write(LOG_TYPE_INFO, "=======================================================================================================");
|
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, "=======================================================================================================");
|
write(LOG_TYPE_INFO, "=======================================================================================================");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ namespace mods {
|
|||||||
constexpr const char* gsic_magic = "GSIC";
|
constexpr const char* gsic_magic = "GSIC";
|
||||||
|
|
||||||
constexpr const char* mod_metadata_file = "metadata.json";
|
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 {
|
namespace {
|
||||||
struct raw_file
|
struct raw_file
|
||||||
|
@ -83,7 +83,7 @@ namespace splash
|
|||||||
|
|
||||||
if (image)
|
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,
|
WS_POPUP | WS_SYSMENU,
|
||||||
(x_pixels - 320) / 2, (y_pixels - 100) / 2, 320, 100, nullptr,
|
(x_pixels - 320) / 2, (y_pixels - 100) / 2, 320, 100, nullptr,
|
||||||
nullptr,
|
nullptr,
|
||||||
|
@ -613,7 +613,7 @@ namespace demonware
|
|||||||
|
|
||||||
bdProtobufHelper header_2nd;
|
bdProtobufHelper header_2nd;
|
||||||
header_2nd.writeString(1, "Authorization", 16);
|
header_2nd.writeString(1, "Authorization", 16);
|
||||||
header_2nd.writeString(2, "Bearer project-bo4", 2048);
|
header_2nd.writeString(2, "Bearer t8-mod", 2048);
|
||||||
|
|
||||||
|
|
||||||
bdProtobufHelper buffer;
|
bdProtobufHelper buffer;
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
namespace utilities::json_config
|
namespace utilities::json_config
|
||||||
{
|
{
|
||||||
rapidjson::Document json_doc{};
|
rapidjson::Document json_doc{};
|
||||||
std::string file_name = "project-bo4.json";
|
std::string file_name = "t8-mod.json";
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user