(Android) remove Android save state for now - unused and will

probably reimplement it later
This commit is contained in:
twinaphex 2012-10-31 18:10:38 +01:00
parent c0b8f28484
commit 4d99d93df0
3 changed files with 0 additions and 17 deletions

View File

@ -1,23 +1,14 @@
#ifndef _ANDROID_GENERAL_H #ifndef _ANDROID_GENERAL_H
#define _ANDROID_GENERAL_H #define _ANDROID_GENERAL_H
#include <android/sensor.h>
#include <android_native_app_glue.h> #include <android_native_app_glue.h>
#include "../../../boolean.h" #include "../../../boolean.h"
struct saved_state
{
float angle;
int32_t x;
int32_t y;
};
struct droid struct droid
{ {
struct android_app* app; struct android_app* app;
bool init_quit; bool init_quit;
bool window_inited; bool window_inited;
struct saved_state state;
}; };
extern struct droid g_android; extern struct droid g_android;

View File

@ -38,9 +38,6 @@ static void engine_handle_cmd(struct android_app* app, int32_t cmd)
case APP_CMD_SAVE_STATE: case APP_CMD_SAVE_STATE:
RARCH_LOG("engine_handle_cmd: APP_CMD_SAVE_STATE.\n"); RARCH_LOG("engine_handle_cmd: APP_CMD_SAVE_STATE.\n");
// The system has asked us to save our current state. Do so. // The system has asked us to save our current state. Do so.
g_android.app->savedState = malloc(sizeof(struct saved_state));
*((struct saved_state*)g_android.app->savedState) = g_android.state;
g_android.app->savedStateSize = sizeof(struct saved_state);
break; break;
case APP_CMD_INIT_WINDOW: case APP_CMD_INIT_WINDOW:
RARCH_LOG("engine_handle_cmd: APP_CMD_INIT_WINDOW.\n"); RARCH_LOG("engine_handle_cmd: APP_CMD_INIT_WINDOW.\n");
@ -138,9 +135,6 @@ void android_main(struct android_app* state)
g_android.app->onAppCmd = engine_handle_cmd; g_android.app->onAppCmd = engine_handle_cmd;
if (g_android.app->savedState != NULL) // We are starting with a previous saved state; restore from it.
g_android.state = *(struct saved_state*)g_android.app->savedState;
int argc = 0; int argc = 0;
char *argv[MAX_ARGS] = {NULL}; char *argv[MAX_ARGS] = {NULL};

View File

@ -114,8 +114,6 @@ static bool gfx_ctx_init(void)
!eglQuerySurface(g_egl_dpy, g_egl_surf, EGL_HEIGHT, &height)) !eglQuerySurface(g_egl_dpy, g_egl_surf, EGL_HEIGHT, &height))
goto error; goto error;
g_android.state.angle = 0;
return true; return true;
error: error: