# Launch Arguments

### **For recent versions (v2.3.2 or newer)**

In Visual Studio, **GameLauncher** Project.

1. Locate and open *Models/Patcher/LauncherConfig.cs*
2. Set your parameters in the variable\
   **GlobalCustomLaunchArguments**

That's all.

### **Older versions (v2.3.1 or less)**

On older GameLauncher Editions, please add this line to the *Models/Patcher/LauncherConfig.cs*

```csharp
// Global Custom launch arguments for the game(s)
public static string GlobalCustomLaunchArguments = ""; // e.g. "-novid -fullscreen", "-user legend -password 1234"
```

Then, in *Models/Patcher/PatcherFunctions.cs,* **locate PlayButtonClicked()** function and add this line after `string launchArgs declaration`

```csharp
launchArgs += LauncherConfig.GlobalCustomLaunchArguments;
```

<figure><img src="/files/FxbsSIZLvKs9uRVq7dok" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gamelauncher.gitbook.io/documentation/utilities/launch-arguments.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
