From 309ba72da4a52380d30ce014281b38a726d9e1fd Mon Sep 17 00:00:00 2001 From: scawful Date: Wed, 31 Jul 2024 08:53:11 -0400 Subject: [PATCH] add platform enum to controller --- src/app/core/controller.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/core/controller.h b/src/app/core/controller.h index a888fde5..946454b1 100644 --- a/src/app/core/controller.h +++ b/src/app/core/controller.h @@ -23,6 +23,8 @@ namespace yaze { namespace app { namespace core { +enum class Platform { kUnknown, kMacOS, kiOS, kWindows, kLinux }; + /** * @brief Main controller for the application. * @@ -63,9 +65,11 @@ class Controller : public ExperimentFlags { friend int ::main(int argc, char **argv); bool active_; + Platform platform_; + editor::MasterEditor master_editor_; + int audio_frequency_ = 48000; int16_t *audio_buffer_; - editor::MasterEditor master_editor_; SDL_AudioDeviceID audio_device_; std::shared_ptr window_; std::shared_ptr renderer_; @@ -75,4 +79,4 @@ class Controller : public ExperimentFlags { } // namespace app } // namespace yaze -#endif // YAZE_APP_CORE_CONTROLLER_H \ No newline at end of file +#endif // YAZE_APP_CORE_CONTROLLER_H