Remove iw4x branding

This commit is contained in:
momo5502 2016-02-23 15:52:31 +01:00
parent 777beb278e
commit a3d8ee8094
6 changed files with 12 additions and 10 deletions

View File

@ -118,8 +118,8 @@ namespace Components
return false; return false;
} }
// Write URL:iw4x Protocol // Write URL:IW4x Protocol
data = "URL:iw4x Protocol"; data = "URL:IW4x Protocol";
openRes = RegSetValueEx(hKey, "URL Protocol", 0, REG_SZ, reinterpret_cast<const BYTE*>(data.data()), data.size() + 1); openRes = RegSetValueEx(hKey, "URL Protocol", 0, REG_SZ, reinterpret_cast<const BYTE*>(data.data()), data.size() + 1);
if (openRes != ERROR_SUCCESS) if (openRes != ERROR_SUCCESS)

View File

@ -1,6 +1,6 @@
#include "STDInclude.hpp" #include "STDInclude.hpp"
#define NEWS_MOTD_DEFUALT "Welcome to ReactIW4x Multiplayer!" #define NEWS_MOTD_DEFUALT "Welcome to IW4x Multiplayer!"
namespace Components namespace Components
{ {

View File

@ -93,19 +93,19 @@ namespace Components
Utils::Hook::Set<char*>(0x6431D1, "data2"); Utils::Hook::Set<char*>(0x6431D1, "data2");
// UI version string // UI version string
Utils::Hook::Set<char*>(0x43F73B, "iw4x IW4x: r" REVISION_STR "-" MILESTONE); Utils::Hook::Set<char*>(0x43F73B, "IW4x: r" REVISION_STR "-" MILESTONE);
// console version string // console version string
Utils::Hook::Set<char*>(0x4B12BB, "iw4x IW4x r" REVISION_STR "-" MILESTONE " (built " __DATE__ " " __TIME__ ")"); Utils::Hook::Set<char*>(0x4B12BB, "IW4x r" REVISION_STR "-" MILESTONE " (built " __DATE__ " " __TIME__ ")");
// version string // version string
Utils::Hook::Set<char*>(0x60BD56, "iw4x IW4x (r" REVISION_STR ")"); Utils::Hook::Set<char*>(0x60BD56, "IW4x (r" REVISION_STR ")");
// console title // console title
Utils::Hook::Set<char*>(0x4289E8, "iw4x IW4x (r" REVISION_STR "): Console"); Utils::Hook::Set<char*>(0x4289E8, "IW4x (r" REVISION_STR "): Console");
// window title // window title
Utils::Hook::Set<char*>(0x5076A0, "iw4x IW4x: Multiplayer"); Utils::Hook::Set<char*>(0x5076A0, "IW4x: Multiplayer");
// sv_hostname // sv_hostname
Utils::Hook::Set<char*>(0x4D378B, "IW4Host"); Utils::Hook::Set<char*>(0x4D378B, "IW4Host");

View File

@ -630,9 +630,11 @@ namespace Components
}); });
// Set default masterServerName + port and save it // Set default masterServerName + port and save it
#ifdef USE_LEGACY_SERVER_LIST
Utils::Hook::Set<char*>(0x60AD92, "localhost"); Utils::Hook::Set<char*>(0x60AD92, "localhost");
Utils::Hook::Set<BYTE>(0x60AD90, Game::dvar_flag::DVAR_FLAG_SAVED); // masterServerName Utils::Hook::Set<BYTE>(0x60AD90, Game::dvar_flag::DVAR_FLAG_SAVED); // masterServerName
Utils::Hook::Set<BYTE>(0x60ADC6, Game::dvar_flag::DVAR_FLAG_SAVED); // masterPort Utils::Hook::Set<BYTE>(0x60ADC6, Game::dvar_flag::DVAR_FLAG_SAVED); // masterPort
#endif
// Add server list feeder // Add server list feeder
UIFeeder::Add(2.0f, ServerList::GetServerCount, ServerList::GetServerText, ServerList::SelectServer); UIFeeder::Add(2.0f, ServerList::GetServerCount, ServerList::GetServerText, ServerList::SelectServer);

View File

@ -13,7 +13,7 @@ namespace Components
{ {
if (Flags::HasFlag("version")) if (Flags::HasFlag("version"))
{ {
printf("iw4x IW4x r" REVISION_STR "-" MILESTONE " (built " __DATE__ " " __TIME__ ")\n"); printf("IW4x r" REVISION_STR "-" MILESTONE " (built " __DATE__ " " __TIME__ ")\n");
ExitProcess(0); ExitProcess(0);
} }

View File

@ -319,7 +319,7 @@ namespace Components
// TODO: Check if a RawFile with the same name has already been added, to prevent conflicts. // TODO: Check if a RawFile with the same name has already been added, to prevent conflicts.
void ZoneBuilder::Zone::AddBranding() void ZoneBuilder::Zone::AddBranding()
{ {
char* data = "FastFile built using iw4x IW4 ZoneTool!"; char* data = "FastFile built using IW4x ZoneTool!";
ZoneBuilder::Zone::Branding = { ZoneBuilder::Zone::ZoneName.data(), (int)strlen(data), 0, data }; ZoneBuilder::Zone::Branding = { ZoneBuilder::Zone::ZoneName.data(), (int)strlen(data), 0, data };
Game::XAssetHeader header = { &Branding }; Game::XAssetHeader header = { &Branding };