filename | android/src/org/lxdream/LxdreamActivity.java |
changeset | 1241:74f8e11ab4b8 |
prev | 1239:be3121267597 |
next | 1245: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 |
file | annotate | diff | log | raw |
1.1 --- a/android/src/org/lxdream/LxdreamActivity.java Sat Feb 25 21:30:49 2012 +10001.2 +++ b/android/src/org/lxdream/LxdreamActivity.java Tue Feb 28 17:27:39 2012 +10001.3 @@ -19,6 +19,7 @@1.4 package org.lxdream;1.6 import android.app.Activity;1.7 +import android.content.Context;1.8 import android.os.Bundle;1.9 import android.util.Log;1.10 import android.view.WindowManager;1.11 @@ -32,7 +33,9 @@1.12 @Override1.13 protected void onCreate(Bundle bundle) {1.14 super.onCreate(bundle);1.15 - view = new LxdreamView(getApplication());1.16 + Context ctx = getApplication();1.17 + Dreamcast.init( ctx.getFilesDir().toString() );1.18 + view = new LxdreamView(ctx);1.19 setContentView(view);1.20 }
.