From b1b6d07e237ebf426130479e68a62ef6cb4b88ee Mon Sep 17 00:00:00 2001 From: Vortex <73261680+Vortex2Oblivion@users.noreply.github.com> Date: Wed, 8 Jan 2025 18:47:40 -0500 Subject: [PATCH] name change --- .gitignore | 2 +- run.bat | 2 +- src/flixel/system/macros/FlxAssetsMacro.hx | 8 ++++---- test/build.hxml | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index bff7e0b..f119549 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -test/bin/* +test/export/* .vscode/ .zed/ diff --git a/run.bat b/run.bat index 1e31b0b..ee98e6e 100644 --- a/run.bat +++ b/run.bat @@ -1,4 +1,4 @@ cd test haxe build.hxml -cd bin +cd export Main.exe \ No newline at end of file diff --git a/src/flixel/system/macros/FlxAssetsMacro.hx b/src/flixel/system/macros/FlxAssetsMacro.hx index 5224c61..131bf54 100644 --- a/src/flixel/system/macros/FlxAssetsMacro.hx +++ b/src/flixel/system/macros/FlxAssetsMacro.hx @@ -15,13 +15,13 @@ class FlxAssetsMacro { var outputFolder:String = '${Compiler.getOutput()}/$assetsPath/'; process.close(); - moveFiles('$libPath/assets', outputFolder); - moveFiles(assetsPath, outputFolder); + copyFiles('$libPath/assets', outputFolder); + copyFiles(assetsPath, outputFolder); return macro a; } - public static function moveFiles(start:String, destination:String) { + public static function copyFiles(start:String, destination:String) { if (!FileSystem.exists(start)) { trace('Source directory "$start" does not exist'); return; @@ -36,7 +36,7 @@ class FlxAssetsMacro { var destPath:String = '$destination/$file'; if (FileSystem.isDirectory(filePath)) { - moveFiles(filePath, destPath); + copyFiles(filePath, destPath); } else { File.copy(filePath, destPath); } diff --git a/test/build.hxml b/test/build.hxml index 3a43371..564b7c8 100644 --- a/test/build.hxml +++ b/test/build.hxml @@ -3,6 +3,6 @@ --define assetsPath=assets ---cpp bin +--cpp export --library flixel-raylib \ No newline at end of file