chore: remove auto-updater & changelog, rename binary to match convention
Some checks failed
Build / Build binary (Debug) (push) Has been cancelled
Build / Build binary (Release) (push) Has been cancelled

This commit is contained in:
Rim 2025-05-06 09:38:41 -04:00
parent 27743ddc86
commit 767e822ca6
7 changed files with 13 additions and 9 deletions

View File

@ -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).

View File

@ -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()

View File

@ -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());

View File

@ -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"

View File

@ -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<const char*>(0x445667, "iw3sp_mod.exe"); //-startSingleplayer
Utils::Hook::Set<const char*>(0x445667, "iw3sp-mod.exe"); //-startSingleplayer
// console logo
if (Utils::IO::FileExists("iw3sp_data/assets/console_logo.bmp"))

View File

@ -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);

View File

@ -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");