hedgewars/hwLibrary.pas
changeset 7500 6253cae96f21
parent 7083 5339aba29571
child 7508 763d3961400b
--- 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',