engine: Added JNI-compatible function to start map generation
authorMedo <smaxein@googlemail.com>
Sat, 18 Aug 2012 00:18:43 +0200
changeset 7500 6253cae96f21
parent 7497 7e1d72fc03c7
child 7504 ed1d52c5aa94
engine: Added JNI-compatible function to start map generation
hedgewars/hwLibrary.pas
--- a/hedgewars/hwLibrary.pas	Wed Aug 15 23:40:10 2012 +0200
+++ b/hedgewars/hwLibrary.pas	Sat Aug 18 00:18:43 2012 +0200
@@ -99,10 +99,16 @@
     JNI_HW_versionInfoVersion := envderef^.NewStringUTF(env, PChar(cVersionString));
 end;
 
+function JNI_HW_GenLandPreview(env: PJNIEnv; c: JClass; port: JInt):JInt; cdecl;
+begin
+	GenLandPreview(port);
+	JNI_HW_GenLandPreview := port;
+end;
+
 exports
     JNI_HW_versionInfoNet name Java_Prefix+'HWversionInfoNetProto', 
     JNI_HW_versionInfoVersion name Java_Prefix+'HWversionInfoVersion', 
-    GenLandPreview name Java_Prefix + 'GenLandPreview',
+    JNI_HW_GenLandPreview name Java_Prefix + 'HWGenLandPreview',
     HW_getNumberOfweapons name Java_Prefix + 'HWgetNumberOfWeapons',
     HW_getMaxNumberOfHogs name Java_Prefix + 'HWgetMaxNumberOfHogs',
     HW_getMaxNumberOfTeams name Java_Prefix + 'HWgetMaxNumberOfTeams',