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

# 게임의 기본 사용자 변경

> 게임의 기본 사용자 변경

XR-112는 활성(기본) 사용자를 변경할 수 있도록 게임이 계정 선택기에 대한 진입점을
제공하도록 요구합니다. 게임이 간소화된 사용자 모델을 사용하고 실행 전에 필수 기본 사용자가
있음을 보장한 경우, 게임은 이 진입점을 제공할 필요가 없습니다.

모범 사례로, 간소화된 사용자 모델을 사용하는 게임은 여전히 게임의 기본 사용자를 변경할 수 있는
옵션을 제공하고자 할 수 있습니다. 이를 위해서는 약간의
코드가 필요합니다. 상위 수준에서, 새 사용자가 로그인할 수 있도록 허용한 다음 그 사용자로 게임을 다시 실행해야 합니다.
다음 단계로 이를 수행할 수 있습니다.

1. [XUserAddAsync](/reference/system/xuser/functions/xuseraddasync)를 호출하고 XUserHandle을 얻습니다.
2. 현재 게임의 EXE를 지정하고 이전에 결정된 XUserHandle을 사용하여
   [XLaunchNewGame](/reference/system/xgame/functions/xlaunchnewgame)을 호출합니다.

이러한 방식으로 게임이 다시 시작된 후 새 사용자가 해당 게임의 기본 사용자가 됩니다.
그 사용자가 로그아웃하면 게임은 일시 중단됩니다.
게임은 기본 사용자에 대한 로그아웃도 받지 않습니다.

## 참고 항목

[XUserAddAsync](/reference/system/xuser/functions/xuseraddasync)
[XLaunchNewGame](/reference/system/xgame/functions/xlaunchnewgame)


## Related topics

- [사용자](/ko/build/core-features/common/user/user-toc.md)
- [GDK의 사용자 ID 및 XUser API](/ko/build/core-features/common/user/index.md)
- [게임의 기본 사용자 설정](/ko/build/core-features/common/user/users-establishing-default-user.md)
- [터치 컨트롤을 구축하기 위한 디자이너 가이드](/ko/build/core-features/common/game-streaming/building-touch-layouts/game-streaming-tak-designers-guide.md)
- [게임의 제품 공유 모델](/ko/publishing/xstore-commerce/xstore-product-sharing.md)
