lime icon indicating copy to clipboard operation
lime copied to clipboard

Allow running native apps from other directories.

Open player-03 opened this issue 2 years ago • 2 comments

It isn't always safe to assume ./ is the app directory, and removing that assumption opens up options.

Sys.programPath() requires at least Haxe 3.4, but I don't think Lime supports 3.3 anyway.

Resolves #1284.

player-03 avatar Jun 07 '22 15:06 player-03

Sys.programPath() requires at least Haxe 3.4, but I don't think Lime supports 3.3 anyway.

I'm okay with Haxe 3.4 (or even 3.4.7 specifically) being the minimum requirement for Lime/OpenFL. 3.4.7 is the only Haxe 3 build that we actually test with, as far as I know.

joshtynjala avatar Jun 07 '22 15:06 joshtynjala

That's what I was thinking. I know some startup files still go through the #if (haxe_ver > 3.3) Sys.programPath() #else ... rigamarole, but given that we don't actually test it, other parts of the code are probably broken anyway.

Oh, and based on the documentation, Sys.programPath() was introduced in or before 3.4.2.

player-03 avatar Jun 07 '22 16:06 player-03