Use Imgui dialog backend for the web version

This commit is contained in:
ROllerozxa 2025-12-27 17:12:31 +01:00
commit faba0b247e
2 changed files with 6 additions and 2 deletions

View file

@ -56,7 +56,11 @@ else()
set(SCREENSHOT_BUILD FALSE)
endif()
option(BACKEND_IMGUI "Enable incomplete Dear Imgui dialog backend (Experimental)" FALSE)
if(EMSCRIPTEN)
set(BACKEND_IMGUI TRUE)
else()
option(BACKEND_IMGUI "Enable incomplete Dear Imgui dialog backend (Experimental)" FALSE)
endif()
set(TMS_FORMFACTOR "PC")
if(WIN32)

View file

@ -124,7 +124,7 @@ void ui::open_url(const char *url)
void ui::render(){};
#endif
#if defined(NO_UI) || defined(TMS_BACKEND_EMSCRIPTEN)
#if defined(NO_UI)
int prompt_is_open = 0;
void ui::init(){};