diff options
Diffstat (limited to 'c/ext.cpp')
-rw-r--r-- | c/ext.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -8,7 +8,7 @@ extern CfgA& g_cfg; extern FileView<ElvDataA> g_fvElv; extern FileView<DlvDataA> g_fvDlv; -void OpenOnline(int iEp) +bool OpenOnline(int iEp) { wchar_t url[sizeof(g_cfg.url)+4]; Swprintf(url, L"%s%d", g_cfg.url, iEp); @@ -16,9 +16,10 @@ void OpenOnline(int iEp) ShellExecute(nullptr, L"open", url, nullptr, nullptr, SW_SHOWNORMAL)); if (r <= 32) throw Win32Error(); + return true; } -void OpenWiki(int iEp) +bool OpenWiki(int iEp) { const DlvDataA& d = g_fvDlv.At(iEp-1); wchar_t url[sizeof(d.wiki)+35]; @@ -27,6 +28,7 @@ void OpenWiki(int iEp) ShellExecute(nullptr, L"open", url, nullptr, nullptr, SW_SHOWNORMAL)); if (r <= 32) throw Win32Error(); + return true; } static inline bool MatchFileName(wchar_t (&file)[MAX_PATH], const wchar_t* const siEp) noexcept |