Skip to content

Commit

Permalink
Update Ocarina of Time.psm1
Browse files Browse the repository at this point in the history
Part of v14.0.0
  • Loading branch information
Admentus64 committed May 1, 2021
1 parent 3b2eb59 commit f15fec0
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions Files/Scripts/Options/Ocarina of Time.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,12 @@ function PatchOptions() {

# MODELS #

if (IsChecked $Redux.Graphics.ListChildMaleModels) {
$file = "\Child Male\" + $Redux.Graphics.ChildMaleModels.Text.replace(" (default)", "") + ".ppf"
if (TestFile ($GameFiles.models + $file)) { ApplyPatch -Patch ("Models" + $file) }
}
elseif (IsChecked $Redux.Graphics.ListChildFemaleModels) {
$file = "\Child Female\" + $Redux.Graphics.ChildFemaleModels.Text.replace(" (default)", "") + ".ppf"
if (TestFile ($GameFiles.models + $file)) { ApplyPatch -Patch ("Models" + $file) }
}

if (IsChecked $Redux.Graphics.ListAdultMaleModels) {
$file = "\Adult Male\" + $Redux.Graphics.AdultMaleModels.Text.replace(" (default)", "") + ".ppf"
if (TestFile ($GameFiles.models + $file)) { ApplyPatch -Patch ("Models" + $file) }
}
elseif (IsChecked $Redux.Graphics.ListAdultFemaleModels) {
$file = "\Adult Female\" + $Redux.Graphics.AdultFemaleModels.Text.replace(" (default)", "") + ".ppf"
if (TestFile ($GameFiles.models + $file)) { ApplyPatch -Patch ("Models" + $file) }
}
if (IsChecked $Redux.Graphics.ListChildMaleModels) { $file = "\Child Male\" + $Redux.Graphics.ChildMaleModels.Text.replace(" (default)", "") + ".ppf" }
elseif (IsChecked $Redux.Graphics.ListChildFemaleModels) { $file = "\Child Female\" + $Redux.Graphics.ChildFemaleModels.Text.replace(" (default)", "") + ".ppf" }
if (TestFile ($GameFiles.models + $file)) { ApplyPatch -Patch ("Models" + $file) }
if (IsChecked $Redux.Graphics.ListAdultMaleModels) { $file = "\Adult Male\" + $Redux.Graphics.AdultMaleModels.Text.replace(" (default)", "") + ".ppf" }
elseif (IsChecked $Redux.Graphics.ListAdultFemaleModels) { $file = "\Adult Female\" + $Redux.Graphics.AdultFemaleModels.Text.replace(" (default)", "") + ".ppf" }
if (TestFile ($GameFiles.models + $file)) { ApplyPatch -Patch ("Models" + $file) }

if (IsChecked $Redux.Graphics.FeminineAnimations) { ApplyPatch -Patch "Decompressed\feminine_animations.ppf" }
if (IsChecked $Redux.Graphics.HideEquipment) { ApplyPatch -Patch "Decompressed\hide_equipment.ppf" }
Expand Down

0 comments on commit f15fec0

Please sign in to comment.