Cleanups
This commit is contained in:
parent
2c7d5ad944
commit
b45eb0c76d
14
retroarch.c
14
retroarch.c
|
@ -20038,15 +20038,6 @@ void streaming_set_state(bool state)
|
||||||
p_rarch->streaming_enable = state;
|
p_rarch->streaming_enable = state;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool video_driver_gpu_record_init(struct rarch_state *p_rarch,
|
|
||||||
unsigned size)
|
|
||||||
{
|
|
||||||
p_rarch->video_driver_record_gpu_buffer = (uint8_t*)malloc(size);
|
|
||||||
if (!p_rarch->video_driver_record_gpu_buffer)
|
|
||||||
return false;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void video_driver_gpu_record_deinit(struct rarch_state *p_rarch)
|
static void video_driver_gpu_record_deinit(struct rarch_state *p_rarch)
|
||||||
{
|
{
|
||||||
if (p_rarch->video_driver_record_gpu_buffer)
|
if (p_rarch->video_driver_record_gpu_buffer)
|
||||||
|
@ -20232,7 +20223,7 @@ static bool recording_init(
|
||||||
vp.width, vp.height);
|
vp.width, vp.height);
|
||||||
|
|
||||||
gpu_size = vp.width * vp.height * 3;
|
gpu_size = vp.width * vp.height * 3;
|
||||||
if (!video_driver_gpu_record_init(p_rarch, gpu_size))
|
if (!(p_rarch->video_driver_record_gpu_buffer = (uint8_t*)malloc(gpu_size)))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -37505,6 +37496,7 @@ static enum runloop_state runloop_check_state(
|
||||||
trig_frameadvance = false;
|
trig_frameadvance = false;
|
||||||
|
|
||||||
pause_pressed = BIT256_GET(current_bits, RARCH_PAUSE_TOGGLE);
|
pause_pressed = BIT256_GET(current_bits, RARCH_PAUSE_TOGGLE);
|
||||||
|
|
||||||
if (!p_rarch->runloop_paused)
|
if (!p_rarch->runloop_paused)
|
||||||
{
|
{
|
||||||
/* limit pause to approximately three times per second (depending on core framerate) */
|
/* limit pause to approximately three times per second (depending on core framerate) */
|
||||||
|
@ -37515,10 +37507,8 @@ static enum runloop_state runloop_check_state(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
unpaused_frames = 0;
|
unpaused_frames = 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue