-mstructure-size-boundary=32 -falign-functions=32 -falign-loops \
-DMAEMO -DMAEMO_CHANGES $(shell pkg-config --cflags hildon-1)
-#EXTRA_CFLAGS += -Imaemo/gtk-2.0 -Imaemo/hildon -Imaemo/glib-2.0 -Imaemo/cairo \
- -Imaemo/pango-1.0 -Imaemo/atk-1.0 -DMAEMO -DMAEMO_CHANGES
+#EXTRA_CFLAGS += -Imaemo/i/gtk-2.0 -Imaemo/i/hildon -Imaemo/i/glib-2.0 -Imaemo/i/cairo \
+ -Imaemo/i/pango-1.0 -Imaemo/i/atk-1.0 -DMAEMO -DMAEMO_CHANGES
include Makefile
#include <gtk/gtk.h>
#include <glib.h>
#include <stdlib.h>
+#include <stdint.h>
#include <unistd.h>
#include <hildon/hildon.h>
#include "plugin_lib.h"
+#include "../libpcsxcore/psemu_plugin_defs.h"
#define X_RES 800
#define Y_RES 480
static GtkWidget *window, *drawing;
void *pl_fbdev_buf;
-int keystate;
+int in_type = PSE_PAD_TYPE_STANDARD;
+int in_keystate, in_a1[2], in_a2[2];
static int keymap[65536];
if (event->type == GDK_KEY_PRESS) {
if (psxkey1 >= 0)
- keystate |= 1 << psxkey1;
+ in_keystate |= 1 << psxkey1;
if (psxkey2 >= 0)
- keystate |= 1 << psxkey2;
+ in_keystate |= 1 << psxkey2;
}
else if (event->type == GDK_KEY_RELEASE) {
if (psxkey1 >= 0)
- keystate &= ~(1 << psxkey1);
+ in_keystate &= ~(1 << psxkey1);
if (psxkey2 >= 0)
- keystate &= ~(1 << psxkey2);
+ in_keystate &= ~(1 << psxkey2);
}
}
void *pl_fbdev_set_mode(int w, int h, int bpp)
{
if (w <= 0 || h <= 0)
- return;
+ return pl_fbdev_buf;
if (image) gdk_image_destroy(image);
image = gdk_image_new( GDK_IMAGE_FASTEST, gdk_visual_get_system(), w, h );
void *pl_fbdev_flip(void)
{
gtk_widget_queue_draw (drawing);
+ return pl_fbdev_buf;
}
void pl_frame_limit(void)
int pl_fbdev_open(void)
{
+ return 0;
}
static void pl_get_layer_pos(int *x, int *y, int *w, int *h)
#include <stdio.h>
#include <string.h>
-#include <stdarg.h>
-#include <dlfcn.h>
-#include <sys/stat.h>
-#include <sys/types.h>
+#include <stdint.h>
#include <unistd.h>
-#include <signal.h>
#include "main.h"
#include "plugin.h"
#include "../libpcsxcore/misc.h"
-#include "../plugins/cdrcimg/cdrcimg.h"
+#include "../libpcsxcore/new_dynarec/new_dynarec.h"
// from softgpu plugin
extern int iUseDither;
extern int iSPUIRQWait;
extern int iUseTimer;
+enum sched_action emu_action;
+void do_emu_action(void);
+
static void ChangeWorkingDirectory(char *exe)
{
- s8 exepath[1024];
- s8* s;
- sprintf(exepath, "%s", exe);
+ char exepath[1024];
+ char *s;
+ snprintf(exepath, sizeof(exepath), "%s", exe);
s = strrchr(exepath, '/');
if (s != NULL) {
*s = '\0';
char path[MAXPATHLEN];
const char *cdfile = NULL;
int loadst = 0;
- void *tmp;
int i;
strcpy(Config.BiosDir, "/home/user/MyDocs");
return 0;
}
- psxCpu->Execute();
+ while (1)
+ {
+ stop = 0;
+ emu_action = SACTION_NONE;
+
+ psxCpu->Execute();
+ if (emu_action != SACTION_NONE)
+ do_emu_action();
+ }
return 0;
}