This commit is contained in:
Nayla Hanegan 2024-09-28 20:23:25 -04:00
commit 1b8bdf7de7
899 changed files with 294977 additions and 411008 deletions

Binary file not shown.

View file

@ -1,19 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE datafile PUBLIC "-//Logiqx//DTD ROM Management Datafile//EN" "http://www.logiqx.com/Dats/datafile.dtd"[]>
<datafile>
<header>
<name>Custom Dat</name>
<description>Created by NKit</description>
<category>Games</category>
<version>1</version>
<date>20180614</date>
<author>You</author>
<email>-not specified-</email>
<homepage>-not specified-</homepage>
<url>-not specified-</url>
<comment>-not specified-</comment>
<clrmamepro />
</header>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE datafile PUBLIC "-//Logiqx//DTD ROM Management Datafile//EN" "http://www.logiqx.com/Dats/datafile.dtd"[]>
<datafile>
<header>
<name>Custom Dat</name>
<description>Created by NKit</description>
<category>Games</category>
<version>1</version>
<date>20180614</date>
<author>You</author>
<email>-not specified-</email>
<homepage>-not specified-</homepage>
<url>-not specified-</url>
<comment>-not specified-</comment>
<clrmamepro />
</header>
</datafile>

View file

@ -1,19 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE datafile PUBLIC "-//Logiqx//DTD ROM Management Datafile//EN" "http://www.logiqx.com/Dats/datafile.dtd"[]>
<datafile>
<header>
<name>Custom Dat</name>
<description>Created by NKit</description>
<category>Games</category>
<version>1</version>
<date>20180614</date>
<author>You</author>
<email>-not specified-</email>
<homepage>-not specified-</homepage>
<url>-not specified-</url>
<comment>-not specified-</comment>
<clrmamepro />
</header>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE datafile PUBLIC "-//Logiqx//DTD ROM Management Datafile//EN" "http://www.logiqx.com/Dats/datafile.dtd"[]>
<datafile>
<header>
<name>Custom Dat</name>
<description>Created by NKit</description>
<category>Games</category>
<version>1</version>
<date>20180614</date>
<author>You</author>
<email>-not specified-</email>
<homepage>-not specified-</homepage>
<url>-not specified-</url>
<comment>-not specified-</comment>
<clrmamepro />
</header>
</datafile>

View file

@ -1,19 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE datafile PUBLIC "-//Logiqx//DTD ROM Management Datafile//EN" "http://www.logiqx.com/Dats/datafile.dtd"[]>
<datafile>
<header>
<name> REPLACE THIS FILE WITH THE WII REDUMP.DAT </name>
<description>Created by NKit</description>
<category>Games</category>
<version>1</version>
<date>20180614</date>
<author>You</author>
<email>-not specified-</email>
<homepage>-not specified-</homepage>
<url>-not specified-</url>
<comment>-not specified-</comment>
<clrmamepro />
</header>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE datafile PUBLIC "-//Logiqx//DTD ROM Management Datafile//EN" "http://www.logiqx.com/Dats/datafile.dtd"[]>
<datafile>
<header>
<name> REPLACE THIS FILE WITH THE WII REDUMP.DAT </name>
<description>Created by NKit</description>
<category>Games</category>
<version>1</version>
<date>20180614</date>
<author>You</author>
<email>-not specified-</email>
<homepage>-not specified-</homepage>
<url>-not specified-</url>
<comment>-not specified-</comment>
<clrmamepro />
</header>
</datafile>

File diff suppressed because one or more lines are too long

View file

@ -1,84 +1,84 @@
- - - - - -__- - -.- - - -.- - -.- - -.- - \|/.- - -.- - -.-__- -.- - - -
. . ___/ |__ . __ . . . . . --O--. __ . ___/ | _____ . .
\__ + \ ___/ |__ __ . __ /|\___/ |__ \__ |/ + / .
. . / | + \\__ \ ___/ |__.___/ |__ \__ \ ./ | / .
. /+ | \/ _| \\__ \\__ \ / | \/ + + /_ .
. / |+ \ \_ \/ | \/ | \/ | \ | \ . .
. / + | + \_ | \_ | \_ | \_ | \_+ | + \ .
. _/ + |_______/ |______/ |_____/ ______/ _______/ | \_ .
.\ + |==\______|===\_____|==\_____|==\______|==\______|+ + /
- - \_______| - - - - - - - Proudly Presents - - - - - - - |_______/ - -
NKit - Tools to Recover / Preserve Wii and GameCube Disc Images
.
. . .
Overview
----------------------------------------------------------------------------
NKit is a Nintendo ToolKit that can Recover and Preserve Wii and GameCube
disc images
Recovery is the ability to rebuild source images to match the known good
images verified by Redump
Preserve is the ability to shrink any image and convert it back to the
source iso
NKit can convert to ISO and NKit format. The NKit format is designed to
shrink an image to it's smallest while ensuring it can be restored back to
the original source data. NKit images are also playable by Dolphin
Read the Docs :) - https://wiki.gbatemp.net/wiki/NKit
.
. . .
Features
----------------------------------------------------------------------------
- Recovery and Preservation of GameCube and Wii images
- NKit Format (smallest format, Dolphin compatible, GC is h/w compatible)
- GC NKit format aligns audio and tgc files to 32k for playability
- Wii NKit format removes hashes and encryption (Dolphin Compatible)
- Reusable library for use in other projects
- Test Mode
- Summary log of all conversions
- Rename images that match Dat file entries to a configurable mask
- Supports 100% of Redump images (Unlicensed, All Regions, Multi Disc etc)
- Scrubbed and Hacked preservation support
Formats
- GCZ support
- ISO.DEC read support
- WBFS read support
- ISO support
- RVT-R Wii ISO read support
- NKit Format support (smallest format and Dolphin compatible)
- Read the above images from Rar/Zip/7zip etc
Recovery Abilities
- Insert missing Wii Update (inc rare extra data), Channel / VC partitions
- Replace Brickblocked Update partitions
- Auto fixes modified disc headers (where the Data header remains intact)
- Fixes rare corrupt Wii partition table (caused by WBM)
- Fixes scrubbed trailing file 0's
- Fixes truncated Wii images (where the Data partition is intact)
- Fixes slightly overdumped images (from descramble tools)
- Fixes Wii Data partitions moved before 0xF800000 to save space
- Fixes compacted GC images
- Fixes moved and reordered GC files
- Fixes modified GC headers (inc. title, region hacks)
- Fixes mod chip modified GC apploaders
- Fixes GC images with non conformant junk
- Fixes modified Wii region and ratings
- Support for GC images with junk not generated with the image ID
.
. . .
Requirements
- Windows | Linux | Mac
- .Net or Mono 4.6.1 (Will be ported to dotnet core 3.0 soon)
- Wine for Apps under Linux and Mac
.
. . .
- - - - - -__- - -.- - - -.- - -.- - -.- - \|/.- - -.- - -.-__- -.- - - -
. . ___/ |__ . __ . . . . . --O--. __ . ___/ | _____ . .
\__ + \ ___/ |__ __ . __ /|\___/ |__ \__ |/ + / .
. . / | + \\__ \ ___/ |__.___/ |__ \__ \ ./ | / .
. /+ | \/ _| \\__ \\__ \ / | \/ + + /_ .
. / |+ \ \_ \/ | \/ | \/ | \ | \ . .
. / + | + \_ | \_ | \_ | \_ | \_+ | + \ .
. _/ + |_______/ |______/ |_____/ ______/ _______/ | \_ .
.\ + |==\______|===\_____|==\_____|==\______|==\______|+ + /
- - \_______| - - - - - - - Proudly Presents - - - - - - - |_______/ - -
NKit - Tools to Recover / Preserve Wii and GameCube Disc Images
.
. . .
Overview
----------------------------------------------------------------------------
NKit is a Nintendo ToolKit that can Recover and Preserve Wii and GameCube
disc images
Recovery is the ability to rebuild source images to match the known good
images verified by Redump
Preserve is the ability to shrink any image and convert it back to the
source iso
NKit can convert to ISO and NKit format. The NKit format is designed to
shrink an image to it's smallest while ensuring it can be restored back to
the original source data. NKit images are also playable by Dolphin
Read the Docs :) - https://wiki.gbatemp.net/wiki/NKit
.
. . .
Features
----------------------------------------------------------------------------
- Recovery and Preservation of GameCube and Wii images
- NKit Format (smallest format, Dolphin compatible, GC is h/w compatible)
- GC NKit format aligns audio and tgc files to 32k for playability
- Wii NKit format removes hashes and encryption (Dolphin Compatible)
- Reusable library for use in other projects
- Test Mode
- Summary log of all conversions
- Rename images that match Dat file entries to a configurable mask
- Supports 100% of Redump images (Unlicensed, All Regions, Multi Disc etc)
- Scrubbed and Hacked preservation support
Formats
- GCZ support
- ISO.DEC read support
- WBFS read support
- ISO support
- RVT-R Wii ISO read support
- NKit Format support (smallest format and Dolphin compatible)
- Read the above images from Rar/Zip/7zip etc
Recovery Abilities
- Insert missing Wii Update (inc rare extra data), Channel / VC partitions
- Replace Brickblocked Update partitions
- Auto fixes modified disc headers (where the Data header remains intact)
- Fixes rare corrupt Wii partition table (caused by WBM)
- Fixes scrubbed trailing file 0's
- Fixes truncated Wii images (where the Data partition is intact)
- Fixes slightly overdumped images (from descramble tools)
- Fixes Wii Data partitions moved before 0xF800000 to save space
- Fixes compacted GC images
- Fixes moved and reordered GC files
- Fixes modified GC headers (inc. title, region hacks)
- Fixes mod chip modified GC apploaders
- Fixes GC images with non conformant junk
- Fixes modified Wii region and ratings
- Support for GC images with junk not generated with the image ID
.
. . .
Requirements
- Windows | Linux | Mac
- .Net or Mono 4.6.1 (Will be ported to dotnet core 3.0 soon)
- Wine for Apps under Linux and Mac
.
. . .

View file

@ -1,30 +0,0 @@
@echo off
setlocal enabledelayedexpansion
REM Get a list of ISO files in the same directory as the script
for %%F in ("%~dp0*.iso") do (
set "iso_files=!iso_files! "%%F""
)
REM Check if there are no ISO files
if not defined iso_files (
echo.
echo No ISO files found in the same directory as the script.
echo Place the Mario Party 4 (USA) (v1.00) ISO in the script's directory and run it again.
echo.
pause
exit /b 0
)
REM Iterate over each ISO file and process it
for %%I in (%iso_files%) do (
echo.
echo Given "%%~I"
xdelta3.exe -d -s "%%~I" data.xdelta3 "Mario Party 4 (USA) (v1.01).iso"
echo Press Enter to exit.
set /p "=<" NUL
)
echo.
pause
exit /b 0

View file

@ -1 +0,0 @@
Place the Mario Party 4 (USA) (v1.00) ISO in the script's directory and run the patch script to patch it.

View file

@ -0,0 +1,28 @@
@echo off
REM Initialize the iso_file variable
set "iso_file="
REM Get the first ISO file in the same directory as the script
for %%F in ("%~dp0*.iso") do (
set "iso_file=%%~F"
goto :found_iso
)
:not_found
echo.
echo No ISO files found in the same directory as the script.
echo Place the Mario Party 4 (USA) (v1.01) ISO in the script's directory and run it again.
echo.
pause
exit /b 0
:found_iso
echo.
echo Given "%iso_file%"
xdelta3.exe -d -s "%iso_file%" data.xdelta3 "Mario Party 4 (USA) [Widescreen].iso"
echo.
echo Press Enter to exit.
pause
exit /b 0

View file

@ -1,27 +1,27 @@
#!/bin/bash
# Get a list of ISO files in the same directory as the script
iso_files=$(find "$(dirname "$0")" -maxdepth 1 -type f -iname "*.iso")
# Check if there are no ISO files
if [ -z "$iso_files" ]; then
echo ""
echo "No ISO files found in the same directory as the script."
echo "Place the Mario Party 4 (USA) (v1.01) ISO in the script's directory and run it again."
echo ""
read -p "Press Enter to exit..."
exit 0
fi
# Iterate over each ISO file and process it
for originalISO in $iso_files; do
echo ""
echo "Given \"$originalISO\""
xdelta3 -d -s "$originalISO" data.xdelta3 "Mario Party 4 (USA) [Widescreen].iso"
echo "Press Enter to exit."
read -p ""
done
echo ""
read -p "Press Enter to exit..."
exit 0
#!/bin/bash
# Get a list of ISO files in the same directory as the script
iso_files=$(find "$(dirname "$0")" -maxdepth 1 -type f -iname "*.iso")
# Check if there are no ISO files
if [ -z "$iso_files" ]; then
echo ""
echo "No ISO files found in the same directory as the script."
echo "Place the Mario Party 4 (USA) (v1.01) ISO in the script's directory and run it again."
echo ""
read -p "Press Enter to exit..."
exit 0
fi
# Iterate over each ISO file and process it
for originalISO in $iso_files; do
echo ""
echo "Given \"$originalISO\""
xdelta3 -d -s "$originalISO" data.xdelta3 "Mario Party 4 (USA) [Widescreen].iso"
echo "Press Enter to exit."
read -p ""
done
echo ""
read -p "Press Enter to exit..."
exit 0

View file

@ -0,0 +1,3 @@
Place the Mario Party 4 (USA) (v1.01) ISO in the script's directory and run the patch script to patch it.
This patch will convert your game to a widescreen version.

View file

@ -0,0 +1,28 @@
@echo off
REM Initialize the iso_file variable
set "iso_file="
REM Get the first ISO file in the same directory as the script
for %%F in ("%~dp0*.iso") do (
set "iso_file=%%~F"
goto :found_iso
)
:not_found
echo.
echo No ISO files found in the same directory as the script.
echo Place the Mario Party 4 (USA) (v1.00) ISO in the script's directory and run it again.
echo.
pause
exit /b 0
:found_iso
echo.
echo Given "%iso_file%"
xdelta3.exe -d -s "%iso_file%" data.xdelta3 "Mario Party 4 (USA) (v1.01).iso"
echo.
echo Press Enter to exit.
pause
exit /b 0

View file

@ -1,27 +1,27 @@
#!/bin/bash
# Get a list of ISO files in the same directory as the script
iso_files=$(find "$(dirname "$0")" -maxdepth 1 -type f -iname "*.iso")
# Check if there are no ISO files
if [ -z "$iso_files" ]; then
echo ""
echo "No ISO files found in the same directory as the script."
echo "Place the Mario Party 4 (USA) (v1.00) ISO in the script's directory and run it again."
echo ""
read -p "Press Enter to exit..."
exit 0
fi
# Iterate over each ISO file and process it
for originalISO in $iso_files; do
echo ""
echo "Given \"$originalISO\""
xdelta3 -d -s "$originalISO" data.xdelta3 "Mario Party 4 (USA) (v1.01).iso"
echo "Press Enter to exit."
read -p ""
done
echo ""
read -p "Press Enter to exit..."
#!/bin/bash
# Get a list of ISO files in the same directory as the script
iso_files=$(find "$(dirname "$0")" -maxdepth 1 -type f -iname "*.iso")
# Check if there are no ISO files
if [ -z "$iso_files" ]; then
echo ""
echo "No ISO files found in the same directory as the script."
echo "Place the Mario Party 4 (USA) (v1.00) ISO in the script's directory and run it again."
echo ""
read -p "Press Enter to exit..."
exit 0
fi
# Iterate over each ISO file and process it
for originalISO in $iso_files; do
echo ""
echo "Given \"$originalISO\""
xdelta3 -d -s "$originalISO" data.xdelta3 "Mario Party 4 (USA) (v1.01).iso"
echo "Press Enter to exit."
read -p ""
done
echo ""
read -p "Press Enter to exit..."
exit 0

View file

@ -0,0 +1,3 @@
Place the Mario Party 4 (USA) (v1.00) ISO in the script's directory and run the patch script to patch it.
This patch will convert your game from a v1.00 rom to a v1.01 rom.

View file

@ -1,30 +0,0 @@
@echo off
setlocal enabledelayedexpansion
REM Get a list of ISO files in the same directory as the script
for %%F in ("%~dp0*.iso") do (
set "iso_files=!iso_files! "%%F""
)
REM Check if there are no ISO files
if not defined iso_files (
echo.
echo No ISO files found in the same directory as the script.
echo Place the Mario Party 4 (USA) (v1.01) ISO in the script's directory and run it again.
echo.
pause
exit /b 0
)
REM Iterate over each ISO file and process it
for %%I in (%iso_files%) do (
echo.
echo Given "%%~I"
xdelta3.exe -d -s "%%~I" data.xdelta3 "Mario Party 4 (USA) [Widescreen].iso"
echo Press Enter to exit.
set /p "=<" NUL
)
echo.
pause
exit /b 0

View file

@ -1 +0,0 @@
Place the Mario Party 4 (USA) (v1.01) ISO in the script's directory and run the patch script to patch it.

View file

@ -0,0 +1,28 @@
@echo off
REM Initialize the iso_file variable
set "iso_file="
REM Get the first ISO file in the same directory as the script
for %%F in ("%~dp0*.iso") do (
set "iso_file=%%~F"
goto :found_iso
)
:not_found
echo.
echo No ISO files found in the same directory as the script.
echo Place the Mario Party 5 (USA) ISO in the script's directory and run it again.
echo.
pause
exit /b 0
:found_iso
echo.
echo Given "%iso_file%"
xdelta3.exe -d -s "%iso_file%" data.xdelta3 "Mario Party 5 with Shops.iso"
echo.
echo Press Enter to exit.
pause
exit /b 0

View file

@ -1,27 +1,27 @@
#!/bin/bash
# Get a list of ISO files in the same directory as the script
iso_files=$(find "$(dirname "$0")" -maxdepth 1 -type f -iname "*.iso")
# Check if there are no ISO files
if [ -z "$iso_files" ]; then
echo ""
echo "No ISO files found in the same directory as the script."
echo "Place the Mario Party 5 (USA) ISO in the script's directory and run it again."
echo ""
read -p "Press Enter to exit..."
exit 0
fi
# Iterate over each ISO file and process it
for originalISO in $iso_files; do
echo ""
echo "Given \"$originalISO\""
xdelta3 -d -s "$originalISO" data.xdelta3 "Mario Party 5 With Shops.iso"
echo "Press Enter to exit."
read -p ""
done
echo ""
read -p "Press Enter to exit..."
exit 0
#!/bin/bash
# Get a list of ISO files in the same directory as the script
iso_files=$(find "$(dirname "$0")" -maxdepth 1 -type f -iname "*.iso")
# Check if there are no ISO files
if [ -z "$iso_files" ]; then
echo ""
echo "No ISO files found in the same directory as the script."
echo "Place the Mario Party 5 (USA) ISO in the script's directory and run it again."
echo ""
read -p "Press Enter to exit..."
exit 0
fi
# Iterate over each ISO file and process it
for originalISO in $iso_files; do
echo ""
echo "Given \"$originalISO\""
xdelta3 -d -s "$originalISO" data.xdelta3 "Mario Party 5 With Shops.iso"
echo "Press Enter to exit."
read -p ""
done
echo ""
read -p "Press Enter to exit..."
exit 0

View file

@ -1,4 +1,6 @@
Place the Mario Party 5 (USA) ISO in the script's directory and run the patch script to patch it.
Refer to this list for descriptions of capsules:
Place the Mario Party 5 (USA) ISO in the script's directory and run the patch script to patch it.
This patch will convert your game to a version that adds shops.
Refer to this list for descriptions of capsules:
https://www.mariowiki.com/Mario_Party_5#Capsules

View file

@ -0,0 +1,28 @@
@echo off
REM Initialize the iso_file variable
set "iso_file="
REM Get the first ISO file in the same directory as the script
for %%F in ("%~dp0*.iso") do (
set "iso_file=%%~F"
goto :found_iso
)
:not_found
echo.
echo No ISO files found in the same directory as the script.
echo Place the Mario Party 5 (USA) ISO in the script's directory and run it again.
echo.
pause
exit /b 0
:found_iso
echo.
echo Given "%iso_file%"
xdelta3.exe -d -s "%iso_file%" data.xdelta3 "Mario Party 5 [Widescreen].iso"
echo.
echo Press Enter to exit.
pause
exit /b 0

View file

@ -1,27 +1,27 @@
#!/bin/bash
# Get a list of ISO files in the same directory as the script
iso_files=$(find "$(dirname "$0")" -maxdepth 1 -type f -iname "*.iso")
# Check if there are no ISO files
if [ -z "$iso_files" ]; then
echo ""
echo "No ISO files found in the same directory as the script."
echo "Place the Mario Party 5 (USA) ISO in the script's directory and run it again."
echo ""
read -p "Press Enter to exit..."
exit 0
fi
# Iterate over each ISO file and process it
for originalISO in $iso_files; do
echo ""
echo "Given \"$originalISO\""
xdelta3 -d -s "$originalISO" data.xdelta3 "Mario Party 5 (USA) [Widescreen].iso"
echo "Press Enter to exit."
read -p ""
done
echo ""
read -p "Press Enter to exit..."
#!/bin/bash
# Get a list of ISO files in the same directory as the script
iso_files=$(find "$(dirname "$0")" -maxdepth 1 -type f -iname "*.iso")
# Check if there are no ISO files
if [ -z "$iso_files" ]; then
echo ""
echo "No ISO files found in the same directory as the script."
echo "Place the Mario Party 5 (USA) ISO in the script's directory and run it again."
echo ""
read -p "Press Enter to exit..."
exit 0
fi
# Iterate over each ISO file and process it
for originalISO in $iso_files; do
echo ""
echo "Given \"$originalISO\""
xdelta3 -d -s "$originalISO" data.xdelta3 "Mario Party 5 (USA) [Widescreen].iso"
echo "Press Enter to exit."
read -p ""
done
echo ""
read -p "Press Enter to exit..."
exit 0

View file

@ -0,0 +1,3 @@
Place the Mario Party 5 (USA) ISO in the script's directory and run the patch script to patch it.
This patch will convert your game to a widescreen version.

View file

@ -1,30 +0,0 @@
@echo off
setlocal enabledelayedexpansion
REM Get a list of ISO files in the same directory as the script
for %%F in ("%~dp0*.iso") do (
set "iso_files=!iso_files! "%%F""
)
REM Check if there are no ISO files
if not defined iso_files (
echo.
echo No ISO files found in the same directory as the script.
echo Place the Mario Party 5 (USA) ISO in the script's directory and run it again.
echo.
pause
exit /b 0
)
REM Iterate over each ISO file and process it
for %%I in (%iso_files%) do (
echo.
echo Given "%%~I"
xdelta3.exe -d -s "%%~I" data.xdelta3 "Mario Party 5 with Shops.iso"
echo Press Enter to exit.
set /p "=<" NUL
)
echo.
pause
exit /b 0

View file

@ -1,30 +0,0 @@
@echo off
setlocal enabledelayedexpansion
REM Get a list of ISO files in the same directory as the script
for %%F in ("%~dp0*.iso") do (
set "iso_files=!iso_files! "%%F""
)
REM Check if there are no ISO files
if not defined iso_files (
echo.
echo No ISO files found in the same directory as the script.
echo Place the Mario Party 5 (USA) ISO in the script's directory and run it again.
echo.
pause
exit /b 0
)
REM Iterate over each ISO file and process it
for %%I in (%iso_files%) do (
echo.
echo Given "%%~I"
xdelta3.exe -d -s "%%~I" data.xdelta3 "Mario Party 5 [Widescreen].iso"
echo Press Enter to exit.
set /p "=<" NUL
)
echo.
pause
exit /b 0

View file

@ -1 +0,0 @@
Place the Mario Party 5 (USA) ISO in the script's directory and run the patch script to patch it.

View file

@ -0,0 +1,115 @@
@echo off
title Mario Party 6 - Custom Orb Expansion Patcher
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Mario Party 6 - Custom Orb Expansion Patcher!
echo How do you wish to export your game.
echo.
echo 1: RVZ (Recommended for Dolphin)
echo 2: ISO (Recommended for SwissGC)
echo 3: Exit Patcher
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
choice /c 123 > NUL
if errorlevel 3 exit
if errorlevel 2 set PATCHER=ISO
if errorlevel 1 set PATCHER=RVZ
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Setting up patcher!
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
rmdir /s /q tmp
set "iso_files="
for %%F in ("%~dp0*.iso") do (
set "iso_files=!iso_files! !%%~F!"
)
for %%F in ("%~dp0*.rvz") do (
set "iso_files=!iso_files! !%%~F!"
)
if not defined iso_files (
cls
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo No ISO or RVZ files found in the same directory as the script.
echo Place the Mario Party 6 (USA^) ISO or RVZ in the script's directory and run it again.
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo.
echo Press any key to exit...
pause
exit /b 0
)
cls
mkdir tmp > NUL
for %%F in ("%~dp0*.rvz") do (
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Converting RVZ to ISO! This is needed to patch the game...
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
"tools/dolphintool" convert -i "%%~F" -f "iso" -o "tmp/tmp.iso"
cls
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Extracting Gamespace! This may take awhile depending on computer speed...
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
"tools/pyisotools" "tmp/tmp.iso" E "--dest=tmp/"
cls
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Copying mod data!
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
xcopy "store" "tmp\root\" /s /y /e
cls
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Rebuilding! This may take awhile depending on computer speed...
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
"tools/pyisotools" tmp/root/ B "--dest=../../game.iso"
rmdir /s /q tmp
)
for %%F in ("%~dp0*.iso") do (
cls
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Extracting Gamespace! This may take awhile depending on computer speed...
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
"tools/pyisotools" "%%~F" E "--dest=tmp/"
cls
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Copying mod data!
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
xcopy "store" "tmp\root\" /s /y /e
cls
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Rebuilding! This may take awhile depending on computer speed...
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
"tools/pyisotools" tmp/root/ B "--dest=../../game.iso"
rmdir /s /q tmp
)
if "%PATCHER%"=="RVZ" (
cls
"tools/dolphintool" convert -i "game.iso" -o "Mario Party 6 (USA) [Custom Orb Expansion].rvz" -f "rvz" -b "131072" -c "zstd" -l "5"
del "game.iso"
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Success! Your game is located in "Mario Party 6 (USA) [Custom Orb Expansion].rvz"
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
)
if "%PATCHER%"=="ISO" (
cls
move "game.iso" "Mario Party 6 (USA) [Custom Orb Expansion].iso"
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Success! Your game is located in "Mario Party 6 (USA) [Custom Orb Expansion].iso"
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
)
echo.
echo Press any key to exit...
pause > NUL
exit /b 0

View file

@ -0,0 +1,5 @@
Place the Mario Party 6 (USA) ISO / RVZ in the script's directory and run the patch script to patch it.
This patch will convert your game to one with custom orbs.
Last updated Feb 8, 2024

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

View file

@ -0,0 +1,28 @@
@echo off
REM Initialize the iso_file variable
set "iso_file="
REM Get the first ISO file in the same directory as the script
for %%F in ("%~dp0*.iso") do (
set "iso_file=%%~F"
goto :found_iso
)
:not_found
echo.
echo No ISO files found in the same directory as the script.
echo Place the Mario Party 6 (USA) ISO in the script's directory and run it again.
echo.
pause
exit /b 0
:found_iso
echo.
echo Given "%iso_file%"
xdelta3.exe -d -s "%iso_file%" data.xdelta3 "Mario Party 6 [Widescreen].iso"
echo.
echo Press Enter to exit.
pause
exit /b 0

View file

@ -1,27 +1,27 @@
#!/bin/bash
# Get a list of ISO files in the same directory as the script
iso_files=$(find "$(dirname "$0")" -maxdepth 1 -type f -iname "*.iso")
# Check if there are no ISO files
if [ -z "$iso_files" ]; then
echo ""
echo "No ISO files found in the same directory as the script."
echo "Place the Mario Party 6 (USA) ISO in the script's directory and run it again."
echo ""
read -p "Press Enter to exit..."
exit 0
fi
# Iterate over each ISO file and process it
for originalISO in $iso_files; do
echo ""
echo "Given \"$originalISO\""
xdelta3 -d -s "$originalISO" data.xdelta3 "Mario Party 6 (USA) [Widescreen].iso"
echo "Press Enter to exit."
read -p ""
done
echo ""
read -p "Press Enter to exit..."
#!/bin/bash
# Get a list of ISO files in the same directory as the script
iso_files=$(find "$(dirname "$0")" -maxdepth 1 -type f -iname "*.iso")
# Check if there are no ISO files
if [ -z "$iso_files" ]; then
echo ""
echo "No ISO files found in the same directory as the script."
echo "Place the Mario Party 6 (USA) ISO in the script's directory and run it again."
echo ""
read -p "Press Enter to exit..."
exit 0
fi
# Iterate over each ISO file and process it
for originalISO in $iso_files; do
echo ""
echo "Given \"$originalISO\""
xdelta3 -d -s "$originalISO" data.xdelta3 "Mario Party 6 (USA) [Widescreen].iso"
echo "Press Enter to exit."
read -p ""
done
echo ""
read -p "Press Enter to exit..."
exit 0

View file

@ -0,0 +1,3 @@
Place the Mario Party 6 (USA) ISO in the script's directory and run the patch script to patch it.
This patch will convert your game to a widescreen version.

View file

@ -1,30 +0,0 @@
@echo off
setlocal enabledelayedexpansion
REM Get a list of ISO files in the same directory as the script
for %%F in ("%~dp0*.iso") do (
set "iso_files=!iso_files! "%%F""
)
REM Check if there are no ISO files
if not defined iso_files (
echo.
echo No ISO files found in the same directory as the script.
echo Place the Mario Party 6 (USA) ISO in the script's directory and run it again.
echo.
pause
exit /b 0
)
REM Iterate over each ISO file and process it
for %%I in (%iso_files%) do (
echo.
echo Given "%%~I"
xdelta3.exe -d -s "%%~I" data.xdelta3 "Mario Party 6 [Widescreen].iso"
echo Press Enter to exit.
set /p "=<" NUL
)
echo.
pause
exit /b 0

View file

@ -1 +0,0 @@
Place the Mario Party 6 (USA) ISO in the script's directory and run the patch script to patch it.

View file

@ -0,0 +1,115 @@
@echo off
title Mario Party 7 - Custom Orb Expansion Patcher
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Mario Party 7 - Custom Orb Expansion Patcher!
echo How do you wish to export your game.
echo.
echo 1: RVZ (Recommended for Dolphin)
echo 2: ISO (Recommended for SwissGC)
echo 3: Exit Patcher
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
choice /c 123 > NUL
if errorlevel 3 exit
if errorlevel 2 set PATCHER=ISO
if errorlevel 1 set PATCHER=RVZ
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Setting up patcher!
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
rmdir /s /q tmp
set "iso_files="
for %%F in ("%~dp0*.iso") do (
set "iso_files=!iso_files! !%%~F!"
)
for %%F in ("%~dp0*.rvz") do (
set "iso_files=!iso_files! !%%~F!"
)
if not defined iso_files (
cls
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo No ISO or RVZ files found in the same directory as the script.
echo Place the Mario Party 7 (USA^) ISO or RVZ in the script's directory and run it again.
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo.
echo Press any key to exit...
pause
exit /b 0
)
cls
mkdir tmp > NUL
for %%F in ("%~dp0*.rvz") do (
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Converting RVZ to ISO! This is needed to patch the game...
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
"tools/dolphintool" convert -i "%%~F" -f "iso" -o "tmp/tmp.iso"
cls
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Extracting Gamespace! This may take awhile depending on computer speed...
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
"tools/pyisotools" "tmp/tmp.iso" E "--dest=tmp/"
cls
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Copying mod data!
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
xcopy "store" "tmp\root\" /s /y /e
cls
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Rebuilding! This may take awhile depending on computer speed...
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
"tools/pyisotools" tmp/root/ B "--dest=../../game.iso"
rmdir /s /q tmp
)
for %%F in ("%~dp0*.iso") do (
cls
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Extracting Gamespace! This may take awhile depending on computer speed...
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
"tools/pyisotools" "%%~F" E "--dest=tmp/"
cls
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Copying mod data!
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
xcopy "store" "tmp\root\" /s /y /e
cls
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Rebuilding! This may take awhile depending on computer speed...
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
"tools/pyisotools" tmp/root/ B "--dest=../../game.iso"
rmdir /s /q tmp
)
if "%PATCHER%"=="RVZ" (
cls
"tools/dolphintool" convert -i "game.iso" -o "Mario Party 7 (USA) [Custom Orb Expansion].rvz" -f "rvz" -b "131072" -c "zstd" -l "5"
del "game.iso"
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Success! Your game is located in "Mario Party 7 (USA) [Custom Orb Expansion].rvz"
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
)
if "%PATCHER%"=="ISO" (
cls
move "game.iso" "Mario Party 7 (USA) [Custom Orb Expansion].iso"
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
echo Success! Your game is located in "Mario Party 7 (USA) [Custom Orb Expansion].iso"
echo = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
)
echo.
echo Press any key to exit...
pause > NUL
exit /b 0

View file

@ -0,0 +1,6 @@
Place the Mario Party 7 (USA) (v1.02) ISO / RVZ in the script's directory and run the patch script to patch it.
This patch will convert your game to one with custom orbs.
Last updated Jul 11, 2024

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB

View file

@ -0,0 +1,29 @@
@echo off
setlocal enabledelayedexpansion
REM Initialize the iso_file variable
set "iso_file="
REM Get the first ISO file in the same directory as the script
for %%F in ("%~dp0*.iso") do (
set "iso_file=%%~F"
goto :found_iso
)
:not_found
echo.
echo No ISO files found in the same directory as the script.
echo Place the Mario Party 7 (USA) (v1.02) ISO in the script's directory and run it again.
echo.
pause
exit /b 0
:found_iso
echo.
echo Given "%iso_file%"
xdelta3.exe -d -s "%iso_file%" data.xdelta3 "Mario Party 7 [Widescreen].iso"
echo.
echo Press Enter to exit.
pause
exit /b 0

View file

@ -1,27 +1,27 @@
#!/bin/bash
# Get a list of ISO files in the same directory as the script
iso_files=$(find "$(dirname "$0")" -maxdepth 1 -type f -iname "*.iso")
# Check if there are no ISO files
if [ -z "$iso_files" ]; then
echo ""
echo "No ISO files found in the same directory as the script."
echo "Place the Mario Party 7 (USA) (v1.02) ISO in the script's directory and run it again."
echo ""
read -p "Press Enter to exit..."
exit 0
fi
# Iterate over each ISO file and process it
for originalISO in $iso_files; do
echo ""
echo "Given \"$originalISO\""
xdelta3 -d -s "$originalISO" data.xdelta3 "Mario Party 7 (USA) [Widescreen].iso"
echo "Press Enter to exit."
read -p ""
done
echo ""
read -p "Press Enter to exit..."
#!/bin/bash
# Get a list of ISO files in the same directory as the script
iso_files=$(find "$(dirname "$0")" -maxdepth 1 -type f -iname "*.iso")
# Check if there are no ISO files
if [ -z "$iso_files" ]; then
echo ""
echo "No ISO files found in the same directory as the script."
echo "Place the Mario Party 7 (USA) (v1.02) ISO in the script's directory and run it again."
echo ""
read -p "Press Enter to exit..."
exit 0
fi
# Iterate over each ISO file and process it
for originalISO in $iso_files; do
echo ""
echo "Given \"$originalISO\""
xdelta3 -d -s "$originalISO" data.xdelta3 "Mario Party 7 (USA) [Widescreen].iso"
echo "Press Enter to exit."
read -p ""
done
echo ""
read -p "Press Enter to exit..."
exit 0

View file

@ -0,0 +1,3 @@
Place the Mario Party 7 (USA) (v1.02) ISO in the script's directory and run the patch script to patch it.
This patch will convert your game to a widescreen version.

View file

@ -1,30 +0,0 @@
@echo off
setlocal enabledelayedexpansion
REM Get a list of ISO files in the same directory as the script
for %%F in ("%~dp0*.iso") do (
set "iso_files=!iso_files! "%%F""
)
REM Check if there are no ISO files
if not defined iso_files (
echo.
echo No ISO files found in the same directory as the script.
echo Place the Mario Party 7 (USA) ISO in the script's directory and run it again.
echo.
pause
exit /b 0
)
REM Iterate over each ISO file and process it
for %%I in (%iso_files%) do (
echo.
echo Given "%%~I"
xdelta3.exe -d -s "%%~I" data.xdelta3 "Mario Party 7 [Widescreen].iso"
echo Press Enter to exit.
set /p "=<" NUL
)
echo.
pause
exit /b 0

View file

@ -1 +0,0 @@
Place the Mario Party 7 (USA) (v1.02) ISO in the script's directory and run the patch script to patch it.

View file

@ -0,0 +1,49 @@
@echo off
REM Initialize the iso_files variable
set "iso_files="
REM Get a list of ISO and WBFS files in the same directory as the script
for %%F in ("%~dp0*.iso") do (
set "iso_files=!iso_files! "%%~F""
)
for %%F in ("%~dp0*.wbfs") do (
set "iso_files=!iso_files! "%%~F""
)
REM Check if there are no ISO or WBFS files
if not defined iso_files (
echo.
echo No ISO or WBFS files found in the same directory as the script.
echo Place the Mario Party 8 USA Revision 2 ISO or WBFS in the script's directory and run it again.
echo.
pause
exit /b 0
)
REM Iterate over each ISO or WBFS file and process it
for %%F in (%iso_files%) do (
echo.
echo Given %%F
"tools/wit" extract %%F --dest=temp
REM Determine the destination directory
set "dest_dir=temp"
if exist "temp\DATA" (
set "dest_dir=temp\DATA"
)
REM Copy files using xcopy
xcopy "mp8candy" "!dest_dir!" /s /y /e
"tools/wit" copy "temp" "..\Mario Party 8 (USA) [Extended Candy].wbfs"
rmdir /s /q temp
echo Press Enter to continue.
pause
)
echo.
echo Press Enter to exit.
pause
exit /b 0

View file

@ -0,0 +1,43 @@
#!/bin/bash
# Get a list of ISO and WBFS files in the same directory as the script
iso_files=$(find "$(dirname "$0")" -maxdepth 1 -type f \( -iname "*.iso" -o -iname "*.wbfs" \))
# Check if there are no ISO or WBFS files
if [ -z "$iso_files" ]; then
echo ""
echo "No ISO or WBFS files found in the same directory as the script."
echo "Place the Mario Party 8 (US) ISO or WBFS in the script's directory and run it again."
echo ""
read -p "Press Enter to exit..."
exit 0
fi
# Iterate over each ISO or WBFS file and process it
for originalISO in $iso_files; do
echo ""
echo "Constructing the Mario Party 8 Extended Candy WBFS for \"$originalISO\". Please stand by...."
cd "$(dirname "$0")/tools"
# Ensure temp directory exists
mkdir -p temp
wit extract "$originalISO" --dest=temp
if [ -d "temp/DATA" ]; then
cp -r "../mp8candy" "temp/DATA"
else
cp -r "../mp8candy" "temp"
fi
wit copy "temp" "../Mario Party 8 (USA) [Extended Candy].wbfs"
rm -rf temp
echo ""
echo "Construction complete for \"$originalISO\"!"
done
echo ""
read -p "Press Enter to exit..."
exit 0

View file

@ -0,0 +1,3 @@
Place the Mario Party 8 (USA, Asia) (Revision 2) ISO / WBFS in the script's directory and run the patch script to patch it.
This patch will convert your game to an edition that has the candy tables extended. This can be used for mods that patch candy values.

View file

@ -1,3 +1,3 @@
@echo off
bash.exe ./load-titles.sh --cygwin
pause
@echo off
bash.exe ./load-titles.sh --cygwin
pause

View file

@ -1,133 +1,133 @@
#!/usr/bin/env bash
#####################################################################
## __ __ _ ___________ ##
## \ \ / /| |____ ____| ##
## \ \ / / | | | | ##
## \ \ /\ / / | | | | ##
## \ \/ \/ / | | | | ##
## \ /\ / | | | | ##
## \/ \/ |_| |_| ##
## ##
## Wiimms ISO Tools ##
## http://wit.wiimm.de/ ##
## ##
#####################################################################
## ##
## This file is part of the WIT project. ##
## Visit http://wit.wiimm.de/ for project details and sources. ##
## ##
## Copyright (c) 2009-2017 by Dirk Clemens <wiimm@wiimm.de> ##
## ##
#####################################################################
## ##
## This file loads the title files from WiiTDB.com ##
## ##
#####################################################################
#------------------------------------------------------------------------------
NEEDED="wit wget tr"
BASE_PATH="/usr/local"
SHARE_PATH="/usr/local/share/wit"
URI_TITLES=http://gametdb.com/titles.txt
LANGUAGES="de es fr it ja ko nl pt ru zhcn zhtw"
SHARE_DIR=./share
#------------------------------------------------------------------------------
CYGWIN=0
if [[ $1 = --cygwin ]]
then
shift
CYGWIN=1
SHARE_DIR=.
export PATH=".:$PATH"
fi
#------------------------------------------------------------------------------
MAKE=0
if [[ $1 = --make ]]
then
# it's called from make
shift
MAKE=1
fi
#------------------------------------------------------------------------------
function load_and_store()
{
local URI="$1"
local DEST="$2"
local ADD="$3"
echo "*** load $DEST from $URI"
if wget -q -O- "$URI" | wit titles / - >"$DEST.tmp" && test -s "$DEST.tmp"
then
if [[ $ADD != "" ]]
then
wit titles / "$ADD" "$DEST.tmp" >"$DEST.tmp.2"
mv "$DEST.tmp.2" "$DEST.tmp"
fi
if [[ -s $DEST ]]
then
grep -v ^TITLES "$DEST" >"$DEST.tmp.1"
grep -v ^TITLES "$DEST.tmp" >"$DEST.tmp.2"
if ! diff -q "$DEST.tmp.1" "$DEST.tmp.2" >/dev/null
then
#echo " => content changed!"
mv "$DEST.tmp" "$DEST"
fi
else
mv "$DEST.tmp" "$DEST"
fi
fi
rm -f "$DEST.tmp" "$DEST.tmp.1" "$DEST.tmp.2"
}
#------------------------------------------------------------------------------
errtool=
for tool in $NEEDED
do
((CYGWIN)) && [[ -x $tool.exe ]] && continue
which $tool >/dev/null 2>&1 || errtool="$errtool $tool"
done
if [[ $errtool != "" ]]
then
echo "missing tools in PATH:$errtool" >&2
exit 2
fi
#------------------------------------------------------------------------------
mkdir -p "$SHARE_DIR"
load_and_store "$URI_TITLES" "$SHARE_DIR/titles.txt"
# load language specific title files
for lang in $LANGUAGES
do
LANG="$( echo $lang | tr '[a-z]' '[A-Z]' )"
load_and_store $URI_TITLES?LANG=$LANG "$SHARE_DIR/titles-$lang.txt" "$SHARE_DIR/titles.txt"
done
if (( !MAKE && !CYGWIN ))
then
echo "*** install titles to $SHARE_PATH"
mkdir -p "$SHARE_PATH"
cp -p "$SHARE_DIR"/titles*.txt "$SHARE_PATH"
fi
# remove a possible temp dir in SHARE_PATH
((CYGWIN)) || rm -rf "$SHARE_PATH/$SHARE_DIR"
#!/usr/bin/env bash
#####################################################################
## __ __ _ ___________ ##
## \ \ / /| |____ ____| ##
## \ \ / / | | | | ##
## \ \ /\ / / | | | | ##
## \ \/ \/ / | | | | ##
## \ /\ / | | | | ##
## \/ \/ |_| |_| ##
## ##
## Wiimms ISO Tools ##
## http://wit.wiimm.de/ ##
## ##
#####################################################################
## ##
## This file is part of the WIT project. ##
## Visit http://wit.wiimm.de/ for project details and sources. ##
## ##
## Copyright (c) 2009-2017 by Dirk Clemens <wiimm@wiimm.de> ##
## ##
#####################################################################
## ##
## This file loads the title files from WiiTDB.com ##
## ##
#####################################################################
#------------------------------------------------------------------------------
NEEDED="wit wget tr"
BASE_PATH="/usr/local"
SHARE_PATH="/usr/local/share/wit"
URI_TITLES=http://gametdb.com/titles.txt
LANGUAGES="de es fr it ja ko nl pt ru zhcn zhtw"
SHARE_DIR=./share
#------------------------------------------------------------------------------
CYGWIN=0
if [[ $1 = --cygwin ]]
then
shift
CYGWIN=1
SHARE_DIR=.
export PATH=".:$PATH"
fi
#------------------------------------------------------------------------------
MAKE=0
if [[ $1 = --make ]]
then
# it's called from make
shift
MAKE=1
fi
#------------------------------------------------------------------------------
function load_and_store()
{
local URI="$1"
local DEST="$2"
local ADD="$3"
echo "*** load $DEST from $URI"
if wget -q -O- "$URI" | wit titles / - >"$DEST.tmp" && test -s "$DEST.tmp"
then
if [[ $ADD != "" ]]
then
wit titles / "$ADD" "$DEST.tmp" >"$DEST.tmp.2"
mv "$DEST.tmp.2" "$DEST.tmp"
fi
if [[ -s $DEST ]]
then
grep -v ^TITLES "$DEST" >"$DEST.tmp.1"
grep -v ^TITLES "$DEST.tmp" >"$DEST.tmp.2"
if ! diff -q "$DEST.tmp.1" "$DEST.tmp.2" >/dev/null
then
#echo " => content changed!"
mv "$DEST.tmp" "$DEST"
fi
else
mv "$DEST.tmp" "$DEST"
fi
fi
rm -f "$DEST.tmp" "$DEST.tmp.1" "$DEST.tmp.2"
}
#------------------------------------------------------------------------------
errtool=
for tool in $NEEDED
do
((CYGWIN)) && [[ -x $tool.exe ]] && continue
which $tool >/dev/null 2>&1 || errtool="$errtool $tool"
done
if [[ $errtool != "" ]]
then
echo "missing tools in PATH:$errtool" >&2
exit 2
fi
#------------------------------------------------------------------------------
mkdir -p "$SHARE_DIR"
load_and_store "$URI_TITLES" "$SHARE_DIR/titles.txt"
# load language specific title files
for lang in $LANGUAGES
do
LANG="$( echo $lang | tr '[a-z]' '[A-Z]' )"
load_and_store $URI_TITLES?LANG=$LANG "$SHARE_DIR/titles-$lang.txt" "$SHARE_DIR/titles.txt"
done
if (( !MAKE && !CYGWIN ))
then
echo "*** install titles to $SHARE_PATH"
mkdir -p "$SHARE_PATH"
cp -p "$SHARE_DIR"/titles*.txt "$SHARE_PATH"
fi
# remove a possible temp dir in SHARE_PATH
((CYGWIN)) || rm -rf "$SHARE_PATH/$SHARE_DIR"

Some files were not shown because too many files have changed in this diff Show more