4 * JNI wrappers for operating the emulator from Java.
6 * Copyright (c) 2012 Nathan Keynes.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
20 #include <android/log.h>
22 #include "dreamcast.h"
29 #include "aica/audio.h"
30 #include "maple/maple.h"
31 #include "vmu/vmulist.h"
33 JNIEXPORT void JNICALL Java_org_lxdream_Dreamcast_init(JNIEnv * env, jobject obj, jint width, jint height)
35 lxdream_make_config_dir( );
36 lxdream_load_config( );
42 audio_init_driver(NULL);
43 display_driver_t display_driver = get_display_driver_by_name(NULL);
44 display_set_driver(display_driver);
49 INFO( "%s! ready...", APP_NAME );
52 JNIEXPORT void JNICALL Java_org_lxdream_Dreamcast_setViewSize(JNIEnv * env, jobject obj, jint width, jint height)
57 JNIEXPORT void JNICALL Java_org_lxdream_Dreamcast_run(JNIEnv * env, jobject obj)
62 JNIEXPORT void JNICALL Java_org_lxdream_Dreamcast_stop(JNIEnv * env, jobject obj)
67 gboolean gui_parse_cmdline( int *argc, char **argv[] )
72 gboolean gui_init( gboolean debug, gboolean fullscreen )
77 void gui_main_loop( gboolean run ) {
83 gboolean gui_error_dialog( const char *fmt, ... )
88 void gui_update_state()
92 void gui_set_use_grab( gboolean grab )
96 void gui_update_io_activity( io_activity_type activity, gboolean active )
100 void gui_do_later( do_later_callback_t func )
.