16int main(
int argc,
char** argv)
20#pragma region init global variables stuff
31#pragma region load dll
32 std::filesystem::path currentPath = std::filesystem::current_path();
33 samurai::LoadedDll loadedDll;
34 SAMURAI_ASSERT(loadedDll.tryToloadDllUntillPossible(0, logs, std::chrono::seconds(5)),
38#pragma region pika imgui id manager
42#pragma region push notification manager
47#pragma region init window opengl imgui and context
63 SDL_Init(SDL_INIT_EVERYTHING);
71#pragma region container manager
75 containerManager.
init();
79#pragma region init dll reaml
81 loadedDll.gameplayStart_(window.
context);
88#pragma region shortcuts
97 editor.
init(shortcutManager, imguiIdsManager);
102 (loadedDll.containerInfo[0], loadedDll, logs, imguiIdsManager, std::string());
114 #pragma region start imgui
118 #pragma region clear screen
122 glClear(GL_COLOR_BUFFER_BIT);
124 SDL_SetRenderDrawColor(window.
context.renderer, 0, 0, 0, 255);
125 SDL_RenderClear(window.
context.renderer);
131 #pragma region editor stuff
133 loadedDll, imguiIdsManager, containerManager);
138 #pragma region container manager
143 containerManager.
reloadDll(loadedDll, window, logs);
146 containerManager.
update(loadedDll, window, logs, imguiIdsManager);
150 #pragma region end imgui frame
154 #pragma region window update
158 #pragma region shortcut manager update
int main(int argc, char **argv)
containerId_t createContainer(samurai::ContainerInformation containerInformation, samurai::LoadedDll &loadedDll, samurai::LogManager &logManager, samurai::samuraiImgui::ImGuiIdsManager &imguiIDsManager, std::string &cmd, size_t memoryPos=0)
glfwMakeContextCurrent_t * glfwMakeContextCurrentPtr
void update(const samurai::Input &input, samurai::ShortcutManager &shortcutManager, samurai::LogManager &logs, samurai::LoadedDll &loadedDll, samurai::samuraiImgui::ImGuiIdsManager &imguiIDsManager, samurai::ContainerManager &containerManager)