jtransc / gdx-backend-jtransc

GDX backend for JTransc: targeting every platform lime supports (html5, windows, linux, mac, android, ios...) (flash is wip) (consoles + unity likely to be supported in the future)
23 stars 6 forks source link

LimeFileInputStream_.hx: You cannot access the sys package while targeting js #98

Open winniehell opened 6 years ago

winniehell commented 6 years ago

When I run runHtml5 in https://github.com/jtransc/jtransc-examples/tree/master/libgdx/invaders, I get:

LimeFileInputStream_.hx:7: characters 12-28 : You cannot access the sys package while targeting js (for sys.io.FileInput)

for this line: https://github.com/jtransc/gdx-backend-jtransc/blob/0c6875172463a9936e8463fde513e866ce847ae6/gdx-backend-jtransc/src/com/jtransc/media/limelibgdx/LimeFileInputStream.java#L10

Is it necessary to exclude this file from JS?

wiltonlazary commented 6 years ago

I have same issue, runs fine on linux, but give this error on ./gradlew runHtml5

Execute command /usr/bin/haxelib run lime test html5 -release -Dsource-header=0 src/z/RZ.hx:7: characters 12-28 : You cannot access the sys package while targeting js (for sys.io.FileInput)