| 265 | } initializeState; |
| 266 | |
| 267 | int initialize(int argc, const char** argv) |
| 268 | { |
| 269 | auto moduleManager = skr_get_module_manager(); |
| 270 | std::error_code ec = {}; |
| 271 | auto root = skr::filesystem::current_path(ec); |
| 272 | moduleManager->mount(root.u8string().c_str()); |
| 273 | moduleManager->make_module_graph(u8"SkrRenderer", true); |
| 274 | moduleManager->init_module_graph(argc, argv); |
| 275 | |
| 276 | if (auto result = CreateMainWindow(); result != 0) |
| 277 | return result; |
| 278 | initializeState = AAA_INITIALIZE_WINDOW; |
| 279 | if (auto result = CreateRenderer(mainWindow); result != 0) |
| 280 | return result; |
| 281 | initializeState = AAA_INITIALIZE_RENDERER; |
| 282 | if (auto result = CreateVFS(); result != 0) |
| 283 | return result; |
| 284 | initializeState = AAA_INITIALIZE_VFS; |
| 285 | if (auto result = InitializeImgui(renderer, resource_vfs); result != 0) |
| 286 | return result; |
| 287 | initializeState = AAA_INITIALIZE_IMGUI; |
| 288 | if (auto result = InitializeSockets()) |
| 289 | return result; |
| 290 | initializeState = AAA_INITIALIZE_SOCKET; |
| 291 | if (auto result = InitializeChat()) |
| 292 | return result; |
| 293 | initializeState = AAA_INITIALIZE_CHAT; |
| 294 | |
| 295 | return 0; |
| 296 | } |
| 297 | |
| 298 | void UpdateChat(); |
| 299 |
no test coverage detected