diff options
Diffstat (limited to 'c/main.cpp')
-rw-r--r-- | c/main.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -2,7 +2,6 @@ #include <stdexcept> #include <windows.h> #include <commctrl.h> -#include <SWI-Prolog.h> #include <libxml/xmlversion.h> #include "debug.h" @@ -10,7 +9,6 @@ #include "datalistview.h" #include "episodelistview.h" #include "layout.h" -#include "pl.h" #include "test.h" #include "util.h" @@ -86,13 +84,6 @@ int WINAPI WinMain(const HINSTANCE hInstance, const HINSTANCE, char* const, cons setbuf(stdout, nullptr); LIBXML_TEST_VERSION; - /* Initialize Prolog. */ - const char* argv[] = {"EpisodeBrowser", nullptr}; - if (!PL_initialise(1, const_cast<char**>(argv))) - throw std::runtime_error("Could not initialize Prolog."); - if (!Pl("track_episodes","attach") || !Pl("episode_data","attach")) - throw std::runtime_error("Could not attach databases."); - INITCOMMONCONTROLSEX icc; icc.dwSize = sizeof(icc); icc.dwICC = ICC_WIN95_CLASSES; @@ -134,7 +125,7 @@ int WINAPI WinMain(const HINSTANCE hInstance, const HINSTANCE, char* const, cons ShowWindow(hWnd, nCmdShow); /* Populate episode list view. */ - Pl("track_episodes","update_tracked_episodes"); + /* TODO: Update tracked episodes. */ g_elv->Update(); g_elv->RestoreFocus(); @@ -149,7 +140,6 @@ int WINAPI WinMain(const HINSTANCE hInstance, const HINSTANCE, char* const, cons DispatchMessage(&msg); } - PL_halt(0); return 0; } @@ -274,7 +264,7 @@ LRESULT CALLBACK HandleMsg(const HWND hWnd, const UINT uMsg, const WPARAM wParam g_hWndFocus = GetFocus(); else { SetFocus(g_hWndFocus); - Pl("track_episodes","update_tracked_episodes"); + /* TODO: Update tracked episodes. */ g_elv->Redraw(); } return 0; |