CreateMove.cpp: ensure assembly code doesn't get optimized away

Though it doesn't fix crash with LTO compilation
This commit is contained in:
TotallyNotElite 2019-04-27 13:20:10 +02:00
parent af776b7d8d
commit 2d3663954b

View File

@ -129,8 +129,8 @@ DEFINE_HOOKED_METHOD(CreateMove, bool, void *this_, float input_sample_time, CUs
#define TIME_TO_TICKS(dt) ((int) (0.5f + (float) (dt) / TICK_INTERVAL))
#define TICKS_TO_TIME(t) (TICK_INTERVAL * (t))
#define ROUND_TO_TICKS(t) (TICK_INTERVAL * TIME_TO_TICKS(t))
uintptr_t **fp;
__asm__ volatile("mov %%ebp, %0" : "=r"(fp));
volatile uintptr_t **fp;
__asm__ volatile ("mov %%ebp, %0" : "=r"(fp));
bSendPackets = reinterpret_cast<bool *>(**fp - 8);
g_Settings.is_create_move = true;