| 7949 | } |
| 7950 | |
| 7951 | static void MainLoop() |
| 7952 | { |
| 7953 | olc::Platform::ptrPGE->olc_CoreUpdate(); |
| 7954 | if (!ptrPGE->olc_IsRunning()) |
| 7955 | { |
| 7956 | if (ptrPGE->OnUserDestroy()) |
| 7957 | { |
| 7958 | emscripten_cancel_main_loop(); |
| 7959 | platform->ApplicationCleanUp(); |
| 7960 | } |
| 7961 | else |
| 7962 | { |
| 7963 | ptrPGE->olc_Reanimate(); |
| 7964 | } |
| 7965 | } |
| 7966 | } |
| 7967 | }; |
| 7968 | |
| 7969 | //Emscripten needs a special Start function |
nothing calls this directly
no test coverage detected