summaryrefslogtreecommitdiff
path: root/dedicated/isys.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /dedicated/isys.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'dedicated/isys.h')
-rw-r--r--dedicated/isys.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/dedicated/isys.h b/dedicated/isys.h
new file mode 100644
index 0000000..d86769a
--- /dev/null
+++ b/dedicated/isys.h
@@ -0,0 +1,45 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+#if !defined( ISYS_H )
+#define ISYS_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "interface.h"
+
+class CDedicatedAppSystemGroup;
+
+
+abstract_class ISys
+{
+public:
+ virtual ~ISys( void ) { }
+
+ virtual bool LoadModules( CDedicatedAppSystemGroup *pAppSystemGroup ) = 0;
+
+ virtual void Sleep( int msec ) = 0;
+ virtual bool GetExecutableName( char *out ) = 0;
+ virtual void ErrorMessage( int level, const char *msg ) = 0;
+
+ virtual void WriteStatusText( char *szText ) = 0;
+ virtual void UpdateStatus( int force ) = 0;
+
+ virtual long LoadLibrary( char *lib ) = 0;
+ virtual void FreeLibrary( long library ) = 0;
+
+ virtual bool CreateConsoleWindow( void ) = 0;
+ virtual void DestroyConsoleWindow( void ) = 0;
+
+ virtual void ConsoleOutput ( char *string ) = 0;
+ virtual char *ConsoleInput ( int index, char *buf, int buflen ) = 0;
+ virtual void Printf( PRINTF_FORMAT_STRING const char *fmt, ...) FMTFUNCTION( 2, 3 ) = 0;
+};
+
+extern ISys *sys;
+
+#endif // ISYS_H \ No newline at end of file