Skip to content

Commit

Permalink
Fix compilation with Lime 7
Browse files Browse the repository at this point in the history
  • Loading branch information
Gama11 authored and larsiusprime committed Aug 3, 2018
1 parent 46dafad commit 99ab082
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions firetongue/Getter.hx
Expand Up @@ -24,6 +24,11 @@
package firetongue;

import firetongue.FireTongue.Framework;
#if (lime >= "7.0.0")
import lime.utils.Assets as LimeAssets;
#elseif (lime && !lime_legacy)
import lime.Assets as LimeAssets;
#end

/**
* ...
Expand Down Expand Up @@ -150,7 +155,7 @@ class Getter
public function getDirectoryContents_Lime(path):Array<String>
{
#if (lime && !lime_legacy)
return limitPath(lime.Assets.list(TEXT), path);
return limitPath(LimeAssets.list(TEXT), path);
#else
return null;
#end
Expand All @@ -159,7 +164,7 @@ class Getter
public function getText_Lime(filename:String):String
{
#if (lime && !lime_legacy)
return lime.Assets.getText(filename);
return LimeAssets.getText(filename);
#else
return null;
#end
Expand All @@ -168,7 +173,7 @@ class Getter
public function checkFile_Lime(filename:String):Bool
{
#if (lime && !lime_legacy)
return lime.Assets.exists(filename);
return LimeAssets.exists(filename);
#else
return false;
#end
Expand Down

0 comments on commit 99ab082

Please sign in to comment.