문제

Zune HD의 새로운 프로젝트 템플릿에서 작성한 응용 프로그램을 보유하고 구축하고 배포했습니다. 문제는 응용 프로그램이 종료 될 때마다 Zune이 재부팅됩니다. 이것은 PC에서 원격으로 디버깅하거나 장치에서 바로 실행할 때 발생합니다. 디버그 모드와 릴리스에서 발생합니다. 기본 템플릿 코드를 포함했지만 매우 일반적입니다. 누구든지 아이디어가 있습니까?

public class DrawGame : Microsoft.Xna.Framework.Game
{
    private GraphicsDeviceManager m_graphics;
    private SpriteBatch m_spriteBatch;

    public DrawGame()
    {
        m_graphics = new GraphicsDeviceManager(this);
        Content.RootDirectory = "Content";

        TargetElapsedTime = TimeSpan.FromSeconds(1 / 30.0);
    }

    protected override void Initialize()
    {
        base.Initialize();
    }

    protected override void LoadContent()
    {
        m_spriteBatch = new SpriteBatch(GraphicsDevice);
    }

    protected override void UnloadContent()
    { }

    protected override void Update(GameTime gameTime)
    {
        if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed)
        {
            this.Exit();
        }

        base.Update(gameTime);
    }

    protected override void Draw(GameTime gameTime)
    {
        GraphicsDevice.Clear(Color.CornflowerBlue);

        m_spriteBatch.Begin();
        m_spriteBatch.End();

        base.Draw(gameTime);
    }
}
도움이 되었습니까?

해결책

이것은 실제로 디자인에 의한 것입니다.

보다 MSDN 그리고 이 블로그

비활성화 된 기능은 DRM 음악의 재생 및 다른 Zunes (게임 정보 외부)와 콘텐츠를 공유 할 수있는 기능입니다. 우리 가이 작업을 수행하는 이유는 장치에 게임을 작성하는 동안 Zune을 안전하게 유지하고 싶기 때문입니다. 이러한 기능을 다시 활성화하는 유일한 방법은 장치를 다시 시작하는 것입니다.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top