Skip to content

Commit 13fb8c6

Browse files
committed
Add directory creation for custom server export type
Added a check to see if the request is for a custom server export type. If the request is for a custom server, the code now creates an output directory named after the song. This ensures that for custom server export types, the output files are organized into a directory named after the song with correct casing.
1 parent a6e2a55 commit 13fb8c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

JustDanceEditor.Converter/Converters/ConvertUbiArtToUnity.cs

+4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ public void Convert()
4343
// Load the song data
4444
LoadSongData();
4545

46+
// If the request is a custom server, we'll create the output folder with the song name
47+
if (ConversionRequest.ExportType == ExportType.CustomServer)
48+
Directory.CreateDirectory(Path.Combine(ConversionRequest.OutputPath, SongData.Name));
49+
4650
// Convert the files
4751
ConversionTasks();
4852

0 commit comments

Comments
 (0)