summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9a066f2)
raw | patch | inline | side by side (parent: 9a066f2)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Tue, 15 Jun 2021 19:02:53 +0000 (22:02 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Tue, 29 Jun 2021 09:51:12 +0000 (12:51 +0300) |
src/game/Doom2DF.lpr | patch | blob | history |
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