Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
MinecraftNight4 authored Oct 29, 2023
1 parent b6d559c commit 1db0924
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions mdmc_importer.ahk
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 added mdmc_importer.exe
Binary file not shown.

0 comments on commit 1db0924

Please sign in to comment.