Let us start here, from square one. No, from Zero!
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
#include "configurator.h"
|
||||
|
||||
#include "overlay/overlay.h"
|
||||
#include "script/manager.h"
|
||||
|
||||
namespace cfg {
|
||||
|
||||
// globals
|
||||
bool CONFIGURATOR_STANDALONE = false;
|
||||
ConfigType CONFIGURATOR_TYPE = ConfigType::Config;
|
||||
|
||||
Configurator::Configurator() {
|
||||
CONFIGURATOR_STANDALONE = true;
|
||||
}
|
||||
|
||||
Configurator::~Configurator() {
|
||||
CONFIGURATOR_STANDALONE = false;
|
||||
}
|
||||
|
||||
void Configurator::run() {
|
||||
|
||||
// create instance
|
||||
overlay::ENABLED = true;
|
||||
overlay::create_software(this->wnd.hWnd);
|
||||
overlay::OVERLAY->set_active(true);
|
||||
overlay::OVERLAY->hotkeys_enable = false;
|
||||
ImGui::GetIO().MouseDrawCursor = false;
|
||||
|
||||
// scripts
|
||||
script::manager_scan();
|
||||
script::manager_config();
|
||||
|
||||
// run window
|
||||
this->wnd.run();
|
||||
|
||||
// clean up
|
||||
script::manager_shutdown();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user