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,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 TIME_TO_TICKS(dt) ((int) (0.5f + (float) (dt) / TICK_INTERVAL))
|
||||||
#define TICKS_TO_TIME(t) (TICK_INTERVAL * (t))
|
#define TICKS_TO_TIME(t) (TICK_INTERVAL * (t))
|
||||||
#define ROUND_TO_TICKS(t) (TICK_INTERVAL * TIME_TO_TICKS(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));
|
__asm__ volatile ("mov %%ebp, %0" : "=r"(fp));
|
||||||
bSendPackets = reinterpret_cast<bool *>(**fp - 8);
|
bSendPackets = reinterpret_cast<bool *>(**fp - 8);
|
||||||
|
|
||||||
g_Settings.is_create_move = true;
|
g_Settings.is_create_move = true;
|
||||||
|
Reference in New Issue
Block a user