Skip to content

Commit

Permalink
name change
Browse files Browse the repository at this point in the history
  • Loading branch information
Vortex2Oblivion committed Jan 8, 2025
1 parent 80311e8 commit b1b6d07
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
test/bin/*
test/export/*
.vscode/
.zed/

Expand Down
2 changes: 1 addition & 1 deletion run.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cd test
haxe build.hxml
cd bin
cd export
Main.exe
8 changes: 4 additions & 4 deletions src/flixel/system/macros/FlxAssetsMacro.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion test/build.hxml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

--define assetsPath=assets

--cpp bin
--cpp export

--library flixel-raylib

0 comments on commit b1b6d07

Please sign in to comment.