diff --git a/README.md b/README.md index a2102e1..95e7cc4 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ More information about features of the IW3SP-MOD you can see in Wiki Page: [link ~~**NOTE**: You must legally own [Steam version](https://store.steampowered.com/app/7940/Call_of_Duty_4_Modern_Warfare_2007/) of Call of Duty® 4: Modern Warfare® (2007) to run this mod.~~ Cracked/Pirated/CDs versions of the game **ARE** supported. 1. Download the latest [release](https://git.rimmyscorner.com/Rim/iw3sp-mod/releases/latest) 2. Place the .zip contents into your cod4 root folder -3. Start the **iw3sp_mod.exe** +3. Start the **iw3sp-mod.exe** # How to compile from source? (For advanced users) 1. Clone the this repository. I recommend use the [git-scm](https://git-scm.com/downloads). diff --git a/premake5.lua b/premake5.lua index 3c0e591..7d403e9 100644 --- a/premake5.lua +++ b/premake5.lua @@ -326,5 +326,7 @@ workspace "iw3sp-mod" dependencies.imports() + removefiles {"src/Components/Modules/Updater.cpp", "src/Components/Modules/Updater.hpp", "src/Utils/HTTP.cpp", "src/Utils/HTTP.hpp", "src/Components/Modules/Changelog.cpp", "src/Components/Modules/Changelog.hpp"} + group "Dependencies" dependencies.projects() \ No newline at end of file diff --git a/src/Components/Loader.cpp b/src/Components/Loader.cpp index be4e956..c34ca05 100644 --- a/src/Components/Loader.cpp +++ b/src/Components/Loader.cpp @@ -57,13 +57,13 @@ namespace Components Register(new Toast()); Register(new Achievements()); Register(new Events()); - Register(new Updater()); + // Register(new Updater()); Register(new Window()); Register(new Sound()); Register(new Gamepad()); Register(new GUI()); Register(new Markdown()); - Register(new Changelog()); + // Register(new Changelog()); Register(new Paintball()); Register(new PlayerStats()); diff --git a/src/Components/Loader.hpp b/src/Components/Loader.hpp index 22e8918..1b02bdf 100644 --- a/src/Components/Loader.hpp +++ b/src/Components/Loader.hpp @@ -75,7 +75,7 @@ namespace Components #include "Modules/Achievements.hpp" #include "Modules/Events.hpp" #include "Modules/Exception.hpp" -#include "Modules/Updater.hpp" +// #include "Modules/Updater.hpp" #include "Modules/Window.hpp" #include "Modules/Sound.hpp" #include "Modules/Gamepad.hpp" diff --git a/src/Components/Modules/CommonPatch.cpp b/src/Components/Modules/CommonPatch.cpp index cf94d2c..8057973 100644 --- a/src/Components/Modules/CommonPatch.cpp +++ b/src/Components/Modules/CommonPatch.cpp @@ -600,7 +600,7 @@ namespace Components // Misc Game::dvar_s* ui_skipMainLockout = Dvars::Register::Dvar_RegisterBool("ui_skipMainLockout", "", false, Game::none); Game::dvar_s* profile_unlock_all = Dvars::Register::Dvar_RegisterBool("profile_unlock_all", "", false, Game::saved); - Game::dvar_s* cg_drawBrandingInfo = Dvars::Register::Dvar_RegisterBool("cg_drawBrandingInfo", "Show/Hide the branding text on the top-left screen", true, Game::saved); + Game::dvar_s* cg_drawBrandingInfo = Dvars::Register::Dvar_RegisterBool("cg_drawBrandingInfo", "Show/Hide the branding text on the top-left screen", false, Game::saved); Game::dvar_s* cg_drawDamageFeedbackOption = Dvars::Register::Dvar_RegisterBool("cg_drawDamageFeedbackOption", "Display a marker when hitting enemies", false, Game::saved); Game::dvar_s* snd_hitsoundDisabled = Dvars::Register::Dvar_RegisterBool("snd_hitsoundDisabled", "Disable the hit indicator sound", true, Game::saved); Game::dvar_s* sv_allowCheats = Dvars::Register::Dvar_RegisterBool("sv_allowCheats", "Enable/Disable the game cheats", false, Game::saved); @@ -621,7 +621,7 @@ namespace Components Utils::Hook(0x4B83CF, SV_CheatsStub, HOOK_CALL).install()->quick(); Utils::Hook::Nop(0x5899E8, 5); - Utils::Hook::Set(0x445667, "iw3sp_mod.exe"); //-startSingleplayer + Utils::Hook::Set(0x445667, "iw3sp-mod.exe"); //-startSingleplayer // console logo if (Utils::IO::FileExists("iw3sp_data/assets/console_logo.bmp")) diff --git a/src/Components/Modules/GUI/GUI.cpp b/src/Components/Modules/GUI/GUI.cpp index a73410f..e2d6145 100644 --- a/src/Components/Modules/GUI/GUI.cpp +++ b/src/Components/Modules/GUI/GUI.cpp @@ -180,7 +180,7 @@ namespace Components AnyOpenMenu(); // ------------ - Changelog::CreateChangeLog(ggui.menus[Game::GUI_MENUS::CHANGELOG]); + // Changelog::CreateChangeLog(ggui.menus[Game::GUI_MENUS::CHANGELOG]); // ------------ EndFrame(); @@ -266,6 +266,7 @@ namespace Components GUI::GUI() { + /* Command::Add("check_gui_state_menu", [](Command::Params*) { if (Game::gui.menus[Game::GUI_MENUS::CHANGELOG].menustate) @@ -273,6 +274,7 @@ namespace Components else Game::Com_Printf(0, "menu disabled\n"); }); + */ Scheduler::Loop([] { }, Scheduler::Pipeline::MAIN); diff --git a/src/Components/Modules/Updater.cpp b/src/Components/Modules/Updater.cpp index 3ae2aa7..7dacac0 100644 --- a/src/Components/Modules/Updater.cpp +++ b/src/Components/Modules/Updater.cpp @@ -17,7 +17,7 @@ namespace Components std::string GetExeName() { - static const auto name = "iw3sp_mod.exe"; + static const auto name = "iw3sp-mod.exe"; return name; } @@ -287,7 +287,7 @@ namespace Components return; } - // Ñheck the result of our existence request json list or when our request cannot reach the server, then drop error. + // Check the result of our existence request json list or when our request cannot reach the server, then drop error. if (!files_data.has_value()) { Game::Com_Printf(0, "[Updater]: ^1json file is empty or HTTP request can't be reach to the server. Abort The Update.\n");