예제 #1
0
int main(int argc, char* argv[])
{
    // Qt5
    QApplication app(argc, argv);

    // Initialize file logger
    InitializeEasyLogging(argc, argv);
    LOG(INFO) << "MissingHUD2 starting.";

    // Initialize BoI DLL Injector
    BoIInjector injector;

    // Show GUI
    LoaderGUI gui;
    gui.ConnectSlots(injector);
    gui.show();

    // Start the DLL monitoring thread
    injector.Start();

    int ret_code = app.exec();
    LOG(INFO) << "MissingHUD2 exiting with exit code " << ret_code << ".";

    return ret_code;
}
예제 #2
0
int main(int argc, char* argv[])
{
    // Qt5
    QApplication app(argc, argv);

    // Initialize file logger
    InitializeEasyLogging(argc, argv);
    LOG(INFO) << "========== Missing HUD 2 " << MHUD2_VERSION << " ==========";

    // Initialize BoI DLL Injector
    BoIInjector injector;

    // Load preferences
    MHUD::Prefs mhud_prefs = MHUD::Options::ReadCfgFile(CFG_FILENAME);

    // Show GUI
    LoaderGUI gui;
    gui.ConnectSlots(injector);
    gui.UpdatePrefs(mhud_prefs);
    gui.show();

    // Start the DLL monitoring thread
    injector.Start();

    int ret_code = app.exec();
    LOG(INFO) << "Missing HUD 2 exiting with exit code " << ret_code << ".";
    return ret_code;
}