more refactoring for iOS

This commit is contained in:
2026-03-23 17:53:17 -04:00
parent 359a9d2620
commit abfb9e0f64
9 changed files with 21 additions and 23 deletions

View File

@@ -93,9 +93,6 @@ typedef std::vector<std::string> StringVector;
class Options
{
public:
// deepfriedwaffles: for iOS, was getting compile errors saying: No member named 'sound' in 'Options' and No member named 'music' in 'Options' so I floated them here. 1.0f means full volume out of the box, but if everything is too loud, you might want to try adjusting this
float sound = 1.0f;
float music = 1.0f;
static bool debugGl;
@@ -160,7 +157,9 @@ private:
if (m_options[key] == nullptr) return nullptr;
return dynamic_cast<T*>(m_options[key]);
}
// apple stuff
float sound;
float music;
std::array<Option*, OPTIONS_COUNT> m_options;
OptionsFile optionsFile;