summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 71f50cd)
raw | patch | inline | side by side (parent: 71f50cd)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Tue, 15 Jun 2021 19:02:53 +0000 (22:02 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Fri, 9 Jun 2023 07:45:50 +0000 (10:45 +0300) |
src/game/Doom2DF.lpr | patch | blob | history |
diff --git a/src/game/Doom2DF.lpr b/src/game/Doom2DF.lpr
index ac4218ad9ec310efbd6ec98e2cb2f5a2af9b7ff0..cfa26f5637b384ae0ff4a27387fcbcbecd275f74 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