Search
lxdream.org :: lxdream/android/src/org/lxdream/Dreamcast.java
lxdream 0.9.1
released Jun 29
Download Now
filename android/src/org/lxdream/Dreamcast.java
changeset 1241:74f8e11ab4b8
prev1239:be3121267597
next1245:01e0020adf88
author nkeynes
date Tue Feb 28 17:27:39 2012 +1000 (12 years ago)
permissions -rw-r--r--
last change Pass the application home dir through to the native code, so we can use it
as the default data directory
view annotate diff log raw
     1 /**
     2  * $Id$
     3  * 
     4  * Main Lxdream activity 
     5  *
     6  * Copyright (c) 2011 Nathan Keynes.
     7  *
     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.
    12  *
    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.
    17  */
    19 package org.lxdream;
    21 public class Dreamcast {
    23      static {
    24          System.loadLibrary("lxdream");
    25      }
    27      /* Core emulation */
    28      public static native void init( String appHome );
    29      public static native void setViewSize(int width, int height);
    30      public static native void run();
    31      public static native void stop();
    32      /*
    33      public static native void start();
    34      public static native void run_slice();
    35      public static boolean canRun();
    36 */
    37      /* Save state management */
    38 /*     public static native boolean saveState( String filename );
    39      public static native boolean loadState( String filename );
    40      public static native boolean quickSave();
    41      public static native boolean quickLoad();
    42      public static native void setQuickState(int state);
    43   */   
    44      /* GD-Rom */
    45 /*     public static native boolean mount_disc( String filename );
    46      public static native void unmount_disc();
    47   */   
    48      /* ... */
    49 }
.