diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-02-16 16:28:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-16 16:28:18 +0100 |
commit | da612c324cec8c4f6bfcef9b35406ea215e699f6 (patch) | |
tree | 09f47985cba402e5e1471d2ec9868208dfd77952 /platform/server/os_server.h | |
parent | 2caf4aed615dabb59d2a88ef02d481d6c16ac912 (diff) | |
parent | 2e66730061bd4b0a84f50df9bcc50b8fe6015d2f (diff) | |
download | redot-engine-da612c324cec8c4f6bfcef9b35406ea215e699f6.tar.gz |
Merge pull request #16653 from fire/server_again_2
Worked with Faless(Fabio Alessandrelli) to update server platform.
Diffstat (limited to 'platform/server/os_server.h')
-rw-r--r-- | platform/server/os_server.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/platform/server/os_server.h b/platform/server/os_server.h index 7abb4565d5..2cc6f0c47e 100644 --- a/platform/server/os_server.h +++ b/platform/server/os_server.h @@ -27,10 +27,10 @@ /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /*************************************************************************/ - #ifndef OS_SERVER_H #define OS_SERVER_H +#include "../x11/crash_handler_x11.h" #include "../x11/power_x11.h" #include "drivers/rtaudio/audio_driver_rtaudio.h" #include "drivers/unix/os_unix.h" @@ -63,10 +63,16 @@ class OS_Server : public OS_Unix { PowerX11 *power_manager; + CrashHandler crash_handler; + protected: virtual int get_video_driver_count() const; virtual const char *get_video_driver_name(int p_driver) const; + virtual int get_audio_driver_count() const; + virtual const char *get_audio_driver_name(int p_driver) const; + + virtual void initialize_core(); virtual Error initialize(const VideoMode &p_desired, int p_video_driver, int p_audio_driver); virtual void finalize(); @@ -102,6 +108,16 @@ public: virtual OS::PowerState get_power_state(); virtual int get_power_seconds_left(); virtual int get_power_percent_left(); + virtual bool _check_internal_feature_support(const String &p_feature); + + virtual String get_config_path() const; + virtual String get_data_path() const; + virtual String get_cache_path() const; + + virtual String get_system_dir(SystemDir p_dir) const; + + void disable_crash_handler(); + bool is_disable_crash_handler() const; OS_Server(); }; |