diff --git a/LICENSE.md b/LICENSE.md index 726f005e6..2e2eed918 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,7 +1,7 @@ MIT License =========== -Copyright (c) 2013-2024 Joshua Granick and other Lime contributors +Copyright (c) 2013-2025 Joshua Granick and other Lime contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/NOTICE.md b/NOTICE.md index a2f4b4de6..a806789eb 100644 --- a/NOTICE.md +++ b/NOTICE.md @@ -2,7 +2,7 @@ Notices ======= ### Lime -Copyright (c) 2013-2024 Joshua Granick and other Lime contributors +Copyright (c) 2013-2025 Joshua Granick and other Lime contributors This product bundles cairo 1.15.2, which is available under an "MPL 1.1" license. For details, see [project/lib/cairo/](project/lib). diff --git a/project/lib/custom/jpeg/jconfigint.h b/project/lib/custom/jpeg/jconfigint.h index 69767e917..632329a8b 100644 --- a/project/lib/custom/jpeg/jconfigint.h +++ b/project/lib/custom/jpeg/jconfigint.h @@ -23,10 +23,10 @@ #define VERSION "2.0.7" /* The size of `size_t', as computed by sizeof. */ -#if defined(RASPBERRYPI) -#define SIZEOF_SIZE_T 4 -#else +#if (__WORDSIZE == 64) || defined(_WIN64) #define SIZEOF_SIZE_T 8 +#else +#define SIZEOF_SIZE_T 4 #endif /* Define if your compiler has __builtin_ctzl() and sizeof(unsigned long) == sizeof(size_t). */ diff --git a/src/lime/tools/FlashHelper.hx b/src/lime/tools/FlashHelper.hx index bbae4fd0c..9cc436f85 100644 --- a/src/lime/tools/FlashHelper.hx +++ b/src/lime/tools/FlashHelper.hx @@ -167,7 +167,7 @@ class FlashHelper var frameData = frameDataWriter.getBytes(); - var snd:format.swf.Sound = + var snd:format.swf.Data.Sound = { sid: cid, format: SFMP3, @@ -255,7 +255,7 @@ class FlashHelper { var sampleCount = Std.int(wav.data.length / (hdr.bitsPerSample / 8)); - var snd:format.swf.Sound = + var snd:format.swf.Data.Sound = { sid: cid, format: SFLittleEndianUncompressed, diff --git a/src/lime/tools/Keystore.hx b/src/lime/tools/Keystore.hx index 878ba70a6..65a0a6f31 100644 --- a/src/lime/tools/Keystore.hx +++ b/src/lime/tools/Keystore.hx @@ -26,9 +26,9 @@ class Keystore if (keystore != null) { if (keystore.path != null && keystore.path != "") path = keystore.path; - if (keystore.password != null) path = keystore.password; - if (keystore.alias != null) path = keystore.alias; - if (keystore.aliasPassword != null) path = keystore.aliasPassword; + if (keystore.password != null) password = keystore.password; + if (keystore.alias != null) alias = keystore.alias; + if (keystore.aliasPassword != null) aliasPassword = keystore.aliasPassword; } } } diff --git a/templates/android/template/app/src/main/java/org/haxe/lime/GameActivity.java b/templates/android/template/app/src/main/java/org/haxe/lime/GameActivity.java index 3c28d7a6c..18a276f6e 100644 --- a/templates/android/template/app/src/main/java/org/haxe/lime/GameActivity.java +++ b/templates/android/template/app/src/main/java/org/haxe/lime/GameActivity.java @@ -3,6 +3,7 @@ package org.haxe.lime; import android.content.Context; import android.content.Intent; +import android.content.pm.PackageManager; import android.content.res.AssetManager; import android.net.Uri; import android.os.Build; @@ -16,6 +17,7 @@ import android.view.KeyCharacterMap; import android.view.KeyEvent; import android.view.View; import android.webkit.MimeTypeMap; +import android.Manifest; import org.haxe.extension.Extension; import org.libsdl.app.SDLActivity; @@ -110,7 +112,13 @@ public class GameActivity extends SDLActivity { super.onCreate (state); assetManager = getAssets (); - vibrator = (Vibrator)mSingleton.getSystemService (Context.VIBRATOR_SERVICE); + + if (checkSelfPermission(Manifest.permission.VIBRATE) == PackageManager.PERMISSION_GRANTED) { + + vibrator = (Vibrator)mSingleton.getSystemService (Context.VIBRATOR_SERVICE); + + } + handler = new Handler (); Extension.assetManager = assetManager; diff --git a/tools/CommandLineTools.hx b/tools/CommandLineTools.hx index a5a11fadb..f2c381759 100644 --- a/tools/CommandLineTools.hx +++ b/tools/CommandLineTools.hx @@ -1514,6 +1514,11 @@ class CommandLineTools target = System.hostPlatform; targetFlags.set("cpp", ""); + if (target == Platform.MAC) + { + overrides.haxedefs.set("macos", ""); + } + case "neko": target = System.hostPlatform; targetFlags.set("neko", "");