Remove embedBytesHL() function.
This was likely added when `#if hl` began to fail, hiding the problem. With the issue fixed, there's no more need for a workaround.
This commit is contained in:
@@ -945,7 +945,7 @@ class Bytes
|
||||
}
|
||||
#elseif hl
|
||||
#if !macro
|
||||
@:autoBuild(lime._internal.macros.AssetsMacro.embedBytesHL()) // Enable @:bytes embed metadata
|
||||
@:autoBuild(lime._internal.macros.AssetsMacro.embedBytes()) // Enable @:bytes embed metadata
|
||||
#end
|
||||
@:coreApi
|
||||
class Bytes
|
||||
|
||||
@@ -46,25 +46,6 @@ class AssetsMacro
|
||||
return fields;
|
||||
}
|
||||
|
||||
macro public static function embedBytesHL():Array<Field>
|
||||
{
|
||||
var fields = embedData(":file");
|
||||
if (fields == null) return null;
|
||||
|
||||
var definition = macro class Temp
|
||||
{
|
||||
public function new(?length:Int, ?bytesData:haxe.io.BytesData)
|
||||
{
|
||||
var bytes = haxe.Resource.getBytes(resourceName);
|
||||
super(bytes.b, bytes.length);
|
||||
}
|
||||
};
|
||||
|
||||
fields.push(definition.fields[0]);
|
||||
|
||||
return fields;
|
||||
}
|
||||
|
||||
macro public static function embedByteArray():Array<Field>
|
||||
{
|
||||
var fields = embedData(":file");
|
||||
|
||||
Reference in New Issue
Block a user