-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
you can actually move assets to the export folder now yay
- Loading branch information
1 parent
ae1ccf7
commit 07d88b7
Showing
27 changed files
with
71 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
--macro raylib.macros.GlobalMetadata.run() | ||
--define no_console | ||
--macro flixel.system.macros.FlxAssetsMacro.run() | ||
--define no_console | ||
--define message.reporting=pretty |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package flixel.system.macros; | ||
|
||
import haxe.macro.Expr; | ||
import sys.io.File; | ||
import sys.io.Process; | ||
import sys.FileSystem; | ||
import haxe.macro.Compiler; | ||
import haxe.macro.Context; | ||
|
||
class FlxAssetsMacro { | ||
public static macro function run():Expr { | ||
var process:Process = new Process('haxelib libpath flixel-raylib'); | ||
var libPath:String = process.stdout.readLine(); | ||
var assetsPath:String = Context.definedValue('assetsPath'); | ||
var outputFolder:String = '${Compiler.getOutput()}/$assetsPath/'; | ||
process.close(); | ||
|
||
moveFiles('$libPath/assets', outputFolder); | ||
moveFiles(assetsPath, outputFolder); | ||
|
||
return macro a; | ||
} | ||
|
||
public static function moveFiles(start:String, destination:String) { | ||
if (!FileSystem.exists(start)) { | ||
trace('Source directory does not exist'); | ||
return; | ||
} | ||
|
||
if (!FileSystem.exists(destination)) { | ||
FileSystem.createDirectory(destination); | ||
} | ||
|
||
for (file in FileSystem.readDirectory(start)) { | ||
var filePath:String = '$start/$file'; | ||
var destPath:String = '$destination/$file'; | ||
|
||
if (FileSystem.isDirectory(filePath)) { | ||
moveFiles(filePath, destPath); | ||
} else { | ||
File.copy(filePath, destPath); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
-cp src | ||
-D analyzer-optimize | ||
-main Main | ||
--class-path src | ||
--main Main | ||
|
||
--define assetsPath=assets | ||
|
||
--cpp bin | ||
|
||
--library flixel-raylib | ||
--cmd cd bin | ||
--cmd main.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters