-
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.
- Loading branch information
1 parent
b6d559c
commit 1db0924
Showing
2 changed files
with
40 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
Folder := A_ScriptDir "\Custom_Albums" | ||
Import := A_InitialWorkingDir | ||
|
||
if (Import = Folder) | ||
{ | ||
MsgBox Maybe this is not a good idea... | ||
ExitApp | ||
} | ||
|
||
else if (Import " " = "C:\WINDOWS\System32 ") | ||
{ | ||
ExitApp | ||
} | ||
|
||
else if !FileExist(Folder) | ||
{ | ||
MsgBox SOMETHING SEEMS OUT OF PLACE!`nYou can try to fix it this way:`n`n1) Put the file inside the same folder where "MuseDash.exe" is.`n2) Right click on any ".mdm" file and click on "Select another program".`n3) Select "mdmc.exe" and that's it! | ||
ExitApp | ||
} | ||
|
||
else | ||
{ | ||
FileAppend, [%A_YYYY%/%A_MM%/%A_DD% %A_Hour%:%A_Min%:%A_Sec%.%A_MSec%]: File(s) detected at %A_InitialWorkingDir%:`n, %A_ScriptDir%\MelonLoader\mdm_import.log | ||
Loop Files, %A_InitialWorkingDir%\*.mdm, R | ||
{ | ||
WriteFile := A_ScriptDir "\Custom_Albums\" A_LoopFileName | ||
if FileExist(WriteFile) | ||
{ | ||
FileAppend, | - %A_LoopFileName% [REPLACED]`n, %A_ScriptDir%\MelonLoader\mdm_import.log | ||
FileMove, %A_InitialWorkingDir%\%A_LoopFileName%, %A_ScriptDir%\Custom_Albums, 1 | ||
} | ||
|
||
else | ||
{ | ||
FileAppend, | - %A_LoopFileName% `n, %A_ScriptDir%\MelonLoader\mdm_import.log | ||
FileMove, %A_InitialWorkingDir%\%A_LoopFileName%, %A_ScriptDir%\Custom_Albums, 1 | ||
} | ||
} | ||
ExitApp | ||
} |
Binary file not shown.