This repository has been archived on 2024-06-01. You can view files and clone it, but cannot push or open issues or pull requests.
cathook/include/hooks/others.hpp
nullifiedcat f448e06a87 Revert "clang-format"
This reverts commit 0be1dba24b025ba6ebc26e53cda545c222da7047.
2017-12-02 17:38:44 +03:00

48 lines
1.7 KiB
C++

/*
* others.h
*
* Created on: Jan 8, 2017
* Author: nullifiedcat
*/
#ifndef OTHERS_H_
#define OTHERS_H_
class INetMessage;
class CViewSetup;
class bf_read;
class SDL_Window;
class CatVar;
extern CatVar disconnect_reason;
extern int spectator_target;
bool CanPacket_hook(void*);
int IN_KeyEvent_hook(void*, int, int, const char*);
bool SendNetMsg_hook(void*, INetMessage&, bool, bool);
void Shutdown_hook(void*, const char*);
void OverrideView_hook(void*, CViewSetup*);
bool DispatchUserMessage_hook(void*, int, bf_read&);
void FrameStageNotify_hook(void*, int);
void LevelInit_hook(void*, const char*);
void LevelShutdown_hook(void*);
#if ENABLE_NULL_GRAPHICS == 1
typedef ITexture*(*FindTexture_t)(void*, const char*, const char*, bool, int);
typedef IMaterial*(*FindMaterialEx_t)(void*, const char*, const char*, int, bool, const char*);
typedef IMaterial*(*FindMaterial_t)(void*, const char*, const char*, bool, const char*);
/* 70 */ void ReloadTextures_null_hook(void* this_);
/* 71 */ void ReloadMaterials_null_hook(void* this_, const char *pSubString);
/* 73 */ IMaterial *FindMaterial_null_hook(void* this_, char const* pMaterialName, const char *pTextureGroupName, bool complain, const char *pComplainPrefix);
/* 81 */ ITexture *FindTexture_null_hook(void* this_, char const* pTextureName, const char *pTextureGroupName, bool complain, int nAdditionalCreationFlags);
/* 121 */ void ReloadFilesInList_null_hook(void* this_, IFileList *pFilesToReload);
/* 123 */ IMaterial *FindMaterialEx_null_hook(void* this_, char const* pMaterialName, const char *pTextureGroupName, int nContext, bool complain, const char *pComplainPrefix);
#endif
//extern unsigned int* swapwindow_ptr;
//extern unsigned int swapwindow_orig;
#endif /* OTHERS_H_ */