| 1 | |
| 2 | /** |
| 3 | * |
| 4 | * @file platform_interface.h |
| 5 | * |
| 6 | * Part of the OpenJazz project |
| 7 | * |
| 8 | * @par Licence: |
| 9 | * Copyright (c) 2015-2026 Carsten Teibes |
| 10 | * |
| 11 | * OpenJazz is distributed under the terms of |
| 12 | * the GNU General Public License, version 2.0 |
| 13 | * |
| 14 | */ |
| 15 | |
| 16 | |
| 17 | #ifndef _PLATFORM_INTERFACE_H |
| 18 | #define _PLATFORM_INTERFACE_Hcxx . . $ `src/platforms/platform_interface.h:18:9`! |
| 19 | |
| 20 | class IPlatformcxx . . $ IPlatform# { |
| 21 | public: |
| 22 | virtual ~cxx . . $ IPlatform#`~IPlatform`(49f6e7a06ebc5aa8).IPlatformcxx . . $ IPlatform#() =0; |
| 23 | |
| 24 | static IPlatformcxx . . $ IPlatform#* makecxx . . $ IPlatform#make(764857a803c45864).(); |
| 25 | |
| 26 | virtual void NetInitcxx . . $ IPlatform#NetInit(49f6e7a06ebc5aa8).(); |
| 27 | virtual void NetExitcxx . . $ IPlatform#NetExit(49f6e7a06ebc5aa8).(); |
| 28 | virtual bool NetHasConsolecxx . . $ IPlatform#NetHasConsole(c9857a73d68e59ba).(); |
| 29 | |
| 30 | virtual bool WantsExitcxx . . $ IPlatform#WantsExit(c9857a73d68e59ba).(); |
| 31 | |
| 32 | virtual void AddGamePathscxx . . $ IPlatform#AddGamePaths(49f6e7a06ebc5aa8).(); |
| 33 | virtual void ErrorNoDatafilescxx . . $ IPlatform#ErrorNoDatafiles(49f6e7a06ebc5aa8).(); |
| 34 | |
| 35 | virtual bool InputIPcxx . . $ IPlatform#InputIP(49cd6f7c3cca87cd).(char*& current_ip, char*& new_ip); |
| 36 | virtual bool InputStringcxx . . $ IPlatform#InputString(feb836bd007b87f6).(const char* hint, char*& current_string, char*& new_string); |
| 37 | protected: |
| 38 | IPlatformcxx . . $ IPlatform#IPlatform(49f6e7a06ebc5aa8).() {}; |
| 39 | }; |
| 40 | |
| 41 | // stubs |
| 42 | |
| 43 | inline void IPlatformcxx . . $ IPlatform#::NetInitcxx . . $ IPlatform#NetInit(49f6e7a06ebc5aa8).() { } |
| 44 | inline void IPlatformcxx . . $ IPlatform#::NetExitcxx . . $ IPlatform#NetExit(49f6e7a06ebc5aa8).() { } |
| 45 | inline bool IPlatformcxx . . $ IPlatform#::NetHasConsolecxx . . $ IPlatform#NetHasConsole(c9857a73d68e59ba).() { return false; } |
| 46 | |
| 47 | inline bool IPlatformcxx . . $ IPlatform#::WantsExitcxx . . $ IPlatform#WantsExit(c9857a73d68e59ba).() { return false; } |
| 48 | |
| 49 | inline bool IPlatformcxx . . $ IPlatform#::InputIPcxx . . $ IPlatform#InputIP(49cd6f7c3cca87cd).(char*&, char*&) { |
| 50 | return false; |
| 51 | } |
| 52 | inline bool IPlatformcxx . . $ IPlatform#::InputStringcxx . . $ IPlatform#InputString(feb836bd007b87f6).(const char*, char*&, char*&) { |
| 53 | return false; |
| 54 | } |
| 55 | |
| 56 | #endif |