From fd06490171efe63b6995ad5097aa8a8272a7cd34 Mon Sep 17 00:00:00 2001 From: yumetodo Date: Sun, 14 Feb 2016 00:02:38 +0900 Subject: [PATCH] =?UTF-8?q?normal=5Fcon=5Ff=E3=82=92=E4=BE=8B=E5=A4=96?= =?UTF-8?q?=E3=82=92=E6=8A=95=E3=81=92=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Don't_push/Don't_push/source/continue.cpp | 6 +++++- Don't_push/Don't_push/source/end.cpp | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Don't_push/Don't_push/source/continue.cpp b/Don't_push/Don't_push/source/continue.cpp index 6e0c6b1..3743acf 100644 --- a/Don't_push/Don't_push/source/continue.cpp +++ b/Don't_push/Don't_push/source/continue.cpp @@ -35,7 +35,11 @@ Status continu(const img_arr_t&, const sound_arr_t& sound, const config_info::la //メインループ keystate state; - auto normal_con_f = []() -> bool { return -1 != ProcessMessage() && 0 == ScreenFlip() && 0 == ClearDrawScreen(); }; + auto normal_con_f = []() -> bool { + bool re = -1 != ProcessMessage() && 0 == ScreenFlip() && 0 == ClearDrawScreen(); + if (!re) throw std::runtime_error("ProcessMessage() return -1."); + return re; + }; bool is_normal_state = normal_con_f(); screens[flag_no_continue].DrawGraph({}, false); is_normal_state = normal_con_f(); diff --git a/Don't_push/Don't_push/source/end.cpp b/Don't_push/Don't_push/source/end.cpp index 2414edd..27f1975 100644 --- a/Don't_push/Don't_push/source/end.cpp +++ b/Don't_push/Don't_push/source/end.cpp @@ -14,7 +14,11 @@ Status end(const img_arr_t&, const sound_arr_t& sound, const config_info::lang_t const int font_title = CreateFontToHandle(nullptr, 100, 5, DX_FONTTYPE_EDGE);//タイトルロゴ const int font_1 = CreateFontToHandle(nullptr, 30, 1, DX_FONTTYPE_ANTIALIASING);//「Xキーを押してね」の奴 keystate state; - auto normal_con_f = []() -> bool { return -1 != ProcessMessage() && 0 == ScreenFlip() && 0 == ClearDrawScreen(); }; + auto normal_con_f = []() -> bool { + bool re = -1 != ProcessMessage() && 0 == ScreenFlip() && 0 == ClearDrawScreen(); + if (!re) throw std::runtime_error("ProcessMessage() return -1."); + return re; + }; bool is_normal_state = normal_con_f(); DrawBox(0, 0, WINDOW.width, WINDOW.height, GetColor(200, 200, 100), TRUE); //背景 DrawStringToHandle(WINDOW.width * 37 / 320, WINDOW.height / 4, (L"- " + lang_table.at(L"I did it!") + L" -").c_str(), GetColor(250, 0, 0), font_title);