Own Web fallback services and trim Win32 session state

This commit is contained in:
2026-06-17 10:17:55 +02:00
parent 2cb7046a56
commit af2901e78a
7 changed files with 54 additions and 8 deletions

View File

@@ -17,6 +17,7 @@ GLFWwindow* wnd;
float theta = 0;
glm::vec2 g_cursor_pos;
std::unique_ptr<pp::platform::PlatformServices> g_platform_services;
std::unique_ptr<pp::platform::WebPlatformServices> g_web_platform_services;
template<typename F>
class TaskCallback
@@ -121,6 +122,7 @@ void StartApp()
{
App::I = &app;
pp::platform::legacy::set_legacy_glfw_window(wnd);
pp::platform::legacy::set_legacy_web_platform_services(g_web_platform_services.get());
app.set_platform_services(g_platform_services.get());
app.initLog();
app.create();
@@ -199,6 +201,7 @@ void main_loop()
int main()
{
g_platform_services = pp::platform::legacy::create_platform_services();
g_web_platform_services = pp::platform::legacy::create_legacy_web_platform_services();
if (glfwInit() != GL_TRUE)
printf("Failed to init GLFW");