Skip to content

Commit

Permalink
Update v13.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Admentus64 committed Apr 8, 2021
1 parent 5ab5189 commit 88fd894
Show file tree
Hide file tree
Showing 131 changed files with 941 additions and 779 deletions.
Binary file modified Files/Games/Majora's Mask/Compressed/masked_quest.bps
Binary file not shown.
Binary file modified Files/Games/Majora's Mask/Decompressed/Languages/fre.ppf
Binary file not shown.
Binary file modified Files/Games/Majora's Mask/Decompressed/Languages/ger.ppf
Binary file not shown.
Binary file modified Files/Games/Majora's Mask/Decompressed/Languages/rus.ppf
Binary file not shown.
Binary file modified Files/Games/Majora's Mask/Decompressed/Languages/spa.ppf
Binary file not shown.
8 changes: 4 additions & 4 deletions Files/Games/Majora's Mask/Patches.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"l_target" : "GameCube\\l_targeting_english.bin",
"l_target_search" : "5A 20 54 61 72 67 65 74 69 6E 67",
"l_target_replace" : "4C 20 54 61 72 67 65 74 69 6E 67",
"tatl" : "HUD\\Taya.bin",
"tatl" : "HUD\\taya.bin",
"tatl_search" : "54 61 74 6C",
"tatl_replace" : "54 61 79 61"
}, {
Expand All @@ -31,7 +31,7 @@
"script_start" : "3571510",
"script_length" : "74DF0",
"l_target" : "GameCube\\l_targeting_german.bin",
"tatl" : "HUD\\Tatl.bin",
"tatl" : "HUD\\tatl.bin",
"tatl_search" : "54 61 79 61",
"tatl_replace" : "54 61 74 6C",
"output" : "_german_patched",
Expand All @@ -46,7 +46,7 @@
"l_target" : "GameCube\\l_targeting_french.bin",
"l_target_search" : "56 69 73 9D 65 20 5A",
"l_target_replace" : "56 69 73 9D 65 20 4C",
"tatl" : "HUD\\Tatl.bin",
"tatl" : "HUD\\tatl.bin",
"tatl_search" : "54 61 79 61",
"tatl_replace" : "54 61 74 6C",
"output" : "_french_patched",
Expand All @@ -61,7 +61,7 @@
"l_target" : "GameCube\\l_targeting_spanish.bin",
"l_target_search" : "42 6C 61 6E 63 6F 20 63 6F 6E 20 5A",
"l_target_replace" : "42 6C 61 6E 63 6F 20 63 6F 6E 20 4C",
"tatl" : "HUD\\Tatl.bin",
"tatl" : "HUD\\tatl.bin",
"tatl_search" : "54 61 79 61",
"tatl_replace" : "54 61 74 6C",
"output" : "_spanish_patched",
Expand Down
Binary file not shown.
Binary file not shown.
Binary file modified Files/Games/Ocarina of Time/Decompressed/Languages/bra.ppf
Binary file not shown.
Binary file modified Files/Games/Ocarina of Time/Decompressed/Languages/chi.ppf
Binary file not shown.
Binary file modified Files/Games/Ocarina of Time/Decompressed/Languages/ita.ppf
Binary file not shown.
Binary file modified Files/Games/Ocarina of Time/Decompressed/Languages/pol.ppf
Binary file not shown.
Binary file modified Files/Games/Ocarina of Time/Decompressed/Languages/rus.ppf
Binary file not shown.
Binary file modified Files/Games/Ocarina of Time/Decompressed/Languages/spa.ppf
Binary file not shown.
2 changes: 1 addition & 1 deletion Files/Games/Ocarina of Time/Patches.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"l_target" : "GameCube\\l_targeting_english.bin",
"razor_sword" : "Razor Sword\\label_english.bin",
"iron_shield" : "Iron Shield\\label_english.bin",
"hero_shield" : "Hero's Shield\\label_english.bin",
"heros_shield" : "Hero's Shield\\label_english.bin",
"max_text_speed" : 3
}, {
"title" : "German",
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�/��i�%{�s_kb�b�Z�Z�c{���������?�����?�?��ֿ��=�����s�ウ�/���i��{�s_kcb�b�cs��k�u�=ֿ���?����?�?����ֿ��=�����3�7���/��i�%{�sakkb�cs��)�1������?�?����?�?����ֿ��=���u޹�7��q��i�%��s�k_kksa�眯�u�;������?�?�?�?�?�?����ֿ��=���=޻�w���q�-���'��{�s_k_s_{�k�1���=������?�?�?�?�?�?������gJS��?���y�5���/���g��{�sasa{��'���s���=���9���q�9�?�?�?����RSPC����?���y�7��o��i�%{�{�{���k��3�1��es]Z�JU�#�9�?�?����IMpC����=��޻ֹ�7���q�픩�'��{��'���ecB9�AKH�XCbW�-���?�?��b�h���?����޻޻�y�7�����/���g�g����JU9�A P�`CxC�C�C���g�9���?�����s�=��޻޻ֹֹֹ�y�7�5���o�-�gJU1K@�XCpC�C�C�E�E�E�E{��/���9�9�{޽ֹֹ�y�y�y�y�y�y�w�w�5���B8�XCxC�C�E�E�E�E�E�E�Czcs�{�{�{���5�5�5�5�7�7�7�w�w�y�w���'Q�`C�C�E�E�E�E�E�E�E�E�E��YKI A A A I �������������5�5�7��{�Z�s��ki��C�E�E�E�E�E�E�E�C�E�C�C�C�C�CxC�C�-�-�-�/�o�������{�1MA A��圯iO�C�E�E�E�E�E�C�C�C�C�C�C�C�C�C�E����������-�o�q�-b�HEpCxC{_�qkahǘE�E�E��� ��ɱE�E���C�C�C�C쏌'�'�'�'�g����-�oZ�XC�C�C�-��b�XC�Cۉ��� �_�������ŠC�C�C�G�K������'�'�'�픫{y ���{�I hC�C����M�����M�M�ɐC�C�C��싘�{�{�{�{���{�s_R�Z�s_�����{��RSX�C�C������S�����C�C�C��ܑ�{�{�{�{�{�s_J8�9 9M9�RURU9�@�pC�C�C�ŪG�Q�U�����ɐÐC�C����Ï�M{�{�{�{�{�{�JXxCxChCXCH�H�`C�C�C�C���E�����䏙E���C�CӋ���K��{�{�{�{�{�{�I�hC�C�E�E�C�C�C�C�C�C�C�C�Ţ�S��I�ŐC�C�E䏙�����ャ{�{�{�I�hC�C�E�E�C�E�C�C�C�C�C�C��������C�C�C� ������I�����{�s�RhC�C�E�C�C�C�C�C�C�C�C�C�C���ő���C�C����S�S���%����{�s�R`�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C���Ðő�ň��'�'�%���s_RShC�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�i�i�g�%��s_RU`�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�뤫���g�%{�Z�`�C�C�C�C�C�C�C�C�C�C�C�C���K�C�C�C��C�C�����o�/�휩�g{�kX�C�C�C�C�C�C�C�C�C�C�C�C���噻� �M�K��M��Ð�󽱵o�휫��kPE�C�C�C�C�C�C�C�C�C�C�C�C��ۋ�M�S������� � ����5�5���o��%s]PLjC�C�C�C�C�C�C�C�C�C�C�C�E����O�S�U�S���M�ŀC��5�5��q�/��{�Q �C�C�C�C�C�C�C�C�C�C�C�C���I����������I���� ���󽳵q�q��#Q�x�C�C�C�C�C�C�C�C�C�C�C���M������S����ɑE���۵����o�/�/�-�eZh�C�C�C�C�C�C�C�C�C�C�C������������I�E�Y�+�-�-���휩b�`�C�C�C�C�C�C�C�C����C�����S�������싱���������������s]XC�C�C�C�C�C�C�C�C�C���C�������� ����S����Ռ#�%�%�%�%�'���#Q ��C�C�C�C�C�C�����C���������W�������{�{�{�{�{�{�%��ZSh�C�C���C��C�����C���E�� Í܏������kkkk]k_s�s���{�X���C��C��C�������C���ÉE�Ǫ��KË����Z�Z�Z�Z�ck]k_�㜧QMp�C�C���ɈɈ�������Cx��E�I�G�G� ��RURURUR�Z�Z�ck��b�XC���Ǽe�wj�hC�������xA��� �����MRURUJUJURUR�Z�Z�{���IKpC���{���m�eQ�p��‰���xA� �M� ���KZ�RURUJUJURURUR�Zٔg�g�����3Z�RUb�{�Q pxA� ����x�� �U�������b�Z�Z�R�RURURURUR�bٌ%��#A�1M8�@�c{�P�pA��� �xx�� �W�ɑŪ���k[kb�b�Z�Z�Z�R�R�R�R�RUJ)M8CXpi���b�PC��ͲGxAxA�Eܑ�ljE�E�s�s]k]kcb�b�Z�Z�Z�R�RUJU�#I h����{�+R`��I�ѻMx�x���x�x�����{�{�s�s]s]kkcb�Z�Z�Z�RU�#�������eR�9�H�����U�]�x�pApA���Ƀ��{�{�s�s_s]k]kkb�b�Z�R��e�w���eZ�A�(�Hpû �����������!���{�{�{�s�s_s]s]k]kkcb�ccb�Z�1�0CPpA�E�����������ˡ]������{�{�{�{�s�s_s]s]s]k]k]k]kJU) Hhpx����O����S����c��������{�{�{�{�{�{�s�s�s�s_k]RU0�PpxpAxÒ��������������#�#�����{�{�{�{�{�{�{�s_�#{�YMp�xpAxÒ���Q�S����#�#�#�%�%�%�#�#�#�#����{�{�{�{�s]����r�hCxppAxÑdzK܏���߄#�#�%�e�e�e�e�e�e�e�e�e�%�#�#�#���{�{��#�-��iMpppp����I����%�%�e�g�������������������g�e�e�e�%�#��{�s��+��r�`CpppAp�qp��e�e�g�����������������霩�����g�e�%�#��{��#�o��zhpphAp�e�g�����������+�+�+�+����霩���e�%�#��s��+���kq�hpp�e�g����������+�-�m�m�-�-�-�-�+�+�霩���g�e�%��{�m���)i�h�%�e����������+�+�m�m�m�m�o�o�m�m�-�+��霩���g�e��㵯�7�)�#�e�e��������������+�+�-�m�m���������o�m�-�+���霩���e��#���#�e�e�e�e�e�e�e�����+�+�m�m���������m�m�m�-�-�+��锧�g�e�%{�{��#�#�#�!�!�#�c�e����+�+�m�����������o�o�o�o�m�-��锧����s]s�{�{�{�{�{�{�{���#�e�����+�m��������������񽯵o�-�����b�kk[k]k]k[k[k[k[s]{���#�e����+�m����������3�3�3��o�-�+�+�+R�Z�b�b�b�b�b�b�b�ck]{���#�e����k�m�������3�s�u�u�3���m�+�-�m
Expand Down
43 changes: 28 additions & 15 deletions Files/Scripts/Bytes.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -239,23 +239,36 @@ function GetDecimal([string]$Hex) {


#==================================================================================================================================================================================================================================================================
function Get8Bit([byte]$Value) { return '{0:X2}' -f $Value }
function Get16Bit([uint16]$Value) { return '{0:X4}' -f $Value }
function Get24Bit([uint32]$Value) { return '{0:X6}' -f $Value }
function Get32Bit([uint32]$Value) { return '{0:X8}' -f $Value }
function ConvertFloatToHex([string]$Float) {

$bytes = [BitConverter]::GetBytes([single]$Float)
$bytes = $bytes | Foreach-Object { ("{0:X2}" -f $_) }
[array]::Reverse($bytes)
return $bytes

}



#==================================================================================================================================================================================================================================================================
function ConvertHexToFloat([string]$Hex) {

try { return ([BitConverter]::ToSingle([BitConverter]::GetBytes([uint32]("0x" + $Hex)), 0)) }
catch { return -1 }

}



#==================================================================================================================================================================================================================================================================
function Get8Bit([byte]$Value) { return '{0:X2}' -f $Value }
function Get16Bit([uint16]$Value) { return '{0:X4}' -f $Value }
function Get24Bit([uint32]$Value) { return '{0:X6}' -f $Value }
function Get32Bit([uint32]$Value) { return '{0:X8}' -f $Value }
function AddToOffset([string]$Hex, [string]$Add) { return (Get32Bit ( (GetDecimal $Hex) + (GetDecimal $Add) ) ) }



#==============================================================================================================================================================================================

Export-ModuleMember -Function ChangeBytes
Export-ModuleMember -Function PatchBytes
Export-ModuleMember -Function ExportBytes
Export-ModuleMember -Function SearchBytes
Export-ModuleMember -Function ExportAndPatch

Export-ModuleMember -Function GetDecimal
Export-ModuleMember -Function Get8Bit
Export-ModuleMember -Function Get16Bit
Export-ModuleMember -Function Get24Bit
Export-ModuleMember -Function Get32Bit
(Get-Command -Module "Bytes") | % { Export-ModuleMember $_ }
63 changes: 46 additions & 17 deletions Files/Scripts/Common.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -237,22 +237,22 @@ function ChangeGameMode() {
(Get-Command -Module $GameType.mode) | % { Export-ModuleMember $_ }
}

$GameFiles.base = $Paths.Games + "\" + $GameType.mode
$GameFiles.binaries = $GameFiles.base + "\Binaries"
$GameFiles.export = $GameFiles.base + "\Export"
$GameFiles.compressed = $GameFiles.base + "\Compressed"
$GameFiles.decompressed = $GameFiles.base + "\Decompressed"
$GameFiles.downgrade = $GameFiles.base + "\Downgrade"
$GameFiles.Textures = $GameFiles.base + "\Textures"
$GameFiles.previews = $GameFiles.base + "\Previews"
$GameFiles.info = $GameFiles.base + "\Info.txt"
$GameFiles.json = $GameFiles.base + "\Patches.json"
$GameFiles.Base = $Paths.Games + "\" + $GameType.mode
$GameFiles.Binaries = $GameFiles.Base + "\Binaries"
$GameFiles.Export = $GameFiles.Base + "\Export"
$GameFiles.Compressed = $GameFiles.Base + "\Compressed"
$GameFiles.Decompressed = $GameFiles.Base + "\Decompressed"
$GameFiles.Downgrade = $GameFiles.Base + "\Downgrade"
$GameFiles.Textures = $GameFiles.Base + "\Textures"
$GameFiles.Previews = $GameFiles.Base + "\Previews"
$GameFiles.info = $GameFiles.Base + "\Info.txt"
$GameFiles.json = $GameFiles.Base + "\Patches.json"

$global:GameSettings = GetSettings (GetGameSettingsFile)

# JSON
if (IsSet $GameType.patches) { $Files.json.patches = SetJSONFile $GameFiles.json } else { $Files.json.patches = $null }
if (TestFile ($GameFiles.previews + "\Credits.json")) { $Files.json.models = SetJSONFile ($GameFiles.previews + "\Credits.json") } else { $Files.json.models = $null }
if (IsSet $GameType.patches) { $Files.json.patches = SetJSONFile $GameFiles.json } else { $Files.json.patches = $null }
if (TestFile ($GameFiles.previews + "\Models.json")) { $Files.json.models = SetJSONFile ($GameFiles.previews + "\Models.json") } else { $Files.json.models = $null }

# Info
if (TestFile $GameFiles.info) { AddTextFileToTextbox -TextBox $Credits.Sections[0] -File $GameFiles.info }
Expand Down Expand Up @@ -305,9 +305,9 @@ function SetVCPanel() {
# Reset VC panel visibility
foreach ($item in $VC.Group.Controls) { EnableElem -Elem $item -Active $False -Hide }
EnableElem -Elem @($VC.ActionsLabel, $VC.PatchVCButton, $VC.ExtractROMButton) -Active $True -Hide
CheckVCOptions

# Enable VC panel visiblity

if ($GameConsole.options_vc -gt 0) {
if ($GameConsole.t64 -eq 1 -or $GameConsole.expand_memory -eq 1 -or $GameConsole.remove_filter -eq 1) { $VC.CoreLabel.Visible = $True }
if ($GameConsole.t64 -eq 1) { EnableElem -Elem @($VC.RemoveT64, $VC.RemoveT64Label) -Active $True -Hide }
Expand Down Expand Up @@ -561,6 +561,20 @@ function IsLangText([object]$Elem, [string]$Compare, [int16]$Lang=0, [switch]$No



#==============================================================================================================================================================================================
function IsValue([object]$Elem,[int16]$Value, [switch]$Active, [switch]$Not) {

if (!(IsSet $Value)) { $Value = $Elem.Default }
if ($Active -and !$Elem.Visible) { return $False }
if (!$Active -and !$Elem.Enabled) { return $False }
if ([int16]$Elem.value -eq $Value) { return !$Not }
if ([int16]$Elem.value -ne $Value) { return $Not }
return $False

}



#==============================================================================================================================================================================================
function IsIndex([object]$Elem, [int16]$Index=1, [string]$Text, [switch]$Active, [switch]$Not) {

Expand Down Expand Up @@ -761,8 +775,20 @@ function RestoreCustomRegion() {
#==============================================================================================================================================================================================
function StrLike([string]$Str, [string]$Val, [switch]$Not) {

if ($str.ToLower() -like "*" + $val + "*") { return !$Not }
elseif ($str.ToLower() -notlike "*" + $val + "*") { return $Not }
if (!$Not -and $str.ToLower() -like "*" + $val + "*") { return $True }
elseif ( $Not -and $str.ToLower() -notlike "*" + $val + "*") { return $True }
return $False

}



#==============================================================================================================================================================================================
function StrStarts([string]$Str, [string]$Val, [switch]$Not) {

if ($str -eq $null) { return $False }
if (!$Not -and $str.ToLower().StartsWith($val)) { return $True }
elseif ( $Not -and !$str.ToLower().StartsWith($val)) { return $True }
return $False

}
Expand Down Expand Up @@ -876,8 +902,9 @@ function RemoveFile([string]$Path) {
#==============================================================================================================================================================================================
function TestFile([string]$Path, [switch]$Container) {

if ($Container) { return Test-Path -LiteralPath $Path -PathType Container }
else { return Test-Path -LiteralPath $Path -PathType Leaf }
if ($Path -eq "") { return $False }
if ($Container) { return Test-Path -LiteralPath $Path -PathType Container }
else { return Test-Path -LiteralPath $Path -PathType Leaf }

}

Expand Down Expand Up @@ -1054,13 +1081,15 @@ Export-ModuleMember -Function IsChecked
Export-ModuleMember -Function IsLanguage
Export-ModuleMember -Function IsText
Export-ModuleMember -Function IsLangText
Export-ModuleMember -Function IsValue
Export-ModuleMember -Function IsIndex
Export-ModuleMember -Function IsColor
Export-ModuleMember -Function IsDefaultColor
Export-ModuleMember -Function IsSet
Export-ModuleMember -Function CompareArray
Export-ModuleMember -Function AddTextFileToTextbox
Export-ModuleMember -Function StrLike
Export-ModuleMember -Function StrStarts
Export-ModuleMember -Function GetFilePaths
Export-ModuleMember -Function RestoreCustomHeader
Export-ModuleMember -Function RestoreCustomRegion
Expand Down
8 changes: 4 additions & 4 deletions Files/Scripts/Dialogs.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,10 @@ function CreateSettingsDialog() {
$GeneralSettings.Bit64 = CreateSettingsCheckbox -Name "Bit64" -Column 1 -Row 1 -Text "Use 64-Bit Tools" -Checked ([Environment]::Is64BitOperatingSystem) -Info "Use 64-bit tools instead of 32-bit tools if available for patching ROMs"
$GeneralSettings.DoubleClick = CreateSettingsCheckbox -Column 2 -Row 1 -Text "Double Click" -Info "Allows a PowerShell file to be opened by double-clicking it"
$GeneralSettings.DoubleClick.Checked = ((Get-ItemProperty -LiteralPath "HKLM:\Software\Classes\Microsoft.PowerShellScript.1\Shell").'(default)' -eq '0')
$GeneralSettings.ClearType = CreateSettingsCheckbox -Name "ClearType" -Column 3 -Row 1 -Text "Use ClearType Font" -Checked $True -Info ('Use the ClearType font "Segoe UI" instead of the default font "Microsft Sans Serif"' + "`nThe option will only go in effect when opening the tool`nPlease restart the tool when changing this option")
$GeneralSettings.HiDPIMode = CreateSettingsCheckbox -Name "HiDPIMode" -Column 1 -Row 2 -Text "Use Hi-DPI Mode" -Checked $True -Info "Enables Hi-DPI Mode suitable for higher resolution displays`nThe option will only go in effect when opening the tool`nPlease restart the tool when changing this option"
$GeneralSettings.ModernStyle = CreateSettingsCheckbox -Name "ModernStyle" -Column 2 -Row 2 -Text "Use Modern Visual Style" -Info "Use a modern-looking visual style for the whole interface of the tool"
$GeneralSettings.EnableSounds = CreateSettingsCheckbox -Name "EnableSounds" -Column 3 -Row 2 -Text "Enable Sound Effects" -Checked $True -Info "Enable the use of sound effects, for example when patching is concluded"
$GeneralSettings.ClearType = CreateSettingsCheckbox -Name "ClearType" -Column 3 -Row 1 -Text "Use ClearType Font" -Checked $True -Info ('Use the ClearType font "Segoe UI" instead of the default font "Microsft Sans Serif"' + "`nThe option will only go in effect when opening the tool`nPlease restart the tool when changing this option")
$GeneralSettings.HiDPIMode = CreateSettingsCheckbox -Name "HiDPIMode" -Column 1 -Row 2 -Text "Use Hi-DPI Mode" -Checked $True -Info "Enables Hi-DPI Mode suitable for higher resolution displays`nThe option will only go in effect when opening the tool`nPlease restart the tool when changing this option"
$GeneralSettings.ModernStyle = CreateSettingsCheckbox -Name "ModernStyle" -Column 2 -Row 2 -Text "Use Modern Visual Style" -Checked $True -Info "Use a modern-looking visual style for the whole interface of the tool"
$GeneralSettings.EnableSounds = CreateSettingsCheckbox -Name "EnableSounds" -Column 3 -Row 2 -Text "Enable Sound Effects" -Checked $True -Info "Enable the use of sound effects, for example when patching is concluded"

# Advanced Settings
$GeneralSettings.Box = CreateReduxGroup -Y ($GeneralSettings.Box.Bottom + (DPISize 10)) -IsGame $False -Height 2 -AddTo $SettingsDialog -Text "Advanced Settings"
Expand Down
Loading

0 comments on commit 88fd894

Please sign in to comment.