> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XGameRuntimeOptions

> XGameRuntimeOptions

# XGameRuntimeOptions

Information about the XGameRuntimeOptions structure.

## Syntax

```cpp theme={null}
struct XGameRuntimeOptions 
{ 
    XGameRuntimeGameConfigSource gameConfigSource; 
    const char* gameConfig; 
}  
```

### Members

*gameConfigSource*\
Type: XGameRuntimeGameConfigSource

*gameConfig*\
Type: const char\*

## Remarks

The gameConfig field allows an app to pass a game config to the runtime. The gameConfig can be specified in different ways, as dictated by the gameConfigSource field. It may be one of:

| Game Config Type | Interpretation                                                                                                                 |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| Default          | gameConfig must be null here. The default game config for the process will be used.                                            |
| Inline           | gameConfig is a UTF-8 string containing the entire game config contents.                                                       |
| File             | gameConfig is a path to a game config file. This can be an absolute path or a relative path relative to the current directory. |

## Requirements

**Header:** XGameRuntimeInit.h

**Library:** xgameruntime.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[XGameRuntimeInitializeWithOptions](/reference/system/xgameruntimeinit/functions/xgameruntimeinitializewithoptions)\
[XGameRuntimeConfigSource](/reference/system/xgameruntimeinit/Enumerations/xgameruntimegameconfigsource)\
[XGameRuntimeInit](/reference/system/xgameruntimeinit/xgameruntimeinit_members)\
[Developing new titles using Gaming Runtime](/build/gdk-and-engines/guides/gdk-project-templates)


## Related topics

- [XGameRuntimeInitializeWithOptions](/reference/system/xgameruntimeinit/functions/xgameruntimeinitializewithoptions.md)
- [XGameRuntimeGameConfigSource](/reference/system/xgameruntimeinit/Enumerations/xgameruntimegameconfigsource.md)
- [XGameRuntimeInit](/reference/system/xgameruntimeinit/xgameruntimeinit_members.md)
- [XGameRuntimeInitialize](/reference/system/xgameruntimeinit/functions/xgameruntimeinitialize.md)
- [XErrorOptions](/reference/system/xerror/enums/xerroroptions.md)
