Rename rewind.c to state_manager

This commit is contained in:
twinaphex 2016-05-09 07:14:10 +02:00
parent f8a7154557
commit 372e7d94cd
10 changed files with 16 additions and 17 deletions

View File

@ -157,7 +157,7 @@ OBJ += frontend/frontend.o \
dynamic.o \
cores/dynamic_dummy.o \
libretro-common/queues/message_queue.o \
rewind.o \
state_manager.o \
gfx/drivers_font_renderer/bitmapfont.o \
input/input_autodetect.o \
input/input_joypad_driver.o \

View File

@ -37,7 +37,7 @@
#include "screenshot.h"
#include "msg_hash.h"
#include "retroarch.h"
#include "rewind.h"
#include "state_manager.h"
#include "system.h"
#include "ui/ui_companion_driver.h"
#include "list_special.h"
@ -1183,7 +1183,7 @@ bool event_cmd_ctl(enum event_command cmd, void *data)
#ifdef HAVE_NETPLAY
if (!netplay_driver_ctl(RARCH_NETPLAY_CTL_IS_DATA_INITED, NULL))
#endif
init_rewind();
state_manager_event_init();
break;
case EVENT_CMD_REWIND_TOGGLE:
if (settings->rewind_enable)

View File

@ -30,7 +30,7 @@
#include "core.h"
#include "general.h"
#include "msg_hash.h"
#include "rewind.h"
#include "state_manager.h"
#include "system.h"
#include "gfx/video_driver.h"
#include "audio/audio_driver.h"

View File

@ -40,7 +40,7 @@
#include "../video_shader_parse.h"
#include "../../core.h"
#include "../../dynamic.h"
#include "../../rewind.h"
#include "../../state_manager.h"
#include "../video_state_tracker.h"
#include "../drivers/gl_shaders/pipeline_xmb_ribbon_simple.cg.h"

View File

@ -27,7 +27,7 @@
#include "shader_glsl.h"
#include "../video_state_tracker.h"
#include "../../dynamic.h"
#include "../../rewind.h"
#include "../../state_manager.h"
#include "../../core.h"
#ifdef HAVE_CONFIG_H

View File

@ -20,7 +20,7 @@
#include "../video_shader_parse.h"
#include "../d3d/d3d.h"
#include "../../rewind.h"
#include "../../state_manager.h"
#include "../drivers/d3d_shaders/opaque.hlsl.d3d9.h"

View File

@ -668,9 +668,9 @@ CONFIGURATION
#include "../configuration.c"
/*============================================================
REWIND
STATE MANAGER
============================================================ */
#include "../rewind.c"
#include "../state_manager.c"
/*============================================================
FRONTEND

View File

@ -44,7 +44,7 @@
#include "movie.h"
#include "retroarch.h"
#include "runloop.h"
#include "rewind.h"
#include "state_manager.h"
#include "system.h"
#include "list_special.h"
#include "audio/audio_driver.h"

View File

@ -21,7 +21,7 @@
#include <retro_inline.h>
#include "rewind.h"
#include "state_manager.h"
#include "configuration.h"
#include "msg_hash.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)
{
size_t len16 = (len + sizeof(uint16_t) - 1) & -sizeof(uint16_t);
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
@ -621,7 +620,7 @@ static void state_manager_capacity(state_manager_t *state,
}
#endif
void init_rewind(void)
void state_manager_event_init(void)
{
retro_ctx_serialize_info_t serial_info;
retro_ctx_size_info_t info;

View File

@ -15,8 +15,8 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __RARCH_REWIND_H
#define __RARCH_REWIND_H
#ifndef __STATE_MANAGER_H
#define __STATE_MANAGER_H
#ifdef __cplusplus
extern "C" {
@ -28,12 +28,12 @@ extern "C" {
typedef struct state_manager state_manager_t;
void init_rewind(void);
bool state_manager_frame_is_reversed(void);
void state_manager_event_deinit(void);
void state_manager_event_init(void);
/**
* check_rewind:
* @pressed : was rewind key pressed or held?