This commit is contained in:
FutureRave 2022-01-27 14:32:47 +00:00
parent 395cbde7fe
commit dae46fa432
No known key found for this signature in database
GPG Key ID: E883E2BC9657D955
3 changed files with 22 additions and 22 deletions

View File

@ -34,22 +34,22 @@
## Command line arguments ## Command line arguments
| Argument | Description | | Argument | Description |
|:----------------------------|:-----------------------------------------------| |:------------------------|:-----------------------------------------------|
| `-tests` | Perform unit tests. | | `-tests` | Perform unit tests. |
| `-entries` | Print ff info after being loaded. | | `-entries` | Print to the console a list of every asset as they are loaded from zonefiles. |
| `-stdout` | Redirect stdout to the console. | | `-stdout` | Redirect all logging output to the terminal iw4x is started from, or if there is none, creates a new terminal window to write log information in. |
| `-console` | Create game's external console. | | `-console` | Allow the game to display its own separate interactive console window. |
| `-dedicated` | Enabled dedicated server. | | `-dedicated` | Starts the game as a headless dedicated server. |
| `-scriptablehttp` | Enable HTTP gsc functions. | | `-scriptablehttp` | Enable HTTP related gsc functions. |
| `-bigdumps` | Include all code sections from loaded modules. | | `-bigdumps` | Include all code sections from loaded modules in the dump. |
| `-bigminidumps` | Include all code sections from loaded modules. | | `-bigminidumps` | Include all code sections from loaded modules in the dump. |
| `-reallybigminidumps` | Include data sections from all loaded modules. | | `-reallybigminidumps` | Include data sections from all loaded modules in the dump. |
| `-dump` | Write info of loaded assets to the raw folder. | | `-dump` | Write info of loaded assets to the raw folder as they are being loaded. |
| `-monitor` | Indicated whenever the game console is active. | | `-monitor` | This flag is for internal use and it is used to indicate if an external console is present. |
| `-nointro` | Skip game's cinematic intro. | | `-nointro` | Skip game's cinematic intro. |
| `-version` | Print IW4x build info | | `-version` | Print IW4x build info on startup. |
| `-zonebuilder` | Enable zone builder. | | `-zonebuilder` | Start the interactive zonebuilder tool console instead of starting the game. |
| `-nosteam` | Same effect as enabling cl_anonymous dvar. | | `-nosteam` | Do not update Steam about the game's current status just like an invisible mode. |
## Disclaimer ## Disclaimer

View File

@ -111,8 +111,8 @@ namespace Components
Friends::SortList(); Friends::SortList();
int notify = Dvar::Var("cl_notifyFriendState").get<int>(); const auto notify = Dvar::Var("cl_notifyFriendState").get<bool>();
if (gotOnline && (notify == -1 || (notify == 1 && !Game::CL_IsCgameInitialized())) && !Dvar::Var("ui_streamFriendly").get<bool>()) if (gotOnline && (!notify || (notify && !Game::CL_IsCgameInitialized())) && !Dvar::Var("ui_streamFriendly").get<bool>())
{ {
Game::Material* material = Friends::CreateAvatar(user); Game::Material* material = Friends::CreateAvatar(user);
Toast::Show(material, entry->name, "is playing IW4x", 3000, [material]() Toast::Show(material, entry->name, "is playing IW4x", 3000, [material]()
@ -578,8 +578,8 @@ namespace Components
if (Dedicated::IsEnabled() || ZoneBuilder::IsEnabled() || Monitor::IsEnabled()) return; if (Dedicated::IsEnabled() || ZoneBuilder::IsEnabled() || Monitor::IsEnabled()) return;
Dvar::Register<bool>("cl_anonymous", false, Game::DVAR_FLAG_SAVED, ""); Dvar::Register<bool>("cl_anonymous", false, Game::DVAR_FLAG_SAVED, "Enable invisible mode for Steam");
Dvar::Register<int>("cl_notifyFriendState", 1, -1, 1, Game::DVAR_FLAG_SAVED, ""); Dvar::Register<bool>("cl_notifyFriendState", true, Game::DVAR_FLAG_SAVED, "Update friends about current game status");
Command::Add("addFriend", [](Command::Params* params) Command::Add("addFriend", [](Command::Params* params)
{ {

View File

@ -241,7 +241,7 @@ namespace Components
{ {
if (Flags::HasFlag("dump")) if (Flags::HasFlag("dump"))
{ {
Utils::IO::WriteFile(Utils::String::VA("raw/%s.ents", name.data()), asset.mapEnts->entityString); Utils::IO::WriteFile(Utils::String::VA("raw/%s.ents", name.data()), asset.mapEnts->entityString, true);
} }
FileSystem::File ents(name + ".ents"); FileSystem::File ents(name + ".ents");