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

# XGame

> XGame

# XGame

XGame APIs.

## Functions

| Function                                                                         | Description                                                                                                           |
| -------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| [XGameGetXboxTitleId](/reference/system/xgame/functions/xgamegetxboxtitleid)     | Returns the TitleID for the game.                                                                                     |
| [XLaunchNewGame](/reference/system/xgame/functions/xlaunchnewgame)               | Ends the current game, freeing any allocated resources, and launches a new game.                                      |
| [XLaunchRestartOnCrash](/reference/system/xgame/functions/xlaunchrestartoncrash) | Automatically restarts the game when the currently running instance of the game abnormally terminates due to a crash. |

## Conceptual documentation

* [Time-sensitive threads](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)
* [Using C# wrappers for GDK APIs in your Unity project](/build/gdk-and-engines/unity/unity-api-wrappers)
* [Implement cloud saves in your game](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/pc-dev/tutorials/pc-e2e-guide/e2e-services/e2e-cloud-saves)

## See also

[System API reference](/reference/system/gc-reference-system-toc)


## Related topics

- [XGameRuntimeFeature](/reference/system/xgameruntimefeature/enums/xgameruntimefeature.md)
- [XGameUI](/reference/system/xgameui/xgameui_members.md)
- [XGameActivation](/reference/system/xgameactivation/xgameactivation_members.md)
- [XGameSave](/reference/system/xgamesave/xgamesave_members.md)
- [XGameStreaming](/reference/system/xgamestreaming/xgamestreaming_members.md)
