> ## 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.

# XGameRuntimeGameConfigSource

> XGameRuntimeGameConfigSource

# XGameRuntimeGameConfigSource

此枚举定义了在初始化 XGameConfigRuntime 时传递游戏配置的方式。

## Syntax

```cpp theme={null}
enum class XGameRuntimeGameConfigSource : uint32_t 
{ 
    Default, 
    Inline, 
    File 
}  
```

### Constants

| Constant | Description |
| - | - |
| Default | 将使用进程的默认游戏配置。 |
| Inline | 将使用包含整个游戏配置内容的 UTF-8 字符串。 |
| File | 将使用游戏配置文件的路径。这可以是绝对路径，也可以是相对于当前目录的相对路径。 |

## Requirements

**头文件：** XGameRuntimeInit.h

**库：** xgameruntime.lib

**受支持的平台：** Windows、XBOX One 系列主机和 XBOX Series 主机

## See also

[XGameRuntimeInitializeWithOptions](https://docs.xbox.com/zh-CN/reference/system/xgameruntimeinit/functions/xgameruntimeinitializewithoptions.md)\
[XGameRuntimeOptions](https://docs.xbox.com/zh-CN/reference/system/xgameruntimeinit/Structures/xgameruntimeoptions.md)\
[XGameRuntimeInit](https://docs.xbox.com/zh-CN/reference/system/xgameruntimeinit/xgameruntimeinit_members.md)\
[使用 Gaming Runtime 开发新标题](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/pc-dev/overviews/gr-developing-new-titles-on-gamecore)


## Related topics

- [XGameRuntimeOptions](https://docs.xbox.com/zh-CN/reference/system/xgameruntimeinit/Structures/xgameruntimeoptions.md)
- [MicrosoftGame.config 概述](https://docs.xbox.com/zh-CN/build/core-features/common/game-config/MicrosoftGameConfig-Overview.md)
- [XGameRuntimeInitialize](https://docs.xbox.com/zh-CN/reference/system/xgameruntimeinit/functions/xgameruntimeinitialize.md)
- [XGameRuntimeUninitialize](https://docs.xbox.com/zh-CN/reference/system/xgameruntimeinit/functions/xgameruntimeuninitialize.md)
- [使用 Unreal Engine 的新 GDK 插件构建 XBOX 游戏](https://docs.xbox.com/zh-CN/build/gdk-and-engines/unreal/unreal-xbox-pc.md)
