This repository has been archived on 2024-06-13. You can view files and clone it, but cannot push or open issues or pull requests.
nekohook/modules/gmod/hacks/sharedobj.hpp
2020-08-04 13:13:01 -04:00

43 lines
905 B
C++

/*
*
* Header for use of our shared objects
*
*
*/
#pragma once
#include "../../../hacks/sharedobj.hpp" // For the normal shared obj class
// I dont know what this does
typedef void* (*fn_CreateInterface_t)(const char*, int*);
class SourceSo : public SharedObject {
public:
SourceSo(const char* _file_name);
void* CreateInterface(const char* interface);
private:
fn_CreateInterface_t fptr = nullptr; // Used by source but is usefull
};
namespace modules::source::hacks::sharedobj {
// Create move hook + controling attack and movement
extern SourceSo client;
extern SourceSo server;
// For player names
extern SourceSo engine;
// Used for surface drawing
extern SourceSo vgui2;
// CVars
extern SourceSo vstdlib;
// Used for our paint traverse hook
#if defined(CATHOOK_GFX_SURFACE)
extern SourceSo vguimatsurface;
#endif
} // namespace modules::source::hacks::sharedobj