Skip to content

Commit

Permalink
Merge pull request #1120 from shananas/master
Browse files Browse the repository at this point in the history
Add ScrollViewer to each setup wizard window
  • Loading branch information
Oathseeker authored Dec 1, 2024
2 parents 19fc76e + 2f30aa2 commit f925633
Show file tree
Hide file tree
Showing 3 changed files with 141 additions and 133 deletions.
20 changes: 10 additions & 10 deletions OpenKh.Patcher/PatcherProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -221,22 +221,22 @@ public void Patch(string originalAssets, string outputDir, Metadata metadata, st
{
if (Language != "jp")
{
if (!context.GetOriginalAssetPath(assetFile.Name).Contains(".a.fm") && !context.GetOriginalAssetPath(assetFile.Name).Contains("/jp/"))
if (!context.GetOriginalAssetPath(name).Contains(".a.fm") && !context.GetOriginalAssetPath(name).Contains("/jp/"))
{
Log.Warn("File not found: " + context.GetOriginalAssetPath(assetFile.Name) + " Skipping. \nPlease check your game extraction.");
Log.Warn("File not found: " + context.GetOriginalAssetPath(name) + " Skipping. \nPlease check your game extraction.");
}
}
else
{
if (!globalFilePaths.Any(x=>context.GetOriginalAssetPath(assetFile.Name).Contains(x)))
if (!globalFilePaths.Any(x=>context.GetOriginalAssetPath(name).Contains(x)))
{
Log.Warn("File not found: " + context.GetOriginalAssetPath(assetFile.Name) + " Skipping. \nPlease check your game extraction.");
Log.Warn("File not found: " + context.GetOriginalAssetPath(name) + " Skipping. \nPlease check your game extraction.");
}
}
}
else
{
Log.Warn("File not found: " + context.GetOriginalAssetPath(assetFile.Name) + " Skipping. \nPlease check your game extraction.");
Log.Warn("File not found: " + context.GetOriginalAssetPath(name) + " Skipping. \nPlease check your game extraction.");
}
}
else if (assetFile.Source[0].Type == "internal")
Expand All @@ -245,22 +245,22 @@ public void Patch(string originalAssets, string outputDir, Metadata metadata, st
{
if (Language != "jp")
{
if (!context.GetOriginalAssetPath(assetFile.Name).Contains(".a.fm") && !context.GetOriginalAssetPath(assetFile.Name).Contains("/jp/"))
if (!context.GetOriginalAssetPath(name).Contains(".a.fm") && !context.GetOriginalAssetPath(name).Contains("/jp/"))
{
Log.Warn("File not found: " + context.GetOriginalAssetPath(assetFile.Name) + " Skipping. \nPlease check your game extraction.");
Log.Warn("File not found: " + context.GetOriginalAssetPath(name) + " Skipping. \nPlease check your game extraction.");
}
}
else
{
if (!globalFilePaths.Any(x => context.GetOriginalAssetPath(assetFile.Name).Contains(x)))
if (!globalFilePaths.Any(x => context.GetOriginalAssetPath(name).Contains(x)))
{
Log.Warn("File not found: " + context.GetOriginalAssetPath(assetFile.Name) + " Skipping. \nPlease check your game extraction.");
Log.Warn("File not found: " + context.GetOriginalAssetPath(name) + " Skipping. \nPlease check your game extraction.");
}
}
}
else
{
Log.Warn("File not found: " + context.GetOriginalAssetPath(assetFile.Name) + " Skipping. \nPlease check your game extraction.");
Log.Warn("File not found: " + context.GetOriginalAssetPath(name) + " Skipping. \nPlease check your game extraction.");
}
}
else
Expand Down
6 changes: 3 additions & 3 deletions OpenKh.Tools.ModsManager/ViewModels/SetupWizardViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -506,12 +506,12 @@ public string GameDataLocation
}

public bool IsNotExtracting { get; private set; }
public bool IsGameDataFound => (IsNotExtracting && GameService.FolderContainsUniqueFile(GameId, Path.Combine(GameDataLocation, "kh2")) ||
public bool IsGameDataFound => IsNotExtracting && (GameService.FolderContainsUniqueFile(GameId, Path.Combine(GameDataLocation, "kh2")) ||
(GameEdition == PC && (GameService.FolderContainsUniqueFile("kh2", Path.Combine(GameDataLocation, "kh2")) ||
GameService.FolderContainsUniqueFile("kh1", Path.Combine(GameDataLocation, "kh1")) ||
Directory.Exists(Path.Combine(GameDataLocation, "bbs", "message")) ||
Directory.Exists(Path.Combine(GameDataLocation, "Recom", "SYS"))))||
Directory.Exists(Path.Combine(GameDataLocation, "kh3d","setdata"))||
Directory.Exists(Path.Combine(GameDataLocation, "Recom", "SYS"))||
Directory.Exists(Path.Combine(GameDataLocation, "kh3d","setdata"))))||
OverrideGameDataFound);
public Visibility GameDataNotFoundVisibility => !IsGameDataFound ? Visibility.Visible : Visibility.Collapsed;
public Visibility GameDataFoundVisibility => IsGameDataFound ? Visibility.Visible : Visibility.Collapsed;
Expand Down
Loading

0 comments on commit f925633

Please sign in to comment.