Adapted for web

This commit is contained in:
Vladislav Khorev committed 2026-11-09 17:20:04 +06:00
commit 3fe21230cc
20 files changed
+241 -72

No files matched your search

+4 -4
View File
@@ -1,4 +1,4 @@
#include "MenuManager.h"
#include "MenuManager.h"
#include "Game.h"
#include "Localization.h"
#include "items/ItemRegistry.h"
@@ -537,7 +537,7 @@ namespace FRG {
#if !defined(EMSCRIPTEN) && !defined(__ANDROID__)
#if !defined(__EMSCRIPTEN__) && !defined(__ANDROID__)
uiManager.setTextButtonCallback("menuExitButton", [this](const std::string&) {
audioPlayer_.playSoundAsync("resources/audio/751089__smallconfusion__mechanical-plastic-click-11.ogg");
Environment::exitGameLoop = true;
@@ -587,7 +587,7 @@ namespace FRG {
#ifndef EMSCRIPTEN
#ifndef __EMSCRIPTEN__
uiManager.setTextButtonCallback("menuExitButton", [this](const std::string&) {
audioPlayer_.playSoundAsync("resources/audio/751089__smallconfusion__mechanical-plastic-click-11.ogg");
Environment::exitGameLoop = true;
@@ -2441,7 +2441,7 @@ namespace FRG {
if (root.contains("soundEnabled"))
audioPlayer_.setSoundEnabled(root["soundEnabled"].get<bool>());
if (root.contains("fullscreen")) {
#ifndef EMSCRIPTEN
#ifndef __EMSCRIPTEN__
Environment::setFullscreen(root["fullscreen"].get<bool>());
#endif
}