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
| Argument | Description |
|:----------------------------|:-----------------------------------------------|
|:------------------------|:-----------------------------------------------|
| `-tests` | Perform unit tests. |
| `-entries` | Print ff info after being loaded. |
| `-stdout` | Redirect stdout to the console. |
| `-console` | Create game's external console. |
| `-dedicated` | Enabled dedicated server. |
| `-scriptablehttp` | Enable HTTP gsc functions. |
| `-bigdumps` | Include all code sections from loaded modules. |
| `-bigminidumps` | Include all code sections from loaded modules. |
| `-reallybigminidumps` | Include data sections from all loaded modules. |
| `-dump` | Write info of loaded assets to the raw folder. |
| `-monitor` | Indicated whenever the game console is active. |
| `-entries` | Print to the console a list of every asset as they are loaded from zonefiles. |
| `-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` | Allow the game to display its own separate interactive console window. |
| `-dedicated` | Starts the game as a headless dedicated server. |
| `-scriptablehttp` | Enable HTTP related gsc functions. |
| `-bigdumps` | Include all code sections from loaded modules in the dump. |
| `-bigminidumps` | Include all code sections from loaded modules in the dump. |
| `-reallybigminidumps` | Include data sections from all loaded modules in the dump. |
| `-dump` | Write info of loaded assets to the raw folder as they are being loaded. |
| `-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. |
| `-version` | Print IW4x build info |
| `-zonebuilder` | Enable zone builder. |
| `-nosteam` | Same effect as enabling cl_anonymous dvar. |
| `-version` | Print IW4x build info on startup. |
| `-zonebuilder` | Start the interactive zonebuilder tool console instead of starting the game. |
| `-nosteam` | Do not update Steam about the game's current status just like an invisible mode. |
## Disclaimer

View File

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

View File

@ -241,7 +241,7 @@ namespace Components
{
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");