summaryrefslogtreecommitdiff
path: root/src/pw/cloudef/rpg/Easyrpg.java
blob: 6c8d3de8f17d37d846b255d15765124f5a2eea29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package pw.cloudef.rpg;
import android.os.Bundle;
import android.system.Os;

public class Easyrpg extends Base {
   protected String[] getLibraries() {
      return new String[] {
         "easyrpg"
      };
   }

   protected String[] getArguments() {
      return new String[] {
         "--fullscreen",
         "--encoding""932"
      };
   }

   protected String getRtpPath() {
      return "rtp";
   }

   protected void onCreate(Bundle savedInstanceState) {
      try {
         Os.setenv("COMPAT_PHYSFS_FILE""game.zip"true);
         Os.setenv("COMPAT_PHYSFS_FIND""RPG_RT.exe"true);
      } catch (Exception e) {}
      super.onCreate(savedInstanceState);
   }
}