CreateMove.cpp: ensure assembly code doesn't get optimized away
Though it doesn't fix crash with LTO compilation
This commit is contained in:
parent
af776b7d8d
commit
2d3663954b
@ -129,7 +129,7 @@ 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;
|
||||
volatile uintptr_t **fp;
|
||||
__asm__ volatile ("mov %%ebp, %0" : "=r"(fp));
|
||||
bSendPackets = reinterpret_cast<bool *>(**fp - 8);
|
||||
|
||||
|
Reference in New Issue
Block a user