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

# 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](https://docs.xbox.com/reference/system/xgameruntimeinit/functions/xgameruntimeinitializewithoptions.md)\
[XGameRuntimeConfigSource](https://docs.xbox.com/reference/system/xgameruntimeinit/Enumerations/xgameruntimegameconfigsource.md)\
[XGameRuntimeInit](https://docs.xbox.com/reference/system/xgameruntimeinit/xgameruntimeinit_members.md)\
[Developing new titles using Gaming Runtime](https://docs.xbox.com/build/gdk-and-engines/guides/gdk-project-templates.md)


## Related topics

- [XGameRuntimeInitializeWithOptions](https://docs.xbox.com/reference/system/xgameruntimeinit/functions/xgameruntimeinitializewithoptions.md)
- [XGameRuntimeGameConfigSource](https://docs.xbox.com/reference/system/xgameruntimeinit/Enumerations/xgameruntimegameconfigsource.md)
- [XGameRuntimeInitialize](https://docs.xbox.com/reference/system/xgameruntimeinit/functions/xgameruntimeinitialize.md)
- [XGameRuntimeInit (API contents)](https://docs.xbox.com/reference/system/xgameruntimeinit/xgameruntimeinit_members.md)
- [XErrorOptions](https://docs.xbox.com/reference/system/xerror/enums/xerroroptions.md)
