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/init0.cpp
2020-08-04 13:13:01 -04:00

55 lines
1.3 KiB
C++

/*
* Init file for the source engine module
* Please keep everything in the module in its own namespace!
*
*/
#include "../../util/logging.hpp" // So we can log
#include "util/debug.hpp" //Uncomment for dev use
// Internal module stuff
#include "features/features.hpp"
#include "framework/framework.hpp"
#include "hacks/hacks.hpp" // So we can init the hack
#include "util/util.hpp"
// Potentially loadable modules for source
#include "../xlib/input.hpp"
#include "util/surface.hpp"
#include "init.hpp"
namespace modules::source {
// The startup function for the module
void Init() {
debug_log.log("Begin Source engine module init...");
debug_log.log("Begin Hacking...");
hacks::Init();
debug_log.log("Loading Framework Interfaces...");
framework::Init();
debug_log.log("Loading Modular Cheats...");
features::Init();
debug_log.log("Loading Util...");
util::Init();
// Put possible graphics modules here.
debug_log.log("Loading graphics module...");
#if defined(CATHOOK_GFX_SURFACE)
valvesurface::Init();
#endif
// Input modules
debug_log.log("Loading input module...");
#if defined(CATHOOK_INP_XLIB)
xlib::InitInput();
#endif
debug_log.log("Source engine module init!");
}
} // namespace modules::source