[News] Removed Code to delete updater.exe
- updated Cache ID as it is iw4x
This commit is contained in:
parent
b0f13911ca
commit
4143cbf0d8
@ -77,7 +77,7 @@ namespace Components
|
|||||||
|
|
||||||
if (!caches.empty())
|
if (!caches.empty())
|
||||||
{
|
{
|
||||||
std::string str = "<Cache ID=\"game\" Version=\"";
|
std::string str = "<Cache ID=\"iw4x\" Version=\"";
|
||||||
auto pos = caches.find(str);
|
auto pos = caches.find(str);
|
||||||
|
|
||||||
if (pos != std::string::npos)
|
if (pos != std::string::npos)
|
||||||
@ -117,12 +117,6 @@ namespace Components
|
|||||||
Utils::Hook::Nop(0x6388BB, 2); // skip the "if (item->text[0] == '@')" localize check
|
Utils::Hook::Nop(0x6388BB, 2); // skip the "if (item->text[0] == '@')" localize check
|
||||||
Utils::Hook(0x6388C1, News::GetNewsText, HOOK_CALL).install()->quick();
|
Utils::Hook(0x6388C1, News::GetNewsText, HOOK_CALL).install()->quick();
|
||||||
|
|
||||||
// TODO: Probably remove that, if the updater is part of the repo?
|
|
||||||
if (Utils::IO::FileExists("updater.exe"))
|
|
||||||
{
|
|
||||||
remove("updater.exe");
|
|
||||||
}
|
|
||||||
|
|
||||||
Command::Add("checkforupdate", [] (Command::Params)
|
Command::Add("checkforupdate", [] (Command::Params)
|
||||||
{
|
{
|
||||||
News::CheckForUpdate();
|
News::CheckForUpdate();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user