6.0.4 Changelog:

Updated md5 hash and sysCheck Updater recognition for v1.0 of the HackMii Installer. A big thanks goes out to Team Twiizers for this unexpected update.

settings.exe was updated to v1.1 by obcd (v1.0 by cwstjdenobs). setting.txt's built for an Emulated NAND of one region but based on a different region's serial number will now also be able to establish a wifi connection.

Added an option to change the setting.txt to ModMii's Emulated NAND Modifier. This will allow you to modify an Emulated NAND to be able to establish a wifi connection when running on a different real Wii.

Fixed bug that only occurred when running ModMii Skin on Windows XP and it would not wait for ModMii Classic to finish running before reporting the Download Log. Thanks to person66 for his revisions to ModMii's Launcher (aka shortcut-er).

Fixed bug where drag and drop support did not work when items were dragged into ModMii.bat and ModMiiSkin.bat. This bug did not apply when items were dragged onto ModMii.exe and ModMiiSkin.exe.

Other Minor Changes.
This commit is contained in:
xflak40 2012-02-28 05:53:47 +00:00
parent 25131f5172
commit 642e92e879
24 changed files with 489 additions and 141 deletions

View File

@ -1,12 +1,22 @@
@echo off @echo off
setlocal setlocal
:top :top
set currentversion=6.0.3
chdir /d "%~dp0"
if not exist support cd..
::PUSHD "%cd%"
::::PUSHD "%~dp0"
::POPD
set currentversion=6.0.4
set currentversioncopy=%currentversion% set currentversioncopy=%currentversion%
set agreedversion= set agreedversion=
::remove setting path's with an & symbol and force default
if exist Support\settings.bat support\sfk filter -spat Support\settings.bat -!"\x26" -write -yes>nul
if exist Support\settings.bat call Support\settings.bat if exist Support\settings.bat call Support\settings.bat
if not exist support cd..
set cygwin=nodosfilewarning set cygwin=nodosfilewarning
set ModMiiDrive=%cd:~0,2% set ModMiiDrive=%cd:~0,2%
@ -38,23 +48,26 @@ IF ERRORLEVEL 1 (set Trigger=) else (set Trigger=1)
::"ModMii" a b c d e f g h i ::"ModMii" a b c d e f g h i
::equals ::equals
::"ModMii" %1 %2 %3 %4 %5 %6 %7 %8 %9 ::"ModMii" %1 %2 %3 %4 %5 %6 %7 %8 %9
set one=%1 set one=%~1
set two=%2 set two=%~2
set three=%3 set three=%~3
set four=%4 set four=%~4
set five=%5 set five=%~5
set six=%6 set six=%~6
set seven=%7 set seven=%~7
set eight=%8 set eight=%~8
set nine=%9 set nine=%~9
set cmdinput=%* set cmdinput=%*
if "%one%"=="" (goto:notcmd) if "%one%"=="" (goto:notcmd)
set cmdinput=%cmdinput:"=%
set cmdlinemode=Y set cmdlinemode=Y
if /i "%two%" EQU "Help" goto:specificCMDhelp if /i "%two%" EQU "Help" goto:specificCMDhelp
if /i "%one%" EQU "O" goto:cmdlineOPTIONShelp if /i "%one%" EQU "O" goto:cmdlineOPTIONShelp
if /i "%one%" EQU "W" goto:hardcodedoptions if /i "%one%" EQU "W" goto:hardcodedoptions
if /i "%one%" EQU "HS" goto:hardcodedoptions if /i "%one%" EQU "HS" goto:hardcodedoptions
@ -1125,6 +1138,28 @@ set watext=~~~ModMii Classic Working...
::support\nircmd.exe win hide ititle "ModMiiSkinCMD" ::support\nircmd.exe win hide ititle "ModMiiSkinCMD"
start support\wizapp PB OPEN start support\wizapp PB OPEN
::------Check for old Windows Versions-------
::ver | findstr /i "5\.0\." > nul
::IF %ERRORLEVEL% EQU 0 set OSYS=2000
::ver | findstr /i "5\.1\." > nul
::IF %ERRORLEVEL% EQU 0 set OSYS=XP
::ver | findstr /i "5\.2\." > nul
::IF %ERRORLEVEL% EQU 0 set OSYS=2003
::::ver | findstr /i "6\.0\." > nul
::::IF %ERRORLEVEL% EQU 0 set OSYS=VISTA
::::ver | findstr /i "6\.1\." > nul
::::IF %ERRORLEVEL% EQU 0 set OSYS=SEVEN
::if not "%OSYS%"=="" title ModMii
:noprogress :noprogress
::remove hard option from cmdinput.txt ::remove hard option from cmdinput.txt
@ -1135,6 +1170,7 @@ support\sfk filter temp\cmdinput.txt -rep _" Skin:%removeme%"__ -write -yes>nul
:hardcodedoptionsfinish :hardcodedoptionsfinish
::remove hard options from %cmdinput% to avoid conflict ::remove hard options from %cmdinput% to avoid conflict
set /p cmdinput= <temp\cmdinput.txt set /p cmdinput= <temp\cmdinput.txt
@ -5854,7 +5890,7 @@ if /i "%ThemeSelection%" EQU "O" goto:WPAGE21
if /i "%ThemeSelection%" EQU "N" goto:WPAGE21 if /i "%ThemeSelection%" EQU "N" goto:WPAGE21
:forsneeknand :forsneeknand
if /i "%SNEEKSELECT%" EQU "5" goto:quickskip ::if /i "%SNEEKSELECT%" EQU "5" goto:quickskip
if /i "%MENU1%" NEQ "S" goto:quickskip if /i "%MENU1%" NEQ "S" goto:quickskip
if /i "%ThemeSelection%" EQU "B" goto:SNKPAGE5 if /i "%ThemeSelection%" EQU "B" goto:SNKPAGE5
:quickskip :quickskip
@ -7425,7 +7461,11 @@ goto:SNKPAGE4d
::...................................SNEEK Page5 - SNEEK SERIAL............................... ::...................................SNEEK Page5 - SNEEK SERIAL...............................
:SNKPAGE5 :SNKPAGE5
if /i "%SNEEKSELECT%" EQU "5" (set nandexist=no) & (goto:WPAGE20) if /i "%SNEEKSELECT%" NEQ "5" goto:nocheck
set SNKSERIAL=
if "%SMAPP%"=="" (goto:WPAGE20) else (goto:nonandcheck)
:nocheck
if /i "%SNEEKTYPE:~0,1%" EQU "S" set nandpath=%DRIVE% if /i "%SNEEKTYPE:~0,1%" EQU "S" set nandpath=%DRIVE%
if /i "%SNEEKTYPE:~0,1%" EQU "U" set nandpath=%DRIVEU% if /i "%SNEEKTYPE:~0,1%" EQU "U" set nandpath=%DRIVEU%
@ -7452,6 +7492,9 @@ if exist "%nandpath%"\ticket set nandexist=yes
if exist "%nandpath%"\sys set nandexist=yes if exist "%nandpath%"\sys set nandexist=yes
if exist "%nandpath%"\shared1 set nandexist=yes if exist "%nandpath%"\shared1 set nandexist=yes
:nonandcheck
if /i "%SNEEKSELECT%" EQU "5" set settingtxtExist=yes
cls cls
echo ModMii v%currentversion% echo ModMii v%currentversion%
echo by XFlak echo by XFlak
@ -7481,7 +7524,7 @@ echo.
echo. echo.
echo Note: If you want your emulated NAND to have internet access echo Note: If you want your emulated NAND to have internet access
echo you should use the serial for your Wii echo you should use the serial for your Wii
echo (or the setting.txt from your NAND Dump) echo (or use the setting.txt from your NAND Dump)
echo. echo.
echo. echo.
echo. echo.
@ -7498,6 +7541,7 @@ set /p SNKSERIAL= Enter Selection Here:
if /i "%SNKSERIAL%" EQU "M" goto:MENU if /i "%SNKSERIAL%" EQU "M" goto:MENU
if /i "%SNKSERIAL%" NEQ "B" goto:quickskip if /i "%SNKSERIAL%" NEQ "B" goto:quickskip
if /i "%SNEEKSELECT%" EQU "5" goto:SNKPAGE4c
if /i "%SNEEKTYPE:~0,1%" EQU "S" goto:SNKPAGE4b if /i "%SNEEKTYPE:~0,1%" EQU "S" goto:SNKPAGE4b
if /i "%AbstinenceWiz%" EQU "Y" goto:SNKPAGE4c if /i "%AbstinenceWiz%" EQU "Y" goto:SNKPAGE4c
if /i "%neek2o%" EQU "ON" (goto:SNKPAGE4c) else (goto:SNKPAGE4d) if /i "%neek2o%" EQU "ON" (goto:SNKPAGE4c) else (goto:SNKPAGE4d)
@ -7512,9 +7556,9 @@ IF "%SNKSERIAL%"=="" set SNKSERIAL=9999999999999
goto:skip goto:skip
:settingsexist :settingsexist
IF "%SNKSERIAL%"=="" set SNKSERIAL=current IF "%SNKSERIAL%"=="" set SNKSERIAL=current
if /i "%SNKSERIAL%" EQU "current" goto:WPAGE20 if /i "%SNKSERIAL%" EQU "current" goto:WPAGE20
:skip :skip
::limit user input to X# of digits ::limit user input to X# of digits
@ -7619,7 +7663,10 @@ IF "%addwadfolder%"=="" (set emuitems=0) else (set emuitems=1)
set emuwadcount=%emuitems% set emuwadcount=%emuitems%
if /i "%SNEEKSELECT%" EQU "5" goto:skipthis
::if /i "%SNEEKSELECT%" NEQ "5" goto:skipthis
if /i "%SNKSERIAL%" NEQ "current" SET /a emuitems=%emuitems%+1
if /i "%SNKSERIAL%" NEQ "current" (echo * setting.txt will be created using this serial number: %SNKSERIAL%) else (echo * Existing setting.txt will be kept) if /i "%SNKSERIAL%" NEQ "current" (echo * setting.txt will be created using this serial number: %SNKSERIAL%) else (echo * Existing setting.txt will be kept)
echo. echo.
:skipthis :skipthis
@ -8386,6 +8433,11 @@ if /i "%SMAPP%" EQU "00000079" (set SNKREGION=J) & (set SNKVERSION=4.1)
if /i "%SMAPP%" EQU "0000009e" (set SNKREGION=K) & (set SNKVERSION=4.3) if /i "%SMAPP%" EQU "0000009e" (set SNKREGION=K) & (set SNKVERSION=4.3)
if /i "%SMAPP%" EQU "0000008e" (set SNKREGION=K) & (set SNKVERSION=4.2) if /i "%SMAPP%" EQU "0000008e" (set SNKREGION=K) & (set SNKVERSION=4.2)
if /i "%SMAPP%" EQU "00000082" (set SNKREGION=K) & (set SNKVERSION=4.1) if /i "%SMAPP%" EQU "00000082" (set SNKREGION=K) & (set SNKVERSION=4.1)
if /i "%SNKREGION%" EQU "U" set defaultserial=LU521175683
if /i "%SNKREGION%" EQU "E" set defaultserial=LEH133789940
if /i "%SNKREGION%" EQU "J" set defaultserial=LJM101175683
if /i "%SNKREGION%" EQU "K" set defaultserial=LJM101175683
:miniskip :miniskip
::check for priiloader ::check for priiloader
@ -14737,7 +14789,7 @@ del temp\cIOSsubversion.bat>nul
::check for recommended cIOSs and HBC ::check for recommended cIOSs and HBC
if /i "%syscheckversion%" EQU "2.0.1" goto:v2.0.1 if /i "%syscheckversion%" EQU "2.0.1" goto:v2.0.1
findStr /I /C:"Homebrew Channel 1.0.8 running on IOS58" "%sysCheckName%" >nul findStr /I /C:"Homebrew Channel 1.1.0 running on IOS58" "%sysCheckName%" >nul
IF ERRORLEVEL 1 (set HM=*) else (set HM=) IF ERRORLEVEL 1 (set HM=*) else (set HM=)
::check for any version of IOS58 ::check for any version of IOS58
@ -17546,15 +17598,15 @@ echo.
if exist "temp\DML\FixELF.exe" goto:gotfixelf if exist "temp\DML\FixELF.exe" goto:gotfixelf
if not exist "DMLr43.zip" start %ModMiimin%/wait support\wget -t 3 "http://dl.dropbox.com/u/25620767/DML/DMLr43.zip" if not exist "FixELF.zip" start %ModMiimin%/wait support\wget -t 3 "http://tiny.cc/FixELF"
if not exist "DMLr43.zip" (rd /s /q %basewad%) & (rd /s /q %basecios%) & (echo.) & (support\sfk echo [Magenta] %dlname% Failed to Download properly, Skipping download.) & (echo "support\sfk echo %wadname%.wad: [Red]Missing">>temp\ModMii_Log.bat) & (echo.) & (goto:NEXT) if not exist "FixELF.zip" (rd /s /q %basewad%) & (rd /s /q %basecios%) & (echo.) & (support\sfk echo [Magenta] %dlname% Failed to Download properly, Skipping download.) & (echo "support\sfk echo %wadname%.wad: [Red]Missing">>temp\ModMii_Log.bat) & (echo.) & (goto:NEXT)
support\7za e -aoa "DMLr43.zip" -o"temp\DML" *.* -r>nul support\7za e -aoa "FixELF.zip" -o"temp\DML" *.* -r>nul
if not exist "temp\DML\FixELF.exe" (Corrupted archive detected and deleted...) & (del "temp\DML\DMLr43.zip">nul) & (goto:NEXT) if not exist "temp\DML\FixELF.exe" (Corrupted archive detected and deleted...) & (del "temp\DML\FixELF.zip">nul) & (goto:NEXT)
del DMLr43.zip>nul del FixELF.zip>nul
:gotfixelf :gotfixelf
@ -21965,9 +22017,9 @@ if exist temp\WAD\cBC-NMMv0.2a.wad del temp\WAD\cBC-NMMv0.2a.wad>nul
if exist temp\WAD\*.wad move temp\WAD\*.wad temp\>nul if exist temp\WAD\*.wad move temp\WAD\*.wad temp\>nul
::restore setting.txt if applicable ::restore setting.txt if applicable
if /i "%SNEEKSELECT%" EQU "5" goto:skipSMW
if not exist "%nandpath%\title\00000001\00000002\data" mkdir "%nandpath%\title\00000001\00000002\data" if not exist "%nandpath%\title\00000001\00000002\data" mkdir "%nandpath%\title\00000001\00000002\data"
if /i "%SNKSERIAL%" EQU "current" move /y "%nandpath%"\setting.txt "%nandpath%"\title\00000001\00000002\data\setting.txt>nul if /i "%SNKSERIAL%" EQU "current" move /y "%nandpath%"\setting.txt "%nandpath%"\title\00000001\00000002\data\setting.txt>nul
:skipSMW :skipSMW
if exist support\ShowMiiWads.cfg del support\ShowMiiWads.cfg>nul if exist support\ShowMiiWads.cfg del support\ShowMiiWads.cfg>nul
@ -21991,11 +22043,14 @@ echo ============================================== >>"%nandpath%\nandinfo.txt"
:nomoddednand :nomoddednand
if /i "%SNEEKSELECT%" EQU "5" goto:skip ::if /i "%SNEEKSELECT%" EQU "5" goto:skip
::Build setting.txt ::Build setting.txt
if /i "%SNKSERIAL%" EQU "current" goto:skip if /i "%SNKSERIAL%" EQU "current" goto:skip
echo.
echo Building setting.txt using serial number: %SNKSERIAL%
support\settings %SNKSERIAL% >nul support\settings %SNKSERIAL% >nul
if /i "%SNKREGION%" EQU "K" move /y KORsetting.txt "%nandpath%"\title\00000001\00000002\data\setting.txt >nul if /i "%SNKREGION%" EQU "K" move /y KORsetting.txt "%nandpath%"\title\00000001\00000002\data\setting.txt >nul
@ -22110,7 +22165,7 @@ if /i "%SNKJOY%" NEQ "Y" goto:skipSNKpri
echo Adding JoyFlow forwarder dol to Priiloader's installed file. echo Adding JoyFlow forwarder dol to Priiloader's installed file.
echo. echo.
if exist temp\JoyFlow(emulators)-v11.dol move /y temp\JoyFlow(emulators)-v11.dol "%nandpath%"\title\00000001\00000002\data\main.bin>nul if exist temp\JoyFlow(emulators)-v11c.dol move /y temp\JoyFlow(emulators)-v11c.dol "%nandpath%"\title\00000001\00000002\data\main.bin>nul
:skipSNKpri :skipSNKpri
@ -22173,7 +22228,7 @@ if /i "%SNKcBC%" EQU "DML" echo DML-r%CurrentDMLRev%.WAD Constructed (install to
IF not "%addwadfolder%"=="" echo Custom Folder of WADs Installed: %addwadfolder% >>"%nandpath%\nandinfo.txt" IF not "%addwadfolder%"=="" echo Custom Folder of WADs Installed: %addwadfolder% >>"%nandpath%\nandinfo.txt"
if exist temp\JoyFlow(emulators)-v11.dol del temp\JoyFlow(emulators)-v11.dol>nul if exist temp\JoyFlow(emulators)-v11c.dol del temp\JoyFlow(emulators)-v11c.dol>nul
copy /y temp\ModMii_Log.bat temp\ModMii_Log_SNK.bat>nul copy /y temp\ModMii_Log.bat temp\ModMii_Log_SNK.bat>nul
@ -22216,6 +22271,7 @@ if /i "%SNKcBC%" EQU "DML" (set DML=*) & (set mmm=*)
if /i "%SNKJOY%" EQU "Y" set JOY=* if /i "%SNKJOY%" EQU "Y" set JOY=*
if /i "%SNKPLC%" EQU "Y" set PL=* if /i "%SNKPLC%" EQU "Y" set PL=*
if /i "%AbstinenceWiz%" EQU "Y" (set nSwitch=) & (set mmm=) & (goto:Download) if /i "%AbstinenceWiz%" EQU "Y" (set nSwitch=) & (set mmm=) & (goto:Download)
:tinyskip :tinyskip
@ -22340,7 +22396,7 @@ if /i "%cmdlinemode%" NEQ "Y" echo.
if /i "%cmdlinemode%" NEQ "Y" echo The following file(s) failed to download properly: if /i "%cmdlinemode%" NEQ "Y" echo The following file(s) failed to download properly:
if /i "%cmdlinemode%" NEQ "Y" call temp\ModMii_Log.bat if /i "%cmdlinemode%" NEQ "Y" call temp\ModMii_Log.bat
support\sfk filter -quiet "temp\ModMii_Log.bat" -rep _[Red]__ -rep _"support\sfk echo "__ -rep _"echo "__ >temp\ModMii_Log_temp.txt support\sfk filter -quiet "temp\ModMii_Log.bat" -rep _[Red]__ -rep _[def]__ -rep _"support\sfk echo "__ -rep _"echo "__ >temp\ModMii_Log_temp.txt
echo ------ >>"%nandpath%\nandinfo.txt" echo ------ >>"%nandpath%\nandinfo.txt"
echo Errors >>"%nandpath%\nandinfo.txt" echo Errors >>"%nandpath%\nandinfo.txt"
@ -24723,10 +24779,10 @@ set code1=URL
set code2="http://bootmii.org/download/" set code2="http://bootmii.org/download/"
set version=elf set version=elf
::set dlname= ::set dlname=
set wadname=hackmii_installer_v0.8.zip set wadname=hackmii_installer_v1.0.zip
set filename=boot.dol set filename=boot.elf
set path1= set path1=
set md5=8dcada755a608c70ed171ced7f9ef2f3 set md5=cfc05090ac7eac2c6711c196151c7919
goto:downloadstart goto:downloadstart
:IOS236Installer :IOS236Installer

View File

@ -1,8 +1,13 @@
@echo off @echo off
setlocal setlocal
chdir /d "%~dp0"
if not exist support cd.. if not exist support cd..
::PUSHD "%cd%"
::::PUSHD "%~dp0"
::POPD
title ModMiiSkinCMD title ModMiiSkinCMD
::make cmd window transparent and hidden ::make cmd window transparent and hidden
@ -12,13 +17,21 @@ support\nircmd.exe win hide ititle "ModMiiSkinCMD"
::-------------------CMD LINE SUPPORT---------------------- ::-------------------CMD LINE SUPPORT----------------------
::pass all arguments to modmii classic ::pass all arguments to modmii classic
set one=%~1
if "%one%"=="" (goto:notcmd)
set cmdinput=%* set cmdinput=%*
::if not "%cmdinput%"=="" ModMii.exe %cmdinput% set cmdinput=%cmdinput:"=%
if not "%cmdinput%"=="" start ModMii.exe %cmdinput%
if not "%cmdinput%"=="" Exit ::ModMii.exe %cmdinput%
start ModMii.exe %cmdinput%
Exit
:notcmd
::---------------------------------------------------------- ::----------------------------------------------------------
set currentversion=6.0.3 set currentversion=6.0.4
set currentversioncopy=%currentversion% set currentversioncopy=%currentversion%
set agreedversion= set agreedversion=
@ -36,6 +49,26 @@ set UPDATENAME=ModMii
::------Check for old Windows Versions-------
::ver | findstr /i "5\.0\." > nul
::IF %ERRORLEVEL% EQU 0 set OSYS=2000
::ver | findstr /i "5\.1\." > nul
::IF %ERRORLEVEL% EQU 0 set OSYS=XP
::ver | findstr /i "5\.2\." > nul
::IF %ERRORLEVEL% EQU 0 set OSYS=2003
::::ver | findstr /i "6\.0\." > nul
::::IF %ERRORLEVEL% EQU 0 set OSYS=VISTA
::::ver | findstr /i "6\.1\." > nul
::::IF %ERRORLEVEL% EQU 0 set OSYS=SEVEN
:DefaultSettings :DefaultSettings
::----LOAD SETTINGS (if exist)---- ::----LOAD SETTINGS (if exist)----
@ -52,9 +85,8 @@ IF "%OPTION36%"=="" set OPTION36=on
IF "%AudioOption%"=="" set AudioOption=on IF "%AudioOption%"=="" set AudioOption=on
IF "%CMIOSOPTION%"=="" set CMIOSOPTION=off IF "%CMIOSOPTION%"=="" set CMIOSOPTION=off
IF "%FWDOPTION%"=="" set FWDOPTION=on IF "%FWDOPTION%"=="" set FWDOPTION=on
IF "%Drive%"=="" set Drive=%cd%\COPY_TO_SD IF "%Drive%"=="" set Drive=COPY_TO_SD
IF "%DriveU%"=="" set DriveU=%cd%\COPY_TO_USB IF "%DriveU%"=="" set DriveU=COPY_TO_USB
IF "%ACTIVEIOS%"=="" set ACTIVEIOS=on IF "%ACTIVEIOS%"=="" set ACTIVEIOS=on
IF "%AUTOUPDATE%"=="" set AUTOUPDATE=on IF "%AUTOUPDATE%"=="" set AUTOUPDATE=on
IF "%ModMiiverbose%"=="" set ModMiiverbose=off IF "%ModMiiverbose%"=="" set ModMiiverbose=off
@ -85,20 +117,31 @@ IF "%TurboGraFX-CDcheat%"=="" set TurboGraFX-CDcheat=ON
::check if drive folder exists--if second char is ":" check if drive exists ::check if drive folder exists--if second char is ":" check if drive exists
if /i "%DRIVE:~1,1%" NEQ ":" set DRIVE=%cd%\%DRIVE% if /i "%DRIVE%" NEQ "COPY_TO_SD" goto:skip
if /i "%DRIVE%" EQU "COPY_TO_SD" set DRIVE=%cd%\COPY_TO_SD set DRIVE="%cd%\COPY_TO_SD"
if /i "%DRIVE:~1,1%" NEQ ":" goto:skipcheck set DRIVE=%DRIVE:&=^&%
if exist "%DRIVE:~0,2%" goto:skipcheck set DRIVE=%DRIVE:~1,-1%
set DRIVE=%cd%\COPY_TO_SD :skip
:skipcheck
if /i "%DRIVE:~1,1%" EQU ":" goto:skip
set DRIVE="%cd%\%DRIVE%"
set DRIVE=%DRIVE:&=^&%
set DRIVE=%DRIVE:~1,-1%
:skip
::check if DRIVEU folder exists--if second char is ":" check if DRIVEU exists ::check if DRIVEU folder exists--if second char is ":" check if DRIVEU exists
if /i "%DRIVEU:~1,1%" NEQ ":" set DRIVEU=%cd%\%DRIVEU% if /i "%DRIVEU%" NEQ "COPY_TO_USB" goto:skip
if /i "%DRIVEU:~1,1%" NEQ ":" goto:skipcheck set DRIVEU="%cd%\COPY_TO_USB"
if exist "%DRIVEU:~0,2%" goto:skipcheck set DRIVEU=%DRIVEU:&=^&%
set DRIVEU=%cd%\COPY_TO_USB set DRIVEU=%DRIVEU:~1,-1%
:skipcheck :skip
if /i "%DRIVEU:~1,1%" EQU ":" goto:skip
set DRIVEU="%cd%\%DRIVEU%"
set DRIVEU=%DRIVEU:&=^&%
set DRIVEU=%DRIVEU:~1,-1%
:skip
if /i "%ModMiiverbose%" EQU "on" support\nircmd.exe win activate ititle "ModMiiSkinCMD" if /i "%ModMiiverbose%" EQU "on" support\nircmd.exe win activate ititle "ModMiiSkinCMD"
@ -330,7 +373,7 @@ set DLQUEUE=
set waoutnum= set waoutnum=
::set waoutput= ::set waoutput=
if not exist temp\DownloadQueues mkdir temp\DownloadQueues if not exist temp\DownloadQueues mkdir temp\DownloadQueues
set waoutput=%cd%\temp\DownloadQueues\YourQueueHere.bat set waoutput=%cd:&=^&%\temp\DownloadQueues\YourQueueHere.bat
set watext=Select the ModMii Download Queue you want to download.~~Note, when you click Finish ModMii will begin downloading immediately. To view the contents of your queue before downloading it use ModMii Classic to load it.~~To create custom Download Queues use ModMii Classic. set watext=Select the ModMii Download Queue you want to download.~~Note, when you click Finish ModMii will begin downloading immediately. To view the contents of your queue before downloading it use ModMii Classic to load it.~~To create custom Download Queues use ModMii Classic.
@ -348,24 +391,24 @@ call "%wabat%"
set DLQUEUE=%waoutput% set DLQUEUE=%waoutput:&=^&%
if not exist "%DLQUEUE%" goto:PICKDOWNLOADQUEUE if not exist "%DLQUEUE%" goto:PICKDOWNLOADQUEUE
findStr /I /C:":endofqueue" "%DLQUEUE%" >nul findStr /I /C:":endofqueue" "%DLQUEUE%" >nul
IF ERRORLEVEL 1 goto:PICKDOWNLOADQUEUE IF ERRORLEVEL 1 goto:PICKDOWNLOADQUEUE
copy /y %DLQUEUE% temp\DownloadQueues >nul copy /y "%DLQUEUE%" temp\DownloadQueues >nul
::get file name without path or extension ::get file name without path or extension
echo %DLQUEUE% >temp\temp.txt echo %DLQUEUE:&=^&% >temp\temp.txt
support\sfk filter -quiet temp\temp.txt -rep _*\__ -rep _.bat*__ -write -yes support\sfk filter -quiet temp\temp.txt -rep _*\__ -rep _.bat*__ -write -yes
set /p DLQUEUE= <temp\temp.txt set /p DLQUEUE= <temp\temp.txt
if not exist "%DRIVE%" mkdir "%DRIVE%" if not exist "%DRIVE:&=^&%" mkdir "%DRIVE:&=^&%"
set classicCMD=L %DLQUEUE% set classicCMD=L %DLQUEUE:&=^&%
goto:StartModMiiClassic goto:StartModMiiClassic
@ -418,8 +461,15 @@ set OPTION36=on
set AudioOption=on set AudioOption=on
set CMIOSOPTION=off set CMIOSOPTION=off
set FWDOPTION=on set FWDOPTION=on
set Drive=%cd%\COPY_TO_SD
set DriveU=%cd%\COPY_TO_USB set DRIVE="%cd%\COPY_TO_SD"
set DRIVE=%DRIVE:&=^&%
set DRIVE=%DRIVE:~1,-1%
set DRIVEU="%cd%\COPY_TO_USB"
set DRIVEU=%DRIVEU:&=^&%
set DRIVEU=%DRIVEU:~1,-1%
set ACTIVEIOS=on set ACTIVEIOS=on
set AUTOUPDATE=on set AUTOUPDATE=on
Set ModMiiverbose=off Set ModMiiverbose=off
@ -466,8 +516,12 @@ echo Set OPTION36=%OPTION36%>> Support\settings.bat
echo Set AudioOption=%AudioOption%>> Support\settings.bat echo Set AudioOption=%AudioOption%>> Support\settings.bat
echo Set CMIOSOPTION=%CMIOSOPTION%>> Support\settings.bat echo Set CMIOSOPTION=%CMIOSOPTION%>> Support\settings.bat
echo Set FWDOPTION=%FWDOPTION%>> Support\settings.bat echo Set FWDOPTION=%FWDOPTION%>> Support\settings.bat
echo Set Drive=%DRIVE%>> Support\settings.bat
echo Set DriveU=%DRIVEU%>> Support\settings.bat
echo Set Drive=%DRIVE:&=^&%>>Support\settings.bat
echo Set DriveU=%DRIVEU:&=^&%>>Support\settings.bat
support\sfk filter -spat -quiet Support\settings.bat -rep _\x5e\x26_\x26_ -rep _\x26_\x5e\x26_ -write -yes>nul
echo Set overwritecodes=%overwritecodes%>> Support\settings.bat echo Set overwritecodes=%overwritecodes%>> Support\settings.bat
echo Set cheatregion=%cheatregion%>> Support\settings.bat echo Set cheatregion=%cheatregion%>> Support\settings.bat
echo Set cheatlocation=%cheatlocation%>> Support\settings.bat echo Set cheatlocation=%cheatlocation%>> Support\settings.bat
@ -1360,9 +1414,9 @@ if "%USBGUIDE%"=="" goto:WPAGE21
::...................................SD Card Location............................... ::...................................SD Card Location...............................
:DriveChange :DriveChange
set drivetemp=%DRIVE% set drivetemp=%DRIVE:&=^&%
set waoutnum= set waoutnum=
set waoutput=%DRIVE% set waoutput=%DRIVE:&=^&%
set wabmplast=%wabmp% set wabmplast=%wabmp%
set wabmp=support\bmp\SDCARD.bmp set wabmp=support\bmp\SDCARD.bmp
@ -1373,8 +1427,6 @@ set wabmp=support\bmp\SDCARD.bmp
set watext=~~~Select where to save files for your SD Card set watext=~~~Select where to save files for your SD Card
::support\nircmd.exe win activate ititle "ModMiiSkinCMD"
::if /i "%ModMiiverbose%" NEQ "on" support\nircmd.exe win hide ititle "ModMiiSkinCMD"
start /w support\wizapp FB DIR start /w support\wizapp FB DIR
@ -1387,40 +1439,37 @@ goto:%BACKB4DRIVE%
call "%wabat%" call "%wabat%"
set DRIVETEMP=%waoutput% set DRIVETEMP=%waoutput:&=^&%
::remove quotes from variable (if applicable) ::remove quotes from variable (if applicable)
echo "set DRIVETEMP=%DRIVETEMP%">temp\temp.txt echo "set DRIVETEMP=%DRIVETEMP%">temp\temp.txt
support\sfk filter -quiet temp\temp.txt -rep _""""__>temp\temp.bat support\sfk filter -quiet temp\temp.txt -rep _""""__>temp\temp.bat
support\sfk filter -spat -quiet temp\temp.bat -rep _\x26_\x5e\x26_ -write -yes
call temp\temp.bat call temp\temp.bat
del temp\temp.bat>nul del temp\temp.bat>nul
del temp\temp.txt>nul del temp\temp.txt>nul
:doublecheck
set fixslash=
if /i "%DRIVETEMP:~-1%" EQU "\" set fixslash=yes
if /i "%DRIVETEMP:~-1%" EQU "/" set fixslash=yes
if /i "%fixslash%" EQU "yes" set DRIVETEMP=%DRIVETEMP:~0,-1%
if /i "%fixslash%" EQU "yes" goto:doublecheck
::if second char is ":" check if drive exists ::if second char is ":" check if drive exists
if /i "%DRIVETEMP:~1,1%" NEQ ":" goto:skipcheck if /i "%DRIVETEMP:~1,1%" NEQ ":" goto:skipcheck
if exist "%DRIVETEMP:~0,2%" (goto:skipcheck) else (echo.) if exist "%DRIVETEMP:~0,2%" (goto:skipcheck) else (echo.)
goto:DRIVECHANGE goto:DRIVECHANGE
:skipcheck :skipcheck
set DRIVE=%DRIVETEMP% set DRIVE=%DRIVETEMP:&=^&%
set REALDRIVE=%DRIVE% set REALDRIVE=%DRIVE:&=^&%
::autosave drive setting to settings.bat ::autosave drive setting to settings.bat
support\sfk filter Support\settings.bat -!"Set Drive=" -write -yes>nul support\sfk filter Support\settings.bat -!"Set Drive=" -write -yes>nul
echo Set Drive=%DRIVE%>>Support\settings.bat echo Set Drive=%DRIVE:&=^&%>>Support\settings.bat
support\sfk filter -spat -quiet Support\settings.bat -rep _\x5e\x26_\x26_ -rep _\x26_\x5e\x26_ -write -yes>nul
::goto: ::goto:
set wabmp=%wabmplast% set wabmp=%wabmplast%
@ -1458,15 +1507,15 @@ if /i "%SNEEKSELECT%" EQU "1" (set backB4wpageLast=DRIVECHANGE) & (goto:WPAGELAS
::...................................USB Hard Drive Location............................... ::...................................USB Hard Drive Location...............................
:DriveUChange :DriveUChange
set driveUtemp=%DRIVEU% set driveUtemp=%DRIVEU:&=^&%
set waoutnum= set waoutnum=
set waoutput=%DRIVEU% set waoutput=%DRIVEU:&=^&%
set wabmplast=%wabmp% set wabmplast=%wabmp%
set wabmp=support\bmp\USBDIR.bmp set wabmp=support\bmp\USBDIR.bmp
::makedrive if not exist ::makedrive if not exist
::if not exist "%DRIVEU%" mkdir "%DRIVEU%" ::if not exist "%DRIVE:&=^&%" mkdir "%DRIVE:&=^&%"
set watext=~~~Select where to save files for your USB Hard Drive set watext=~~~Select where to save files for your USB Hard Drive
@ -1484,41 +1533,33 @@ goto:%BACKB4DRIVEU%
call "%wabat%" call "%wabat%"
set DRIVEUTEMP=%waoutput% set DRIVEUTEMP=%waoutput:&=^&%
::remove quotes from variable (if applicable) ::remove quotes from variable (if applicable)
echo "set DRIVEUTEMP=%DRIVEUTEMP%">temp\temp.txt echo "set DRIVEUTEMP=%DRIVEUTEMP%">temp\temp.txt
support\sfk filter -quiet temp\temp.txt -rep _""""__>temp\temp.bat support\sfk filter -quiet temp\temp.txt -rep _""""__>temp\temp.bat
support\sfk filter -spat -quiet temp\temp.bat -rep _\x26_\x5e\x26_ -write -yes
call temp\temp.bat call temp\temp.bat
del temp\temp.bat>nul del temp\temp.bat>nul
del temp\temp.txt>nul del temp\temp.txt>nul
:doublecheckU
set fixslash=
if /i "%DRIVEUTEMP:~-1%" EQU "\" set fixslash=yes
if /i "%DRIVEUTEMP:~-1%" EQU "/" set fixslash=yes
if /i "%fixslash%" EQU "yes" set DRIVEUTEMP=%DRIVEUTEMP:~0,-1%
if /i "%fixslash%" EQU "yes" goto:doublecheckU
::if second char is ":" check if drive exists ::if second char is ":" check if drive exists
if /i "%DRIVEUTEMP:~1,1%" NEQ ":" goto:skipcheck if /i "%DRIVEUTEMP:~1,1%" NEQ ":" goto:skipcheck
if exist "%DRIVEUTEMP:~0,2%" (goto:skipcheck) else (echo.) if exist "%DRIVEUTEMP:~0,2%" goto:skipcheck
echo %DRIVEUTEMP:~0,2% doesn't exist, please try again...
@ping 127.0.0.1 -n 2 -w 1000> nul
goto:DRIVEUCHANGE goto:DRIVEUCHANGE
:skipcheck :skipcheck
set DRIVEU=%DRIVEUTEMP% set DRIVEU=%DRIVEUTEMP:&=^&%
::autosave drive setting to settings.bat ::autosave drive setting to settings.bat
support\sfk filter Support\settings.bat -!"Set DriveU=" -write -yes>nul support\sfk filter Support\settings.bat -!"Set DriveU=" -write -yes>nul
echo Set DriveU=%DRIVEU%>>Support\settings.bat echo Set DriveU=%DRIVEU:&=^&%>>Support\settings.bat
support\sfk filter -spat -quiet Support\settings.bat -rep _\x5e\x26_\x26_ -rep _\x26_\x5e\x26_ -write -yes>nul
::goto: ::goto:
@ -1689,28 +1730,28 @@ set watext=Confirm your settings are correct then click "Finish"
if /i "%MENU1%" NEQ "W" goto:notwizard if /i "%MENU1%" NEQ "W" goto:notwizard
if /i "%USBCONFIG%" NEQ "USB" set watext=%watext%~~Save files to: %Drive% if /i "%USBCONFIG%" NEQ "USB" set watext=%watext%~~Save files to: %Drive:&=^&%
if /i "%USBCONFIG%" EQU "USB" set watext=%watext%~~Save files to: %Drive%~and to: %DriveU% if /i "%USBCONFIG%" EQU "USB" set watext=%watext%~~Save files to: %Drive:&=^&%~and to: %DriveU:&=^&%
:notwizard :notwizard
if /i "%MENU1%" NEQ "U" goto:notusb if /i "%MENU1%" NEQ "U" goto:notusb
if /i "%USBCONFIG%" EQU "USB" set watext=%watext%~~Save files to: %DriveU% if /i "%USBCONFIG%" EQU "USB" set watext=%watext%~~Save files to: %DriveU:&=^&%
if /i "%USBCONFIG%" NEQ "USB" set watext=%watext%~~Save files to: %Drive% if /i "%USBCONFIG%" NEQ "USB" set watext=%watext%~~Save files to: %Drive:&=^&%
:notusb :notusb
if /i "%MENU1%" NEQ "S" goto:notS if /i "%MENU1%" NEQ "S" goto:notS
if /i "%SNEEKSELECT%" NEQ "2" goto:not2 if /i "%SNEEKSELECT%" NEQ "2" goto:not2
if /i "%SNEEKTYPE:~0,1%" EQU "S" set watext=%watext%~~Save files to: %Drive% if /i "%SNEEKTYPE:~0,1%" EQU "S" set watext=%watext%~~Save files to: %Drive:&=^&%
if /i "%SNEEKTYPE:~0,1%" NEQ "S" set watext=%watext%~~Save files to: %DriveU% if /i "%SNEEKTYPE:~0,1%" NEQ "S" set watext=%watext%~~Save files to: %DriveU:&=^&%
goto:notS goto:notS
:not2 :not2
if /i "%SNEEKTYPE:~0,1%" EQU "S" set watext=%watext%~~Save files to: %Drive% if /i "%SNEEKTYPE:~0,1%" EQU "S" set watext=%watext%~~Save files to: %Drive:&=^&%
if /i "%SNEEKTYPE:~0,1%" NEQ "S" set watext=%watext%~~Save files to: %Drive%~and to: %DriveU% if /i "%SNEEKTYPE:~0,1%" NEQ "S" set watext=%watext%~~Save files to: %Drive:&=^&%~and to: %DriveU:&=^&%
:notS :notS
if /i "%MENU1%" EQU "H" set watext=%watext%~~Save files to: %Drive% if /i "%MENU1%" EQU "H" set watext=%watext%~~Save files to: %Drive:&=^&%
if /i "%MENU1%" EQU "RC" set watext=%watext%~~Save files to: %Drive% if /i "%MENU1%" EQU "RC" set watext=%watext%~~Save files to: %Drive:&=^&%
if /i "%MENU1%" EQU "H" set wainput=%wainput% HackMii Solutions Guide~ if /i "%MENU1%" EQU "H" set wainput=%wainput% HackMii Solutions Guide~
@ -2433,8 +2474,8 @@ goto:SNKPAGE2
::...................................SNEEK Page3 - SNEEK REGION............................... ::...................................SNEEK Page3 - SNEEK REGION...............................
:SNKPAGE3 :SNKPAGE3
if /i "%SNEEKTYPE:~0,1%" EQU "S" set nandpath=%DRIVE% if /i "%SNEEKTYPE:~0,1%" EQU "S" set nandpath=%DRIVE:&=^&%
if /i "%SNEEKTYPE:~0,1%" EQU "U" set nandpath=%DRIVEU% if /i "%SNEEKTYPE:~0,1%" EQU "U" set nandpath=%DRIVEU:&=^&%
set DITYPE=off set DITYPE=off
if /i "%SNEEKTYPE%" EQU "UD" set DITYPE=on if /i "%SNEEKTYPE%" EQU "UD" set DITYPE=on
@ -2704,8 +2745,8 @@ goto:SNKPAGE5
set waoutnum= set waoutnum=
set waoutput= set waoutput=
if /i "%SNEEKTYPE:~0,1%" EQU "S" set nandpath=%DRIVE% if /i "%SNEEKTYPE:~0,1%" EQU "S" set nandpath=%DRIVE:&=^&%
if /i "%SNEEKTYPE:~0,1%" EQU "U" set nandpath=%DRIVEU% if /i "%SNEEKTYPE:~0,1%" EQU "U" set nandpath=%DRIVEU:&=^&%
if /i "%neek2o%" EQU "ON" goto:DOIT if /i "%neek2o%" EQU "ON" goto:DOIT
if /i "%SNKS2U%" EQU "N" goto:quickskip if /i "%SNKS2U%" EQU "N" goto:quickskip
@ -2715,13 +2756,13 @@ if /i "%SNKREGION%" EQU "U" set nandregion=us
if /i "%SNKREGION%" EQU "E" set nandregion=eu if /i "%SNKREGION%" EQU "E" set nandregion=eu
if /i "%SNKREGION%" EQU "J" set nandregion=jp if /i "%SNKREGION%" EQU "J" set nandregion=jp
if /i "%SNKREGION%" EQU "K" set nandregion=kr if /i "%SNKREGION%" EQU "K" set nandregion=kr
if not exist "%nandpath%\nands\pl_%nandregion%" set nandpath=%nandpath%\nands\pl_%nandregion% if not exist "%nandpath:&=^&%\nands\pl_%nandregion%" set nandpath=%nandpath:&=^&%\nands\pl_%nandregion%
if not exist "%nandpath%\nands\pl_%nandregion%" goto:quickskip if not exist "%nandpath:&=^&%\nands\pl_%nandregion%" goto:quickskip
:NANDname :NANDname
SET /a NANDcount=%NANDcount%+1 SET /a NANDcount=%NANDcount%+1
if not exist "%nandpath%\nands\pl_%nandregion%%NANDcount%" set nandpath=%nandpath%\nands\pl_%nandregion%%NANDcount% if not exist "%nandpath:&=^&%\nands\pl_%nandregion%%NANDcount%" set nandpath=%nandpath:&=^&%\nands\pl_%nandregion%%NANDcount%
if not exist "%nandpath%\nands\pl_%nandregion%%NANDcount%" goto:quickskip if not exist "%nandpath:&=^&%\nands\pl_%nandregion%%NANDcount%" goto:quickskip
goto:NANDname goto:NANDname
:quickskip :quickskip
@ -3092,10 +3133,17 @@ start support\wizapp PB CLOSE
ModMii.exe %classicCMD% Skin:E ::if "%OSYS%"=="" (goto:skipforcewait)
::echo @echo off>temp\temp.bat
::echo setlocal>>temp\temp.bat
::echo call support\ModMii.bat %classicCMD% Skin:E>>temp\temp.bat
::start /wait temp\temp.bat
::start support\wizapp PB CLOSE
::goto:FINISH
:::skipforcewait
ModMii.exe %classicCMD:&=^&% Skin:E
start support\wizapp PB CLOSE start support\wizapp PB CLOSE
goto:FINISH goto:FINISH

View File

@ -1,20 +0,0 @@
;Small AutoIt (3.3.8.0) script by person66 to make ModMii.bat open with an icon
AutoItSetOption("TrayIconHide", 1)
dim $args, $HasArgs = "True"
For $i = 1 To $CMDLINE[0]
$args = $args & $CMDLINE[$I] & " "
Next
If $CMDLINE[0] = 0 Then $HasArgs = "False"
If $HasArgs = "True" Then
FileCreateShortcut(@ComSpec, @ScriptDir & "\Support\ModMii.lnk", @ScriptDir, '/c call "' & @ScriptDir & '\Support\ModMii.bat"', "", @ScriptDir & "\Support\icon.ico")
ShellExecuteWait(@ScriptDir & "\Support\ModMii.lnk", $args)
Else
if WinExists("[CLASS:WizAppWindow; TITLE:ModMii Skin]", "by XFlak") <> 0 OR WinExists("[CLASS:ConsoleWindowClass; TITLE:ModMii]", "") <> 0 then
$AlreadyOpen = MsgBox(52, "WARNING", "It appears as if you already have a ModMii Window open." & @CRLF & @CRLF & "Running more than one instance of ModMii at a time is not" & @CRLF & "reccommended and may get buggy." & @CRLF & @CRLF & "Are you sure you wish to continue?")
if $AlreadyOpen <> 6 then
exit
endif
endif
FileCreateShortcut(@ComSpec, @ScriptDir & "\Support\ModMii.lnk", @ScriptDir, '/c call "' & @ScriptDir & '\Support\ModMii.bat"', "", @ScriptDir & "\Support\icon.ico")
ShellExecute(@ScriptDir & "\Support\ModMii.lnk")
EndIf

View File

@ -6,10 +6,20 @@
Script Function: Script Function:
Move the ModMii skin window. Move the ModMii skin window.
Script Version: 1.4 Script Version: 1.6
#ce ---------------------------------------------------------------------------- #ce ----------------------------------------------------------------------------
#AutoIt3Wrapper_Autoit3Dir="C:\Program Files (x86)\AutoIt3"
#AutoIt3Wrapper_Icon="C:\ModMii\Support\icon.ico"
#AutoIt3Wrapper_OutFile=ModMiiSkin.exe
#AutoIt3Wrapper_Res_Field=ProductName|ModMii Skin Launcher
#AutoIt3Wrapper_Res_Fileversion= 1.0.0.0
#AutoIt3Wrapper_Res_Field=ProductVersion|1.0.0.0
#AutoIt3Wrapper_Res_Description=ModMii Skin Launcher
#AutoIt3Wrapper_Res_LegalCopyright=ModMii by XFlak, Launcher by person66
#AutoIt3Wrapper_UseX64=N
#include <Process.au3> #include <Process.au3>
AutoItSetOption("TrayIconHide", 1) AutoItSetOption("TrayIconHide", 1)
@ -25,14 +35,13 @@ if $HasArgs = "True" then
For $i = 1 To $CMDLINE[0] For $i = 1 To $CMDLINE[0]
$args = $args & $CMDLINE[$I] & " " $args = $args & $CMDLINE[$I] & " "
Next Next
FileCreateShortcut(@ComSpec, @ScriptDir & "\Support\ModMii.lnk", @ScriptDir, '/c call "' & @ScriptDir & '\Support\ModMii.bat"', "", @ScriptDir & "\Support\icon.ico") ShellExecuteWait(@ScriptDir & "\ModMii.exe", $args)
ShellExecuteWait(@ScriptDir & "\Support\ModMii.lnk", $args)
exit exit
endif endif
;Check if other ModMii windows are open ;Check if other ModMii windows are open
if WinExists("[CLASS:WizAppWindow; TITLE:ModMii Skin]", "by XFlak") <> 0 OR WinExists("[CLASS:ConsoleWindowClass; TITLE:ModMii]", "") <> 0 then if WinExists("[CLASS:WizAppWindow; TITLE:ModMii Skin]", "by XFlak") <> 0 OR WinExists("[CLASS:ConsoleWindowClass; TITLE:ModMii]", "") <> 0 then
$AlreadyOpen = MsgBox(52, "WARNING", "It appears as if you already have a ModMii Window open." & @CRLF & @CRLF & "Running more than one instance of ModMii at a time is not" & @CRLF & "reccommended and may get buggy." & @CRLF & @CRLF & "Are you sure you wish to continue?") $AlreadyOpen = MsgBox(52, "WARNING", "It appears as if you already have a ModMii Window open." & @CRLF & @CRLF & "Running more than one instance of ModMii at a time is not" & @CRLF & "recommended and may get buggy." & @CRLF & @CRLF & "Are you sure you wish to continue?")
if $AlreadyOpen <> 6 then if $AlreadyOpen <> 6 then
exit exit
endif endif
@ -50,7 +59,7 @@ if $AlreadyOpen = 0 then
EndIf EndIf
;Main part ;Main part
ShellExecute(@ComSpec, '/c call "' & @ScriptDir & '\Support\ModMiiSkin.bat"') ShellExecute(@ComSpec, '/c call "' & @ScriptDir & '\Support\ModMiiSkin.bat"', "", "", @SW_HIDE)
$run = WinWait("ModMii Skin", "by XFlak", $WaitTime) $run = WinWait("ModMii Skin", "by XFlak", $WaitTime)
if $run = 0 then if $run = 0 then

View File

@ -0,0 +1,4 @@
Script by person66 for XFlak
To compile you can use Microsoft Visual C# Express. If you want to change the icon go in to Source\ModMii_Launcher and replace the icon.ico with the new one and recompile. Feel free to edit however you want.

View File

@ -0,0 +1,20 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual C# Express 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModMii_Launcher", "ModMii_Launcher\ModMii_Launcher.csproj", "{75A1E231-C7EB-4C42-B8AE-3FAA0874E7A0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{75A1E231-C7EB-4C42-B8AE-3FAA0874E7A0}.Debug|x86.ActiveCfg = Debug|x86
{75A1E231-C7EB-4C42-B8AE-3FAA0874E7A0}.Debug|x86.Build.0 = Debug|x86
{75A1E231-C7EB-4C42-B8AE-3FAA0874E7A0}.Release|x86.ActiveCfg = Release|x86
{75A1E231-C7EB-4C42-B8AE-3FAA0874E7A0}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

View File

@ -0,0 +1,97 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{75A1E231-C7EB-4C42-B8AE-3FAA0874E7A0}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ModMii_Launcher</RootNamespace>
<AssemblyName>ModMii_Launcher</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>icon.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Windows.Forms" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="icon.ico" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View File

@ -0,0 +1,68 @@
using System.Diagnostics;
using System.Windows.Forms;
using System;
using System.Runtime.InteropServices;
//Launcher written by person66
namespace ModMii_Launcher
{
class Program
{
[DllImport("kernel32.dll")]
static extern bool FreeConsole();
[DllImport("kernel32.dll")]
static extern bool AllocConsole();
[DllImport("kernel32.dll")]
static extern bool AttachConsole(uint dwProcessId);
[DllImport("User32.dll")]
public static extern Int32 SetForegroundWindow(int hWnd);
static void Main(string[] args)
{
if (args.Length <= 0)
{
Process[] processes = Process.GetProcessesByName("cmd");
foreach (Process x in processes)
{
FreeConsole();
AttachConsole(Convert.ToUInt16(x.Id));
if (Console.Title == "ModMii")
AlreadyOpen(args);
}
processes = Process.GetProcessesByName("WizApp");
foreach (Process x in processes)
{
if (x.MainWindowTitle == "ModMii Skin")
AlreadyOpen(args);
}
}
FreeConsole();
AllocConsole();
SetForegroundWindow(System.Diagnostics.Process.GetCurrentProcess().MainWindowHandle.ToInt32());
RunApp(args);
}
private static void AlreadyOpen(string[] args)
{
DialogResult msg = MessageBox.Show("It appears as if you already have a ModMii Window open.\n\nRunning more than one instance of ModMii at a time is not\nrecommended and may get buggy.\n\nAre you sure you wish to continue?", "WARNING", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation);
if (msg == DialogResult.No)
Environment.Exit(0);
}
private static void RunApp(string[] args)
{
Console.Title = "ModMii";
Process p = new Process();
p.StartInfo.FileName = Environment.GetEnvironmentVariable("COMSPEC");
p.StartInfo.Arguments = " /c call " + "\"" + Application.StartupPath + "/Support/ModMii.bat\" " + string.Join(" ", args);
p.StartInfo.WorkingDirectory = Application.StartupPath + "/Support/";
p.StartInfo.UseShellExecute = false;
p.Start();
if (args.Length > 0)
{
p.WaitForExit();
}
}
}
}

View File

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("ModMii Launcher")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ModMii Launcher")]
[assembly: AssemblyCopyright("ModMii by XFlak, Launcher by person66")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("2c726ad6-2c29-430f-9e44-92d025160689")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -0,0 +1,3 @@
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>

View File

@ -0,0 +1,3 @@
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>

View File

@ -0,0 +1,3 @@
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>

View File

@ -0,0 +1,3 @@
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

View File

@ -0,0 +1 @@
C:\ModMii\tests\ModMii_Launcher\bin\Debug\ModMii_Launcher.exe.config

View File

@ -0,0 +1,6 @@
C:\ModMii\tests\ModMii_Launcher\bin\Release\ModMii_Launcher.exe.config
C:\ModMii\tests\ModMii_Launcher\bin\Release\ModMii_Launcher.exe
C:\ModMii\tests\ModMii_Launcher\bin\Release\ModMii_Launcher.pdb
C:\ModMii\tests\ModMii_Launcher\obj\x86\Release\ResolveAssemblyReference.cache
C:\ModMii\tests\ModMii_Launcher\obj\x86\Release\ModMii_Launcher.exe
C:\ModMii\tests\ModMii_Launcher\obj\x86\Release\ModMii_Launcher.pdb