diff --git a/src/game/Doom2DF.lpr b/src/game/Doom2DF.lpr
index 74354e0ea4fe5bed8ea7a24ef93164ab1c37ea75..5911994cb9576bfe00be572340c56c474ee2e3b5 100644 (file)
--- a/src/game/Doom2DF.lpr
+++ b/src/game/Doom2DF.lpr
uses
{$IFDEF ANDROID}
- ctypes,
+ ctypes, jni,
{$ENDIF}
{$IFDEF UNIX}
cthreads, BaseUnix,
result := 0
end;
- exports SDL_main;
+ function JNI_OnLoad (vm: PJavaVM; reserved: pointer): JInt; cdecl;
+ begin
+ result:= JNI_VERSION_1_6;
+ end;
+
+ procedure JNI_OnUnload(vm: PJavaVM; reserved: pointer); cdecl;
+ begin
+ end;
+
+ // DONT REMOVE JNI FUNCTIONS. SPECIAL HANDLING BY FPC.
+ exports SDL_main name 'SDL_main';
+ exports JNI_OnLoad name 'JNI_OnLoad';
+ exports JNI_OnUnload name 'JNI_Unload';
{$ELSE}
begin
EntryPoint