Fix Emscripten asset support, fix Log.verbose on Emscripten builds

This commit is contained in:
Joshua Granick
2017-06-23 16:30:15 -07:00
parent 44020adfc3
commit 3cd245682e
4 changed files with 21 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ import sys.FileSystem;
if (rootPath == null) {
#if (ios || tvos)
#if (ios || tvos || emscripten)
rootPath = "assets/";
#elseif (windows && !cs)
rootPath = FileSystem.absolutePath (haxe.io.Path.directory (#if (haxe_ver >= 3.3) Sys.programPath () #else Sys.executablePath () #end)) + "/";