Initial import of updater extension, currently incomplete - just getting it in the tree (bug 3530).
This commit is contained in:
+11
-1
@@ -42,7 +42,7 @@
|
||||
*/
|
||||
|
||||
#define SMINTERFACE_GAMECONFIG_NAME "IGameConfigManager"
|
||||
#define SMINTERFACE_GAMECONFIG_VERSION 4
|
||||
#define SMINTERFACE_GAMECONFIG_VERSION 5
|
||||
|
||||
class SendProp;
|
||||
|
||||
@@ -161,6 +161,16 @@ namespace SourceMod
|
||||
* @noreturn
|
||||
*/
|
||||
virtual void RemoveUserConfigHook(const char *sectionname, ITextListener_SMC *listener) =0;
|
||||
|
||||
/**
|
||||
* @brief Acquires a file reading lock on the gamedata system.
|
||||
*/
|
||||
virtual void AcquireLock() = 0;
|
||||
|
||||
/**
|
||||
* @brief Releases the file reading lock.
|
||||
*/
|
||||
virtual void ReleaseLock() = 0;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
+18
-1
@@ -43,7 +43,7 @@
|
||||
#include <time.h>
|
||||
|
||||
#define SMINTERFACE_SOURCEMOD_NAME "ISourceMod"
|
||||
#define SMINTERFACE_SOURCEMOD_VERSION 8
|
||||
#define SMINTERFACE_SOURCEMOD_VERSION 9
|
||||
|
||||
/**
|
||||
* @brief Forward declaration of the KeyValues class.
|
||||
@@ -70,6 +70,13 @@ namespace SourceMod
|
||||
*/
|
||||
typedef void (*GAME_FRAME_HOOK)(bool simulating);
|
||||
|
||||
/**
|
||||
* @brief Function type for FrameAction callbacks.
|
||||
*
|
||||
* @param data User data pointer.
|
||||
*/
|
||||
typedef void (*FRAMEACTION)(void *data);
|
||||
|
||||
/**
|
||||
* @brief Contains miscellaneous helper functions.
|
||||
*/
|
||||
@@ -270,6 +277,16 @@ namespace SourceMod
|
||||
* @return Number of bytes (not including null terminator) written.
|
||||
*/
|
||||
virtual size_t FormatArgs(char *buffer, size_t maxlength, const char *fmt, va_list ap) = 0;
|
||||
|
||||
/**
|
||||
* @brief Adds an action to be executed on the next available frame.
|
||||
*
|
||||
* This function is thread safe.
|
||||
*
|
||||
* @param fn Function to execute.
|
||||
* @param data Data to pass to function.
|
||||
*/
|
||||
virtual void AddFrameAction(FRAMEACTION fn, void *data) = 0;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user