]> git.lizzy.rs Git - minetest.git/blobdiff - src/porting_android.h
Allow ObjDefManager instances to be cloned
[minetest.git] / src / porting_android.h
index bfdadfbff02feb4b9fd22cd014f1fefe17e7e6a7..60eb2a9c0794ca145d60661e10f938ac1d9963a7 100644 (file)
@@ -16,8 +16,8 @@ You should have received a copy of the GNU Lesser General Public License along
 with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
-#ifndef __PORTING_ANDROID_H__
-#define __PORTING_ANDROID_H__
+
+#pragma once
 
 #ifndef __ANDROID__
 #error this include has to be included on android port only!
@@ -43,15 +43,10 @@ void initAndroid();
 void cleanupAndroid();
 
 /**
- * set storage dir on external sdcard#
- * @param lJNIEnv environment from android
- */
-void setExternalStorageDir(JNIEnv* lJNIEnv);
-
-/**
- * use java function to copy media from assets to external storage
+ * Initializes path_* variables for Android
+ * @param env Android JNI environment
  */
-void copyAssets();
+void initializePathsAndroid();
 
 /**
  * show text input dialog in java
@@ -76,6 +71,9 @@ int getInputDialogState();
  */
 std::string getInputDialogValue();
 
-}
-
+#ifndef SERVER
+float getDisplayDensity();
+v2u32 getDisplaySize();
 #endif
+
+}