From 6e80372099992040f038b538517e81b58885c478 Mon Sep 17 00:00:00 2001 From: lltcggie Date: Fri, 23 Nov 2018 22:42:19 +0900 Subject: [PATCH] =?UTF-8?q?GUI=E3=81=A7=E3=83=87=E3=83=95=E3=82=A9?= =?UTF-8?q?=E3=83=AB=E3=83=88=E3=81=AE=E3=83=A2=E3=83=87=E3=83=AB=E3=82=92?= =?UTF-8?q?=E6=8C=87=E5=AE=9A=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- waifu2x-caffe-gui/MainDialog.cpp | 2 +- waifu2x-caffe-gui/MainDialog.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/waifu2x-caffe-gui/MainDialog.cpp b/waifu2x-caffe-gui/MainDialog.cpp index 3deb5bd..8cac70c 100644 --- a/waifu2x-caffe-gui/MainDialog.cpp +++ b/waifu2x-caffe-gui/MainDialog.cpp @@ -1896,7 +1896,7 @@ void DialogEvent::Create(HWND hWnd, WPARAM wParam, LPARAM lParam, LPVOID lpData) tmp[_countof(tmp) - 1] = TEXT('\0'); tprcess = tmp; - modelType = (eModelType)GetPrivateProfileInt(TEXT("Setting"), TEXT("LastModel"), 0, getTString(SettingFilePath).c_str()); + modelType = (eModelType)GetPrivateProfileInt(TEXT("Setting"), TEXT("LastModel"), DefaultModel, getTString(SettingFilePath).c_str()); use_tta = GetPrivateProfileInt(TEXT("Setting"), TEXT("LastUseTTA"), 0, getTString(SettingFilePath).c_str()) != 0; diff --git a/waifu2x-caffe-gui/MainDialog.h b/waifu2x-caffe-gui/MainDialog.h index 002a3d3..0a43f86 100644 --- a/waifu2x-caffe-gui/MainDialog.h +++ b/waifu2x-caffe-gui/MainDialog.h @@ -34,6 +34,8 @@ enum eModelType eModelTypeEnd, }; +const int DefaultModel = eModelTypeCunet; + const tstring ModelPathList[eModelTypeEnd] = { TEXT("models/upconv_7_anime_style_art_rgb"), TEXT("models/upconv_7_photo"),