summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c55b539)
raw | patch | inline | side by side (parent: c55b539)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Sat, 4 Mar 2017 09:56:59 +0000 (12:56 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Sat, 4 Mar 2017 09:56:59 +0000 (12:56 +0300) |
14 files changed:
mps/.gitignore | [new file with mode: 0644] | patch | blob |
mps/README.txt | [deleted file] | patch | blob | history |
mps/make.sh | [new file with mode: 0755] | patch | blob |
mps/src/F.java | [moved from mps/F.java with 100% similarity] | patch | blob | history |
mps/src/FS.java | [moved from mps/FS.java with 100% similarity] | patch | blob | history |
mps/src/FW.java | [moved from mps/FW.java with 100% similarity] | patch | blob | history |
mps/src/H.java | [moved from mps/H.java with 100% similarity] | patch | blob | history |
mps/src/M.java | [new file with mode: 0644] | patch | blob |
mps/src/P.java | [moved from mps/P.java with 100% similarity] | patch | blob | history |
mps/src/RS.java | [moved from mps/RS.java with 100% similarity] | patch | blob | history |
mps/src/Real.java | [moved from mps/Real.java with 100% similarity] | patch | blob | history |
mps/src/S.java | [moved from mps/S.java with 100% similarity] | patch | blob | history |
mps/src/SM.java | [moved from mps/SM.java with 100% similarity] | patch | blob | history |
mps/src/javax/microedition/lcdui/game/GameCanvas.java | [new file with mode: 0644] | patch | blob |
diff --git a/mps/.gitignore b/mps/.gitignore
--- /dev/null
+++ b/mps/.gitignore
@@ -0,0 +1 @@
+*.class
diff --git a/mps/README.txt b/mps/README.txt
--- a/mps/README.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-For building this stubs, just call the java compiler and then the preverifier in the regular way.
-
-For example, assumbing you have both in the path, the WTK is in C:\WTK25, and that you have a subdirectory called "bin" to hold the preverified class output, for building the SM class you can do:
-
-javac -g:none -classpath c:\WTK25\lib\midpapi10.jar;c:\WTK25\lib\cldcapi10.jar;c:\WTK25\lib\wma11.jar -source 1.3 -target 1.1 SM.java
-preverify1.1 -nofp -nofinalize -nonative -classpath c:\WTK25\lib\midpapi10.jar;c:\WTK25\lib\cldcapi10.jar;c:\WTK25\lib\wma11.jar -d "bin" "SM"
-
-Enjoy,
-Javier Santo Domingo
diff --git a/mps/make.sh b/mps/make.sh
--- /dev/null
+++ b/mps/make.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+LIBDIR=/usr/share/java/microemulator/lib
+
+rm -rf classes stubs
+mkdir -p classes stubs
+javac -Xlint:-options -encoding ISO-8859-1 -g:none -d classes \
+ -classpath `find $LIBDIR -type f -name '*.jar' -printf '%p:'` \
+ -source 1.3 -target 1.1 `find src -type f -name '*.java'`
+rm -rf classes/javax
+proguard -injars classes -outjars stubs \
+ -libraryjars $LIBDIR/midpapi20.jar \
+ -libraryjars $LIBDIR/cldcapi11.jar \
+ -libraryjars $LIBDIR/microemu-jsr-120.jar \
+ -dontshrink -microedition -dontobfuscate \
+ -overloadaggressively -repackageclasses '' -allowaccessmodification \
+ -keep public class FW
+rm -rf classes stubs/M.class
diff --git a/mps/F.java b/mps/src/F.java
diff --git a/mps/FS.java b/mps/src/FS.java
diff --git a/mps/FW.java b/mps/src/FW.java
diff --git a/mps/H.java b/mps/src/H.java
diff --git a/mps/src/M.java b/mps/src/M.java
--- /dev/null
+++ b/mps/src/M.java
@@ -0,0 +1,23 @@
+/* Just a stub for stubs */
+
+import java.lang.*;
+import java.util.*;
+import javax.microedition.lcdui.*;
+import javax.microedition.lcdui.game.*;
+
+public class M extends GameCanvas implements Runnable {
+ public static Random RNG;
+ public static Image I;
+ public static M T;
+ public static Graphics G;
+ public static int KC;
+ public static int KP;
+ public static int[] IC;
+
+ public M() {}
+ public static void R() throws Exception {}
+ public void paint(Graphics g) {}
+ public void run() {}
+ public void keyPressed(int k) {}
+ public void keyReleased(int k) {}
+}
diff --git a/mps/P.java b/mps/src/P.java
diff --git a/mps/RS.java b/mps/src/RS.java
diff --git a/mps/Real.java b/mps/src/Real.java
diff --git a/mps/S.java b/mps/src/S.java
diff --git a/mps/SM.java b/mps/src/SM.java
diff --git a/mps/src/javax/microedition/lcdui/game/GameCanvas.java b/mps/src/javax/microedition/lcdui/game/GameCanvas.java
--- /dev/null
@@ -0,0 +1,7 @@
+/* Stub for stub for stubs O_o */
+
+package javax.microedition.lcdui.game;
+
+import javax.microedition.lcdui.*;
+
+public abstract class GameCanvas extends Canvas {}