Esempio n. 1
0
bool send_world_score(bool do_send)
{
#ifdef WORLD_SCORE
    if(send_score && do_send)
    {
        if(easy_band)
        {
            msg_print("Since you are in the Easy Mode, you cannot send score to world score server.");
        }
        else if(get_check_strict("Do you send score to the world score sever? ", (CHECK_NO_ESCAPE | CHECK_NO_HISTORY)))
        {
            errr err;
            prt("",0,0);
            prt("Sending...",0,0);
            Term_fresh();
            screen_save();
            err = report_score();
            screen_load();
            if (err)
            {
                return FALSE;
            }
            prt("Completed.  Hit any key.", 0, 0);
            (void)inkey();
        }
        else return FALSE;
    }
#endif
    return TRUE;
}
Esempio n. 2
0
/*!
 * @brief スコアサーバへの転送処理
 * @param do_send 実際に転送ア処置を行うか否か
 * @return 転送が成功したらTRUEを返す
 */
bool send_world_score(bool do_send)
{
#ifdef WORLD_SCORE
	if(send_score && do_send)
	{
		if(easy_band)
		{
			msg_print(_("初心者モードではワールドスコアに登録できません。",
			"Since you are in the Easy Mode, you cannot send score to world score server."));
		}
		else if(get_check_strict(_("スコアをスコア・サーバに登録しますか? ", "Do you send score to the world score sever? "), 
				(CHECK_NO_ESCAPE | CHECK_NO_HISTORY)))
		{
			errr err;
			prt("",0,0);
			prt(_("送信中..", "Sending..."),0,0);
			Term_fresh();
			screen_save();
			err = report_score();
			screen_load();
			if (err)
			{
				return FALSE;
			}
			prt(_("完了。何かキーを押してください。", "Completed.  Hit any key."), 0, 0);
			(void)inkey();
		}
		else return FALSE;
	}
#endif
	return TRUE;
}