Commit Graph

4806 Commits

Author SHA1 Message Date
Apprentice-Alchemist
86a7b4e136 C++ is strange. 2022-08-05 13:29:34 +02:00
Apprentice-Alchemist
1c8c6c1a5e Implement window transparency. 2022-08-04 22:00:49 +02:00
Josh Tynjala
88b4fdf888 lime.openfl.org 2022-07-28 16:54:37 -07:00
Chris Speciale
7a9a881b22 Remove TODO
...Unfortunately, after a little bit of testing and a lot more thought and consideration, I've realized there really isn't a way to do this without doubling the allocation. Ouch.
2022-07-28 18:01:10 -04:00
Chris Speciale
4fdaefac23 Add TODO 2022-07-28 17:09:23 -04:00
Chris Speciale
592b3dbb4d Merge pull request #1568 from Stencyl/fix-native-loadtext-request
Fix NativeHTTPRequest.loadText
2022-07-28 16:40:35 -04:00
Josh Tynjala
372f79fd81 NativeMenuItem: fix wrong types on keyEquivalent and keyEquivalentModifiers 2022-07-26 11:30:28 -07:00
Justin Espedal
3644549574 Fix NativeHTTPRequest.loadText
Followup to these two commits:
02617a854d
ad3a632927

In the second commit, the buildBuffer call in HTTPRequest was
found to conflict with the way local requests are made, with the
bytes being set directly. So buildBuffer was moved to NativeHTTPRequest
instead. Upon promise completion, now, the value of bytes should always
be correct, and buildBuffer need not be called.

But buildBuffer is called again in NativeHTTPRequest.loadText. For local
requests, this will lead to the same problem that the second commit
fixed (presumably), and for network requests, this leads to the nulled
out buffer being accessed a second time, resulting in a crash.

So since the received value of bytes is already correct and buildBuffer
is harmful, the buildBuffer call is removed from loadText.
Both local and network requests are happy now!
2022-07-22 23:19:46 +09:00
Josh Tynjala
862fe55b1c Preloader: use ObjectMap instead of Map with bytesLoadedCache so that Dynamic can be a key when disable_preloader_assets flag is set 2022-07-20 11:54:21 -07:00
Josh Tynjala
aa1f305f9d project.xml: add <config:air profile=value/> to optionally support custom AIR profiles on run 2022-07-19 11:10:49 -07:00
Josh Tynjala
5a494a1742 docs-theme: minor color tweak for links 2022-07-18 10:35:53 -07:00
Josh Tynjala
795b2fcace docs-theme: dark mode support 2022-07-18 09:54:51 -07:00
Josh Tynjala
fd0fc3da48 HashLink: fix the ability to double-click the .app file on macOS to run it
The HashLink executable expects hlboot.dat and libraries to be in the current working directory (it's not enough for them to be in the same directory as the executable). Make the .app file launch a shell script that 1) changes the current working directory 2) launches the HashLink executable
2022-07-13 10:01:57 -07:00
Josh Tynjala
06baca4396 README: use correct file name for installing nightly build 2022-07-11 15:29:28 -07:00
Josh Tynjala
f004b968d0 README: link to development builds shows only successful builds 2022-07-11 14:53:34 -07:00
player-03
2a81e10ba9 Merge pull request #1559 from mgambrell/develop
vorbisfile.cpp - change free(x) to `delete x` (fixes #1556)
2022-07-07 20:47:17 -04:00
Josh Tynjala
8d715cb741 docs website URL
This may change, but this is where it is right now
2022-07-05 08:51:01 -07:00
Josh Tynjala
7e33d52645 docs: logo not required to be served from root of domain 2022-07-05 08:49:08 -07:00
mgambrell
0125e939a9 vorbisfile.cpp - change free(x) to delete x (fixes #1556) 2022-07-04 00:00:38 -05:00
player-03
4f83af5848 Merge pull request #1545 from player-03/configChanges
Suppress `uiMode` configuration changes.
2022-06-27 01:49:18 -04:00
player-03
b542d62429 Merge pull request #1552 from player-03/JNI_safety
Rename `ForegroundWorker` → `JNISafety`.
2022-06-18 22:20:08 -04:00
Joseph Cloutier
da5704e263 Rename ForegroundWorkerJNISafety.
This change places the focus on the one known use case, while clearing
up potential confusion caused by similar-sounding classes that function
totally differently.
2022-06-18 21:18:02 -04:00
Josh Tynjala
33502b099e Preloader: if disable_preloader_assets is defined, keep the public API available
Ensures that existing custom templates still work
2022-06-14 07:42:30 -07:00
Josh Tynjala
e3a755ff60 ManifestResources: use Dynamic instead of AssetLibrary when disable_preloader_assets is defined 2022-06-14 07:41:50 -07:00
Josh Tynjala
4e1974fc9f ManifestResources: if disable_preloader_assets is defined, keep the public API available
Ensures that existing custom templates still work
2022-06-14 07:07:22 -07:00
Joseph Cloutier
bb9b64af81 Suppress uiMode configuration changes.
When the user switches between dark and light themes, Android destroys
and recreates the activity. However, Lime activities can't be recreated
like this, and just close instead.

Since we don't actually use the system theme, there's no reason to do
this. Simplest solution is to suppress it.

https://developer.android.com/guide/topics/resources/runtime-changes
https://developer.android.com/guide/topics/ui/look-and-feel/darktheme#config-changes
2022-06-11 20:28:41 -04:00
player-03
89158a9b7f Merge pull request #1541 from Stencyl/fix-native-audio-stream-pos
Fix getCurrentTime for streaming native sounds
2022-06-10 13:27:00 -04:00
Josh Tynjala
4be9bcf6ff CommandLineTools: mention new --template option from commit 3ba4c4c5c0 in help text 2022-06-10 09:55:50 -07:00
Justin Espedal
8660a189ba Fix getCurrentTime for streaming native sounds
vorbisFile.timeTell() returns the current decoding offset in seconds,
and it's updated each time vorisFile.read() is called. Since data is
buffered by calling vorbisFile.read() multiple times, the associated
time values also need to be preserved in order to get the correct time
offset.

Without this change, getCurrentTime() will return some time in the
future relative to the amount of buffered data.
2022-06-10 13:57:13 +09:00
Josh Tynjala
81d682d355 Window: add new setTextInputRect() method to optionally specify the location of the input when textInputEnabled is set to true
On native, this uses SDL_SetTextInputRect
2022-06-09 14:14:05 -07:00
player-03
5f6f762ff8 Merge pull request #1536 from player-03/android-21
Set minimum-sdk-version to 21.
2022-06-07 16:46:36 -04:00
Joseph Cloutier
3d3bcc4ebc Set minimum-sdk-version to 21.
For parity with #1519, and to resolve #757.
2022-06-06 22:20:15 -04:00
player-03
238428c7ea Merge pull request #1509 from player-03/icon_priorities
Implement `Icon` priorities.
2022-06-06 01:14:55 -04:00
player-03
d4f5c04d22 Merge pull request #1496 from player-03/android-ndll
Don't expect Android extensions to use ndlls
2022-06-06 01:02:49 -04:00
Joseph Cloutier
ab8003640b Use type hint in findMatch().
Haxe 3 can't deduce the type without it.
2022-06-05 23:49:21 -04:00
Joseph Cloutier
744b476f54 Add acceptSmaller argument.
I finally figured out why `findNearestMatch()` was coded the way it was.
2022-06-05 23:25:56 -04:00
Joseph Cloutier
793aa69ff4 Don't ignore priority argument. 2022-06-05 23:09:07 -04:00
player-03
2cd7161bbe Don't expect Android extensions to use ndlls
I can't think of any practical reasons for an Android extension to compile an ndll. All of Android's system functions require Java, not C++, and you can get the speed of C++ just by writing Haxe code.

I surveyed several Android extensions on lib.haxe.org, and not one of them used ndlls when targeting Android.
2022-06-05 22:36:01 -04:00
player-03
80b9b89908 Merge pull request #1535 from player-03/buildBuffer
Only call `buildBuffer()` when needed.
2022-06-04 01:23:52 -04:00
Joseph Cloutier
17232fd7dc Remove trailing whitespace. 2022-06-03 23:14:27 -04:00
Joseph Cloutier
ad3a632927 Only call buildBuffer() when needed.
Turns out, `HTTPRequest`'s call is only needed for internet requests.
Files on the local machine will be loaded directly into `bytes`, leaving
`buffer` empty. Calling `buildBuffer()` will then delete the data.
2022-06-03 23:14:16 -04:00
player-03
2d028bf75f Merge pull request #1534 from player-03/ForegroundWorker
Add thread management tools for Android
2022-06-03 18:25:09 -04:00
Joseph Cloutier
f70b43a543 Explain ForegroundWorker's main use case. 2022-06-03 18:04:32 -04:00
Josh Tynjala
8a3b990f98 MacPlatform: use executableDirectory instead of applicationDirectory when copying HashLink (references #1517) 2022-06-03 13:19:25 -07:00
player-03
276a8f6c8a Merge pull request #1517 from Apprentice-Alchemist/feature/update-hashlink
Update hashlink.
2022-06-02 18:34:19 -04:00
Joseph Cloutier
afbd7e15f8 Fix null pointer error in FileDialog.hx.
Co-authored-by: ShaharMS <88977041+ShaharMS@users.noreply.github.com>
2022-06-01 00:15:47 -04:00
Joseph Cloutier
c48f1fb44a Try a different approach to haxe_ver. 2022-05-31 03:00:17 -04:00
Joseph Cloutier
8015148ee0 Fix conditional compilation.
For real this time, definitely, hopefully, maybe.
2022-05-31 02:37:52 -04:00
Joseph Cloutier
894445687e Remove nonexistent function calls.
Earlier Haxe versions just used `EntryPoint`.
2022-05-31 02:31:59 -04:00
Joseph Cloutier
312dd70d72 Never inline ForegroundWorker functions.
The early `return` is incompatible with it.
2022-05-31 02:06:34 -04:00