summaryrefslogtreecommitdiff
path: root/gmod/frame_stage_notify.cpp
diff options
context:
space:
mode:
authorJustSomePwner <crotchyalt@gmail.com>2018-08-30 14:01:54 +0200
committerJustSomePwner <crotchyalt@gmail.com>2018-08-30 14:01:54 +0200
commit7ccb819f867493f8ec202ea3b39c94c198c64584 (patch)
tree94622e61af0ff359e3d6689cf274d74f60b2492a /gmod/frame_stage_notify.cpp
parent564d979b79e8a5aaa5014eba0ecd36c61575934f (diff)
first
Diffstat (limited to 'gmod/frame_stage_notify.cpp')
-rw-r--r--gmod/frame_stage_notify.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/gmod/frame_stage_notify.cpp b/gmod/frame_stage_notify.cpp
new file mode 100644
index 0000000..c371eb0
--- /dev/null
+++ b/gmod/frame_stage_notify.cpp
@@ -0,0 +1,25 @@
+#include "hooks.hpp"
+#include "context.hpp"
+#include "settings.hpp"
+#include "base_cheat.hpp"
+
+
+void __fastcall hooks::frame_stage_notify( void* ecx_, void* edx_, ClientFrameStage_t stage ) {
+ static auto frame_stage_notify_o = g_gmod.m_chl->get_old_function< decltype( &hooks::frame_stage_notify ) >( 35 );
+ if ( g_gmod.m_panic ) return frame_stage_notify_o( ecx_, edx_, stage );
+
+ g_ctx.m_stage = stage;
+
+ switch( stage ) {
+ case FRAME_NET_UPDATE_START:
+ break;
+ case FRAME_NET_UPDATE_POSTDATAUPDATE_START:
+ break;
+ case FRAME_RENDER_START:
+ break;
+ case FRAME_RENDER_END:
+ break;
+ }
+
+ frame_stage_notify_o( ecx_, edx_, stage );
+} \ No newline at end of file