Commit Graph

4788 Commits

Author SHA1 Message Date
Joshua Granick
c650924a7e Compile fix 2021-07-27 15:00:30 -07:00
Joshua Granick
1ecf38f5b3 Fix CFFI calls in FileDialog for HL target 2021-07-27 14:50:05 -07:00
Griss
486d69fdcf Update FileDialog.hx 2021-07-27 14:50:05 -07:00
Josh Tynjala
5b51d0ce7a Github Actions: apt-get update before apt-get install 2021-07-23 13:59:36 -07:00
Joshua Granick
105cc69cb7 Do not add double end-slash in PackedAssetLibrary (#1447) 2021-07-23 09:18:34 -07:00
Giuppe
f56391b8bb fix: Shader compiler is giving warnings only when there are errors present 2021-07-23 09:05:50 -07:00
Alan
7a58c24582 MOD: start adb server beforehand 2021-07-23 09:03:06 -07:00
Alan
5c94adecd3 FIX: wrap adb command in sh -c "..."
This enables the stdout redirection to work on non-Windows platforms
2021-07-23 09:03:06 -07:00
Joseph Cloutier
76d953e909 Fix NativeAudioSource.stop()
The `setCurrentTime()` function calls `AL.sourcePlay()` if `playing` is
still true, so that should only be called after `playing = false;`.

One could also place the call before `AL.sourceStop()`, but that will
lead to a few extra function calls. Plus, if `stop()` is supposed to
reset the playback time, it should probably do that whether or not the
sound is playing (i.e., outside the `if` block).
2021-07-23 09:01:22 -07:00
Joseph Cloutier
195b1dbaef Reword comment for accuracy
Fixing a mistake I made in 0d1df40.
2021-07-23 09:01:22 -07:00
Justin Espedal
151606b119 Change packed assets header to "lime-asset-pack"
This is a little more distinct than "asset-pack", further reducing the chance of the resulting file being mistaken for something it isn't.
2021-07-23 09:00:44 -07:00
Justin Espedal
5136482127 Don't let packed asset files begin with a compression header
Packed asset libraries are sequences of individual files, sometimes compressed, and concatenated. If each file is compressed, this causes the asset pack as a whole to begin with compressed file headers, which may cause some software to mistake the file as being one large compressed file, which it isn't.

For example, some html5 web portals may try to automatically determine if a file is gzip-compressed, and if they are, serve the file with the "content-encoding: gzip" header. That will cause a web browser to decompress the file while downloading it, leading to two issues:

1. The compressed file header is only for the first file in the pack, so we'll only receive the data for the first file.
2. The data will be in an already-decompressed state, which we don't expect.

This will manifest as an error like "Uncaught incorrect header check" when trying to load and decompress what we expect to be compressed data.

This change prepends the string "asset-pack" to the start of the file. It's applied to all pack types, not just compressed ones. For uncompressed packs, I presume that there's the possibility that whatever file header happens to be present on the first file in the pack has other inadvertent effects.
2021-07-23 09:00:44 -07:00
zatrit
75407f5db8 Fixed dialog on android APK signing 2021-07-23 09:00:09 -07:00
Josh Tynjala
1c6947c1ea Github Actions: upgrade to ubuntu-18.04
Github is removing ubuntu-16.04 soon
2021-07-21 14:54:44 -07:00
Josh Tynjala
216096270e ios: add missing required Metal.framework dependency to Xcode project 2021-04-29 14:42:46 -07:00
Josh Tynjala
28e2b5fd9f README: fix link to CI that should be Github Actions 2021-04-29 13:32:38 -07:00
player-03
73d65d533a Merge pull request #1458 from giuppe/fix-shaderinfo-null-string
fix: getShaderInfoLog result could be null on HashLink target
2021-04-23 19:14:48 -04:00
Giuppe
34d997d316 fix getShaderInfoLog null result check on HashLink target 2021-04-16 03:54:28 +02:00
Justin Espedal
f110d52e5a Allow hyphen for launchStoryboard template property typing
When parsing the attributes attached to a launchStoryboard element, in addition to the colon character (`:`), allow the hyphen character (`-`) to be used as the separator between a template property's name and its type.

Although colon is familiar to Haxe developers as the variable type specifier (e.g. `var i:Int = 0;`), the colon character's expected usage within xml is to separate the local name from the namespace. So usage of colon here could be unexpected, and also causes trouble in formalizing the specification as an xsd.

Retain the ability to parse `:` for backward compatibility.
2021-04-15 00:34:53 +09:00
Joshua Granick
8d7fd1dd2f Update to 7.9.1 for testing Vorbis changes 2021-04-10 20:54:23 -07:00
player-03
caa7feff1c Reword comment for clarity
(Also for grammar and consistent line length.)
2021-04-10 20:40:51 -07:00
player-03
a4aa3f2dd8 Simplify native_audio_buffers implementation
The previous version was backwards - `native_audio_buffers` would be ignored if defined, and used if not defined. Worse, with all the `!` operators, it was hard to tell.

This implementation tries to fix the error in a way that is easier for a human to check.
2021-04-10 20:40:51 -07:00
m0rkeulv
feae6af85a Making NativeAudio buffers configurable & playback behaving like other sources. 2021-04-10 20:40:51 -07:00
player-03
c743fe10c4 Merge pull request #1445 from player-03/workingDirectory
Use existing "workingDirectory" value instead of re-calculating.
2021-03-29 05:07:46 -04:00
Justin Espedal
6ca5972186 Fix iOS -Info.plist merging feature for paths with spaces 2021-03-26 08:03:41 +09:00
Joshua Granick
5345430d0f Update CHANGELOG 2021-03-10 13:22:39 -08:00
Joshua Granick
5eda2af2dc Update to 7.9.0 2021-03-10 13:22:39 -08:00
Joshua Granick
8c9808b038 Run formatter 2021-03-10 13:22:39 -08:00
Joshua Granick
2c563b7809 Fix abstract casts on Haxe 4.2 2021-03-10 13:21:31 -08:00
Josh Tynjala
8a5487f212 Github Actions: bump Haxe version to 4.2.1 to fix dox failure 2021-03-08 13:52:03 -08:00
Josh Tynjala
5dbf3fb52f CI: build docs too 2021-03-08 12:47:04 -08:00
Josh Tynjala
e53c150555 CI: creates Haxelib package artifact 2021-03-05 12:22:58 -08:00
Josh Tynjala
4271854980 WindowsPlatform: warn instead of error if HL_PATH is not defined 2021-03-05 11:35:43 -08:00
player-03
5fa03f64c6 Merge pull request #1448 from m0rkeulv/feature/haxe_4_2_support
Feature/haxe 4 2 support
2021-03-03 18:03:52 -05:00
player-03
99649ef487 Remove trailing tab 2021-03-03 18:03:32 -05:00
player-03
f9a1f645d5 Standardize formatting 2021-03-02 23:45:49 -05:00
m0rkeulv
0c032c7a2a using primitives 2021-02-18 21:42:34 +01:00
m0rkeulv
eb60e5581e Fix incorrect type in init statement 2021-02-15 21:29:53 +01:00
m0rkeulv
56d0bd1089 remove changes that where committed by mistake. 2021-02-14 11:33:42 +01:00
m0rkeulv
0e47fd399d remove @:generic on abstracts 2021-02-14 00:06:48 +01:00
m0rkeulv
fdb0dd2ed5 bump hxcpp version 2021-02-13 23:28:55 +01:00
m0rkeulv
ef14ba3faa making tools build 2021-02-13 23:19:21 +01:00
m0rkeulv
59ddb9636b Add @:transitive to abstracts were needed to build with haxe 4.2 2021-02-13 23:04:17 +01:00
m0rkeulv
9ca2273c15 update CI to haxe 4.2.0 2021-02-13 23:00:47 +01:00
Josh Tynjala
152bd3df2c air: template supports window allow-high-dpi for desktop apps 2021-01-26 15:24:48 -08:00
Joshua Granick
716ebced0a Try a different Discord notifier 2021-01-06 13:17:00 -08:00
Joshua Granick
e85ecf5cf7 Notify only on main repo 2021-01-06 12:29:35 -08:00
Joshua Granick
b08d848892 Fix indentation 2021-01-06 12:09:48 -08:00
Joshua Granick
ec86edd195 Try a different way to notify Discord in CI 2021-01-06 12:08:32 -08:00
Joseph Cloutier
8416759e33 Use existing value instead of re-calculating.
Now that `project.workingDirectory` exists, we may as well use it.

I considered adding "${workingDirectory}" as a valid value, to match
"`project.workingDirectory`", but decided to keep changes to a minimum.
2021-01-06 14:50:44 -05:00