mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
*** Merged Code from Multiplayer Branch Revision 2960 ***
- Virtual File System (VFS) by birdflu. This is needed for Multiplayer and is also used for Single Player. Very neat system :-) - Multiplayer Version 1.1 + some additional features and bugfixes * INFO: If you compile a new EXE and want to test, be sure to also use the latest SVN GameDir files in your JA2 install directory * git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2961 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+9
-3
@@ -6,6 +6,8 @@
|
||||
#include <stack>
|
||||
#include <string>
|
||||
|
||||
#include "VFS/PropertyContainer.h"
|
||||
|
||||
// Kaiden: This will read any value out of
|
||||
// an INI file as long as the correct type is specified.
|
||||
// Methods should be fairly self explainatory
|
||||
@@ -27,7 +29,7 @@ public:
|
||||
int ReadInteger(const STR8 szSection, const STR8 szKey, int iDefaultValue);
|
||||
int ReadInteger(const STR8 szSection, const STR8 szKey, int defaultValue, int minValue, int maxValue);
|
||||
|
||||
//void testReadUINT32(void);//various limit tests of UINT and double/float handling
|
||||
//UINT32 CIniReader::testReadUINT32(void);//various limit tests of UINT and double/float handling
|
||||
//front end functions that control type interpretation and range control, each calls internal ReadUINT
|
||||
UINT32 ReadUINT32(const STR8 szSection, const STR8 szKey, UINT32 defaultValue, UINT32 minValue, UINT32 maxValue);
|
||||
UINT16 ReadUINT16(const STR8 szSection, const STR8 szKey, UINT16 defaultValue, UINT16 minValue, UINT16 maxValue);
|
||||
@@ -40,13 +42,17 @@ public:
|
||||
DOUBLE ReadDouble(const STR8 szSection, const STR8 szKey, DOUBLE defaultValue, DOUBLE minValue, DOUBLE maxValue);
|
||||
FLOAT ReadFloat (const STR8 szSection, const STR8 szKey, FLOAT defaultValue, FLOAT minValue, FLOAT maxValue);
|
||||
|
||||
BOOLEAN ReadBoolean(const STR8 szSection, const STR8 szKey, BOOLEAN bolDefaultValue);
|
||||
BOOLEAN ReadBoolean(const STR8 szSection, const STR8 szKey, bool bolDefaultValue);
|
||||
|
||||
void ReadString(const STR8 szSection, const STR8 szKey, const STR8 szDefaultValue, STR8 input_buffer, size_t buffer_size);
|
||||
|
||||
// WANNE - MP: Old version, currently used by Multiplayer
|
||||
STR8 ReadString(const STR8 szSection, const STR8 szKey, const STR8 szDefaultValue);
|
||||
|
||||
BOOLEAN Is_CIniReader_File_Found(void) {return (CIniReader_File_Found);}
|
||||
|
||||
void Clear();
|
||||
private:
|
||||
CPropertyContainer m_oProps;
|
||||
char m_szFileName[MAX_PATH];
|
||||
BOOLEAN CIniReader_File_Found;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user