mirror of
https://github.com/libretro/RetroArch
synced 2025-02-03 08:54:13 +00:00
Rename rewind.c to state_manager
This commit is contained in:
parent
f8a7154557
commit
372e7d94cd
@ -157,7 +157,7 @@ OBJ += frontend/frontend.o \
|
|||||||
dynamic.o \
|
dynamic.o \
|
||||||
cores/dynamic_dummy.o \
|
cores/dynamic_dummy.o \
|
||||||
libretro-common/queues/message_queue.o \
|
libretro-common/queues/message_queue.o \
|
||||||
rewind.o \
|
state_manager.o \
|
||||||
gfx/drivers_font_renderer/bitmapfont.o \
|
gfx/drivers_font_renderer/bitmapfont.o \
|
||||||
input/input_autodetect.o \
|
input/input_autodetect.o \
|
||||||
input/input_joypad_driver.o \
|
input/input_joypad_driver.o \
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
#include "screenshot.h"
|
#include "screenshot.h"
|
||||||
#include "msg_hash.h"
|
#include "msg_hash.h"
|
||||||
#include "retroarch.h"
|
#include "retroarch.h"
|
||||||
#include "rewind.h"
|
#include "state_manager.h"
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#include "ui/ui_companion_driver.h"
|
#include "ui/ui_companion_driver.h"
|
||||||
#include "list_special.h"
|
#include "list_special.h"
|
||||||
@ -1183,7 +1183,7 @@ bool event_cmd_ctl(enum event_command cmd, void *data)
|
|||||||
#ifdef HAVE_NETPLAY
|
#ifdef HAVE_NETPLAY
|
||||||
if (!netplay_driver_ctl(RARCH_NETPLAY_CTL_IS_DATA_INITED, NULL))
|
if (!netplay_driver_ctl(RARCH_NETPLAY_CTL_IS_DATA_INITED, NULL))
|
||||||
#endif
|
#endif
|
||||||
init_rewind();
|
state_manager_event_init();
|
||||||
break;
|
break;
|
||||||
case EVENT_CMD_REWIND_TOGGLE:
|
case EVENT_CMD_REWIND_TOGGLE:
|
||||||
if (settings->rewind_enable)
|
if (settings->rewind_enable)
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#include "core.h"
|
#include "core.h"
|
||||||
#include "general.h"
|
#include "general.h"
|
||||||
#include "msg_hash.h"
|
#include "msg_hash.h"
|
||||||
#include "rewind.h"
|
#include "state_manager.h"
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#include "gfx/video_driver.h"
|
#include "gfx/video_driver.h"
|
||||||
#include "audio/audio_driver.h"
|
#include "audio/audio_driver.h"
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
#include "../video_shader_parse.h"
|
#include "../video_shader_parse.h"
|
||||||
#include "../../core.h"
|
#include "../../core.h"
|
||||||
#include "../../dynamic.h"
|
#include "../../dynamic.h"
|
||||||
#include "../../rewind.h"
|
#include "../../state_manager.h"
|
||||||
#include "../video_state_tracker.h"
|
#include "../video_state_tracker.h"
|
||||||
|
|
||||||
#include "../drivers/gl_shaders/pipeline_xmb_ribbon_simple.cg.h"
|
#include "../drivers/gl_shaders/pipeline_xmb_ribbon_simple.cg.h"
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
#include "shader_glsl.h"
|
#include "shader_glsl.h"
|
||||||
#include "../video_state_tracker.h"
|
#include "../video_state_tracker.h"
|
||||||
#include "../../dynamic.h"
|
#include "../../dynamic.h"
|
||||||
#include "../../rewind.h"
|
#include "../../state_manager.h"
|
||||||
#include "../../core.h"
|
#include "../../core.h"
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
#include "../video_shader_parse.h"
|
#include "../video_shader_parse.h"
|
||||||
#include "../d3d/d3d.h"
|
#include "../d3d/d3d.h"
|
||||||
#include "../../rewind.h"
|
#include "../../state_manager.h"
|
||||||
|
|
||||||
#include "../drivers/d3d_shaders/opaque.hlsl.d3d9.h"
|
#include "../drivers/d3d_shaders/opaque.hlsl.d3d9.h"
|
||||||
|
|
||||||
|
@ -668,9 +668,9 @@ CONFIGURATION
|
|||||||
#include "../configuration.c"
|
#include "../configuration.c"
|
||||||
|
|
||||||
/*============================================================
|
/*============================================================
|
||||||
REWIND
|
STATE MANAGER
|
||||||
============================================================ */
|
============================================================ */
|
||||||
#include "../rewind.c"
|
#include "../state_manager.c"
|
||||||
|
|
||||||
/*============================================================
|
/*============================================================
|
||||||
FRONTEND
|
FRONTEND
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
#include "movie.h"
|
#include "movie.h"
|
||||||
#include "retroarch.h"
|
#include "retroarch.h"
|
||||||
#include "runloop.h"
|
#include "runloop.h"
|
||||||
#include "rewind.h"
|
#include "state_manager.h"
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#include "list_special.h"
|
#include "list_special.h"
|
||||||
#include "audio/audio_driver.h"
|
#include "audio/audio_driver.h"
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
#include <retro_inline.h>
|
#include <retro_inline.h>
|
||||||
|
|
||||||
#include "rewind.h"
|
#include "state_manager.h"
|
||||||
#include "configuration.h"
|
#include "configuration.h"
|
||||||
#include "msg_hash.h"
|
#include "msg_hash.h"
|
||||||
#include "movie.h"
|
#include "movie.h"
|
||||||
@ -132,7 +132,6 @@ static size_t state_manager_raw_maxsize(size_t uncomp)
|
|||||||
static void *state_manager_raw_alloc(size_t len, uint16_t uniq)
|
static void *state_manager_raw_alloc(size_t len, uint16_t uniq)
|
||||||
{
|
{
|
||||||
size_t len16 = (len + sizeof(uint16_t) - 1) & -sizeof(uint16_t);
|
size_t len16 = (len + sizeof(uint16_t) - 1) & -sizeof(uint16_t);
|
||||||
|
|
||||||
uint16_t *ret = (uint16_t*)calloc(len16 + sizeof(uint16_t) * 4 + 16, 1);
|
uint16_t *ret = (uint16_t*)calloc(len16 + sizeof(uint16_t) * 4 + 16, 1);
|
||||||
|
|
||||||
/* Force in a different byte at the end, so we don't need to check
|
/* Force in a different byte at the end, so we don't need to check
|
||||||
@ -621,7 +620,7 @@ static void state_manager_capacity(state_manager_t *state,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void init_rewind(void)
|
void state_manager_event_init(void)
|
||||||
{
|
{
|
||||||
retro_ctx_serialize_info_t serial_info;
|
retro_ctx_serialize_info_t serial_info;
|
||||||
retro_ctx_size_info_t info;
|
retro_ctx_size_info_t info;
|
@ -15,8 +15,8 @@
|
|||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __RARCH_REWIND_H
|
#ifndef __STATE_MANAGER_H
|
||||||
#define __RARCH_REWIND_H
|
#define __STATE_MANAGER_H
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -28,12 +28,12 @@ extern "C" {
|
|||||||
|
|
||||||
typedef struct state_manager state_manager_t;
|
typedef struct state_manager state_manager_t;
|
||||||
|
|
||||||
void init_rewind(void);
|
|
||||||
|
|
||||||
bool state_manager_frame_is_reversed(void);
|
bool state_manager_frame_is_reversed(void);
|
||||||
|
|
||||||
void state_manager_event_deinit(void);
|
void state_manager_event_deinit(void);
|
||||||
|
|
||||||
|
void state_manager_event_init(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* check_rewind:
|
* check_rewind:
|
||||||
* @pressed : was rewind key pressed or held?
|
* @pressed : was rewind key pressed or held?
|
Loading…
x
Reference in New Issue
Block a user