public void MenuTrophies(MenuStack menuStack)
    {
        menuTrophies.Update();
        bool trophiesAreAvailable = Trophies.TrophiesAreAvailable;

        if (menuTrophies.AddItem("Game Info", trophiesAreAvailable))
        {
            DumpGameInfo();
        }
        if (menuTrophies.AddItem("Group Info", trophiesAreAvailable && !Trophies.RequestGroupInfoIsBusy()))
        {
            ErrorHandler(Trophies.RequestGroupInfo());
        }
        if (menuTrophies.AddItem("Trophy Info", trophiesAreAvailable && !Trophies.RequestTrophyInfoIsBusy()))
        {
            ErrorHandler(Trophies.RequestTrophyInfo());
        }
        if (menuTrophies.AddItem("Trophy Progress", trophiesAreAvailable && !Trophies.RequestTrophyProgressIsBusy()))
        {
            ErrorHandler(Trophies.RequestTrophyProgress());
        }
        if (menuTrophies.AddItem("Award Trophy", trophiesAreAvailable) && ErrorHandler(Trophies.AwardTrophy(nextTrophyIndex)) == ErrorCode.NP_OK)
        {
            nextTrophyIndex++;
            if (nextTrophyIndex == gameInfo.numTrophies)
            {
                nextTrophyIndex = 1;
            }
        }
        if (menuTrophies.AddItem("Award All Trophies", trophiesAreAvailable))
        {
            for (int i = 1; i < gameInfo.numTrophies; i++)
            {
                ErrorHandler(Trophies.AwardTrophy(i));
            }
        }
        if (menuTrophies.AddBackIndex("Back"))
        {
            menuStack.PopMenu();
        }
    }
    public void MenuTrophies(MenuStack menuStack)
    {
        this.menuTrophies.Update();
        bool trophiesAreAvailable = Trophies.get_TrophiesAreAvailable();

        if (this.menuTrophies.AddItem("Game Info", trophiesAreAvailable))
        {
            this.DumpGameInfo();
        }
        if (this.menuTrophies.AddItem("Group Info", trophiesAreAvailable && !Trophies.RequestGroupInfoIsBusy()))
        {
            this.ErrorHandler(Trophies.RequestGroupInfo());
        }
        if (this.menuTrophies.AddItem("Trophy Info", trophiesAreAvailable && !Trophies.RequestTrophyInfoIsBusy()))
        {
            this.ErrorHandler(Trophies.RequestTrophyInfo());
        }
        if (this.menuTrophies.AddItem("Trophy Progress", trophiesAreAvailable && !Trophies.RequestTrophyProgressIsBusy()))
        {
            this.ErrorHandler(Trophies.RequestTrophyProgress());
        }
        if (this.menuTrophies.AddItem("Award Trophy", trophiesAreAvailable) && this.ErrorHandler(Trophies.AwardTrophy(this.nextTrophyIndex)) == null)
        {
            this.nextTrophyIndex++;
            if (this.nextTrophyIndex == this.gameInfo.numTrophies)
            {
                this.nextTrophyIndex = 1;
            }
        }
        if (this.menuTrophies.AddItem("Award All Trophies", trophiesAreAvailable))
        {
            for (int i = 1; i < this.gameInfo.numTrophies; i++)
            {
                this.ErrorHandler(Trophies.AwardTrophy(i));
            }
        }
        if (this.menuTrophies.AddBackIndex("Back", true))
        {
            menuStack.PopMenu();
        }
    }