project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/EngineProtocol/PascalExports.java
equal
deleted
inserted
replaced
17 */ |
17 */ |
18 |
18 |
19 package org.hedgewars.hedgeroid.EngineProtocol; |
19 package org.hedgewars.hedgeroid.EngineProtocol; |
20 |
20 |
21 public class PascalExports { |
21 public class PascalExports { |
|
22 public static Object engineMutex = new Object(); |
22 |
23 |
23 static{ |
24 static{ |
24 System.loadLibrary("SDL"); |
25 System.loadLibrary("SDL"); |
25 System.loadLibrary("SDL_image"); |
26 System.loadLibrary("SDL_image"); |
26 System.loadLibrary("mikmod"); |
27 System.loadLibrary("mikmod"); |
30 System.loadLibrary("lua5.1"); |
31 System.loadLibrary("lua5.1"); |
31 System.loadLibrary("hwengine"); |
32 System.loadLibrary("hwengine"); |
32 } |
33 } |
33 |
34 |
34 public static native int HWgetMaxNumberOfTeams(); |
35 public static native int HWgetMaxNumberOfTeams(); |
35 public static native int HWterminate(boolean b); |
36 private static native void HWGenLandPreview(int port); |
36 public static native int HWGenLandPreview(int port); |
37 |
|
38 public static void synchronizedGenLandPreview(int port) { |
|
39 synchronized(engineMutex) { |
|
40 HWGenLandPreview(port); |
|
41 } |
|
42 } |
37 |
43 |
38 public static Object engineMutex = new Object(); |
|
39 } |
44 } |