1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/gui_jni.c Sat Feb 25 21:30:49 2012 +1000
1.7 + * JNI wrappers for operating the emulator from Java.
1.9 + * Copyright (c) 2012 Nathan Keynes.
1.11 + * This program is free software; you can redistribute it and/or modify
1.12 + * it under the terms of the GNU General Public License as published by
1.13 + * the Free Software Foundation; either version 2 of the License, or
1.14 + * (at your option) any later version.
1.16 + * This program is distributed in the hope that it will be useful,
1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.19 + * GNU General Public License for more details.
1.23 +#include <android/log.h>
1.24 +#include <libisofs.h>
1.25 +#include "dreamcast.h"
1.27 +#include "config.h"
1.28 +#include "display.h"
1.29 +#include "gdlist.h"
1.30 +#include "hotkeys.h"
1.31 +#include "serial.h"
1.32 +#include "aica/audio.h"
1.33 +#include "maple/maple.h"
1.34 +#include "vmu/vmulist.h"
1.36 +JNIEXPORT void JNICALL Java_org_lxdream_Dreamcast_init(JNIEnv * env, jobject obj, jint width, jint height)
1.38 + lxdream_make_config_dir( );
1.39 + lxdream_load_config( );
1.41 + gdrom_list_init();
1.43 + dreamcast_init(1);
1.45 + audio_init_driver(NULL);
1.46 + display_driver_t display_driver = get_display_driver_by_name(NULL);
1.47 + display_set_driver(display_driver);
1.51 + maple_reattach_all();
1.52 + INFO( "%s! ready...", APP_NAME );
1.55 +JNIEXPORT void JNICALL Java_org_lxdream_Dreamcast_setViewSize(JNIEnv * env, jobject obj, jint width, jint height)
1.60 +JNIEXPORT void JNICALL Java_org_lxdream_Dreamcast_run(JNIEnv * env, jobject obj)
1.65 +JNIEXPORT void JNICALL Java_org_lxdream_Dreamcast_stop(JNIEnv * env, jobject obj)
1.70 +gboolean gui_parse_cmdline( int *argc, char **argv[] )
1.75 +gboolean gui_init( gboolean debug, gboolean fullscreen )
1.80 +void gui_main_loop( gboolean run ) {
1.86 +gboolean gui_error_dialog( const char *fmt, ... )
1.91 +void gui_update_state()
1.95 +void gui_set_use_grab( gboolean grab )
1.99 +void gui_update_io_activity( io_activity_type activity, gboolean active )
1.103 +void gui_do_later( do_later_callback_t func )