Commit Graph

487 Commits

Author SHA1 Message Date
Joshua Granick
3dbc73f9ab Rename Emscripten target to WebAssembly 2023-05-23 14:19:32 -07:00
Joshua Granick
a90915cb3f Print http-server message, allow auto port finding starting at 3000 2023-05-20 11:05:47 -07:00
Joshua Granick
eec6e5e0fa Emscripten fixes 2023-05-19 23:10:16 -07:00
Josh Tynjala
51c90393fe ProjectXMLParser: avoid exception for directories that don't exist (references #1689)
Calls FileSystem.exists() before FileSystem.isDirectory()
2023-05-16 08:56:43 -07:00
Josh Tynjala
d299add52d FileDialog: should use #if (!macro && lime_cffi) around calls to NativeCFFI methods, similar to Application 2023-05-03 12:29:38 -07:00
Josh Tynjala
f808e45132 Fix more :enum abstract warnings in Haxe 4.3 2023-05-02 08:28:46 -07:00
Josh Tynjala
f6e3c5475b Fix :enum abstract warnings with Haxe 4.3 2023-05-02 08:08:47 -07:00
Josh Tynjala
787a78d505 Fix :extern warnings with Haxe 4.3 2023-05-02 07:53:20 -07:00
player-03
9f9604e0c8 Restore untyped keyword.
I meant to move this to right before `__js__` because it's only needed in Haxe 3, but forgot. Also, I realized Lime always puts it before the `#if`, so I just put it back where it was.
2023-04-17 14:23:29 -04:00
player-03
0535ae0266 Always call new window.Image(), for consistency. 2023-04-17 14:21:44 -04:00
player-03
e14d3e24d6 Always call new window.Image(), for consistency.
There's no practical downside to doing this, and it makes Lime compatible with tools that act like genes but aren't named "genes."
2023-04-17 14:19:15 -04:00
andresa88
fb5d64dc79 Fixed an HTML Image issue when using the genes library to compile ES modules. Need to explicitly use: new window.Image() 2023-04-17 10:06:24 -07:00
player-03
1951c30d05 Merge pull request #1653 from player-03/lime.ndll-error-message
Improve "Could not find NekoAPI interface" message.
2023-04-16 17:31:34 -04:00
player-03
766db267b1 Merge pull request #1626 from dpomier/patch-1
Allow Assets.registerLibrary() for default library
2023-04-16 14:45:32 -04:00
player-03
539e84dc7c Merge pull request #1648 from jobf/feature/open-al-efx-hl-invalid-param
Fix OpenAL binding AL.filteri for hashlink
2023-04-16 14:43:17 -04:00
player-03
9ebe6f3b60 Merge pull request #1593 from Sirox228/patch-2
remove arguments limit in jni
2023-04-16 13:58:59 -04:00
player-03
a44098946d Merge pull request #1654 from player-03/lime.ndll-forward-slashes
Use forward slashes to load lime.ndll.
2023-04-16 13:40:43 -04:00
player-03
b560468088 Merge pull request #1656 from player-03/password-input-android
Use "password" text input only on Android.
2023-04-16 13:29:57 -04:00
Josh Tynjala
f8ec10b969 AIRHelper: allow listen=port in <config:air/> to use USB debugging instead of wifi debugging for Adobe AIR apps on Android or iOS 2023-04-13 15:42:05 -07:00
Josh Tynjala
1ac0810895 XcodeHelper: search for default iPhone simulator device id with a regular expression instead of a specific string
Previously, the value was "iphone-11". Now the regex is ~/iphone-\d+/g

As long as the naming scheme stays the same, this should choose the newest iPhone supported by Xcode, and we won't need to update manually anymore, like in commit 72dd60f1c8
2023-04-11 16:02:17 -07:00
Josh Tynjala
04b69a9cef AIRHelper: display a warning when no selected iOS simulator is found when building AIR for iOS app
Ideally, we'd always get a simulator name, but better to fail gracefully
2023-04-11 15:51:56 -07:00
Josh Tynjala
2e19898c28 XCodeHelper: fix null exception when trying to get the ID or name of the selected iOS simulator
Ideally, it shouldn't return null, but if it does, fail gracefully
2023-04-11 15:50:53 -07:00
Josh Tynjala
e753c5c933 AIRHelper: fix failed Adobe AIR for iOS build on Windows
It was incorrectly trying to list simulators from Xcode (and Xcode, obviously, doesn't exist on Windows)
2023-04-11 15:21:55 -07:00
player-03
adda161ec6 Use "password" text input only on Android.
Using `userAgent` to tell whether the app is running on Android. This isn't foolproof, but will work more often than the previous approach (where you chose at compile time and your choice applied to all devices). Resolves #1655.
2023-04-05 16:36:36 -04:00
Josh Tynjala
0f694662f9 HTML5HTTPRequst: status 400 should be considered an error 2023-04-04 09:00:28 -07:00
player-03
4d3ae39d50 Use forward slashes to load lime.ndll.
`substr(7)` returns the substring _starting_ at character 7, which will never be "windows". The author meant to type `substr(0, 7)` instead, to get the substring ending at 7.

We could easily make this change, but given that the code has been successfully using forward slashes for several years, I prefer to simplify.
2023-04-01 11:56:41 -04:00
player-03
2026f404ff Initialize variable. 2023-04-01 11:33:20 -04:00
player-03
776db44e37 Add missing type declaration.
Nowadays you're supposed to omit this type declaration, but what I didn't realize is that that feature was added in Haxe 4.1. Since Lime still needs to support earlier versions, we'll just have to do it the old way.
2023-04-01 11:29:35 -04:00
player-03
77f3d4bacf Improve "Could not find NekoAPI interface" message.
This message comes up relatively often when a new user tries to set up Lime, but fails to give any instructions a new user could use.

This commit adds a new message explaining the most common issue and how to solve it. It also provides file paths, which may help with more in-depth debugging.
2023-04-01 11:20:05 -04:00
jf
aefce3c4ae change hl_al_filteri argument type 2023-03-17 18:14:42 +00:00
Dimitri Pomier
db0a8e95fa Allow Assets.registerLibrary() for default library 2023-02-06 13:27:13 +01:00
Josh Tynjala
d75b9f9cfa HTML5Window: add lime_enable_html5_ime define (references openfl/openfl#2564) 2023-01-11 16:00:57 -08:00
Josh Tynjala
e03cc18d31 HTML5Window: use HTMLInputElement password instead of text to avoid IME issues on Android (closes openfl/openfl#2564) 2023-01-11 15:59:49 -08:00
Josh Tynjala
0a0a6f17a6 HTML5Window: rename inputing to imeCompositionActive 2023-01-11 12:51:15 -08:00
Josh Tynjala
26c6930c41 HTML5Window: call blur() before removing the compositionend listener (references openfl/openfl#2564)
This ensures that incomplete IME input gets committed
2023-01-11 12:49:52 -08:00
player-03
908905b887 Change "A" to "An." 2023-01-06 13:40:58 -05:00
ecanela
da40e9ea27 fix my mystake typo..
sorry for the previous mistake,
2023-01-06 12:39:16 -06:00
ecanela
fb596e9d8b fix a typo in merge function comment 2023-01-05 17:10:42 -06:00
player-03
1545179b5b Strip trailing whitespace. 2023-01-03 14:15:23 -05:00
Josh Tynjala
603a3619b6 HXProject: null check for keystore.path 2022-12-30 22:08:14 -08:00
Josh Tynjala
468c193330 ProjectXMLParser: don't require path to be specified in <certificate/> element to create Keystore object (can also be created if type is specified, which allows keystores without paths) 2022-12-30 22:08:14 -08:00
Josh Tynjala
7d7f6fbbd3 AIRHelper: allow Adobe AIR apps to be signed with storetypes that don't have a keystore file
For example, -storetype KeychainStore can be used to sign with an -alias value stored in the macOS Keychain
2022-12-30 22:08:14 -08:00
player-03
e9202b2355 Merge pull request #1589 from Vulpicula/patch-1
Fix openFile not working on Linux.
2022-12-20 14:45:48 -05:00
player-03
505d90b6ae Don't modify the argument array.
Just on the off chance that the user reuses it.
2022-12-20 14:10:14 -05:00
player-03
14340b5f87 Fix error when using JNI in macro context. 2022-11-20 11:51:56 -05:00
Sirox
b3bf305fc4 Update JNI.hx 2022-11-01 10:43:51 +03:00
Vulpicula
6900d18971 Fix openFile not working on Linux.
Thanks to LeotomasMC for some assistance with this.

I noticed and was quite confused by the fact that certain things in Flixel failed to work on Linux, such as FlxG.openURL, which returned "xdg-open: unexpected argument '&'". This appears to fix that and seems to work quite fine, with that segment of Flixel now working once more.

May be good to have someone more qualified than I check this out before er... merging, as I'm not exactly the best programmer around.
2022-10-19 18:50:15 -07:00
player-03
a37e139bdd Add missing space. 2022-10-10 11:18:46 -04:00
Sam! Bonfante
4b02ba5e4b Catch null pointer exception
NPE was occurring in setPosition where parent.buffer was undefined.
2022-09-17 18:20:49 -04:00
player-03
f9827cf47e Standardize formatting. 2022-09-07 15:57:53 -04:00