1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-02-20 13:54:14 +01:00

Build fixes

This commit is contained in:
Nick Hastings 2023-09-27 18:52:44 -04:00
parent ef78389803
commit 799f1660a3
2 changed files with 3 additions and 2 deletions

View File

@ -482,7 +482,7 @@ void SourceProvider::CacheUserMessages()
static jmp_buf usermsg_end;
/* This only gets called if IServerGameDLL::GetUserMessageInfo() triggers it */
void SourceProvider::Detour_Error(const tchar* pMsg, ...)
void Detour_Error(const tchar* pMsg, ...)
{
/* Jump back to setjmp() in CacheUserMessages() */
longjmp(usermsg_end, 1);

View File

@ -33,6 +33,8 @@
#include <vector>
#include <sh_list.h>
class IFileSystem;
class SourceProvider : public BaseProvider
{
public: // BaseProvider
@ -101,7 +103,6 @@ private:
};
private:
void CacheUserMessages();
void Detour_Error(const tchar* pMsg, ...);
bool KVLoadFromFile(KeyValues* kv, IFileSystem* filesystem, const char* resourceName, const char* pathID = nullptr);
inline bool IsUserMessageIterationSupported() const
{