Disable achievements UI on emscripten.

This commit is contained in:
Bartosz Taudul 2024-06-07 02:20:27 +02:00
parent 2e2e6257d7
commit 02ad97ff3f
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1236,11 +1236,14 @@ static void DrawContents()
ImGui::EndPopup(); ImGui::EndPopup();
} }
#ifndef __EMSCRIPTEN__
if( !s_config.achievementsAsked ) if( !s_config.achievementsAsked )
{ {
s_config.achievementsAsked = true; s_config.achievementsAsked = true;
ImGui::OpenPopup( ICON_FA_STAR " Achievements" ); ImGui::OpenPopup( ICON_FA_STAR " Achievements" );
} }
#endif
if( ImGui::BeginPopupModal( ICON_FA_STAR " Achievements", nullptr, ImGuiWindowFlags_AlwaysAutoResize ) ) if( ImGui::BeginPopupModal( ICON_FA_STAR " Achievements", nullptr, ImGuiWindowFlags_AlwaysAutoResize ) )
{ {
ImGui::TextUnformatted( "Tracy Profiler is a complex tool with many features. It" ); ImGui::TextUnformatted( "Tracy Profiler is a complex tool with many features. It" );