Skip to content

Commit

Permalink
fix(OuiModToggler): typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nhruo123 committed Apr 27, 2023
1 parent ba157d7 commit b57390b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Celeste.Mod.mm/Mod/UI/OuiModToggler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -473,12 +473,12 @@ private void addToFavorites(string modFileName) {
}
}

private void addToFavoritesDependencies(string modFileName, string dependentModeFileName) {
private void addToFavoritesDependencies(string modFileName, string dependentmodFileName) {
if (!favoritesDependenciesMods.ContainsKey(modFileName)) {
favoritesDependenciesMods[modFileName] = new HashSet<string>();
}

favoritesDependenciesMods[modFileName].Add(dependentModeFileName);
favoritesDependenciesMods[modFileName].Add(dependentmodFileName);

// I guess we silently fail?
if (TryGetModDependenciesFileNames(modFileName, out List<string> dependenciesFileNames)) {
Expand All @@ -498,9 +498,9 @@ private void removeFromFavorites(string modFileName) {
}
}

private void removeFromFavoritesDependencies(string modFileName, string dependentModeFileName) {
private void removeFromFavoritesDependencies(string modFileName, string dependentmodFileName) {
if (favoritesDependenciesMods.ContainsKey(modFileName)) {
favoritesDependenciesMods[modFileName].Remove(dependentModeFileName);
favoritesDependenciesMods[modFileName].Remove(dependentmodFileName);
if (favoritesDependenciesMods[modFileName].Count == 0) {
favoritesDependenciesMods.Remove(modFileName);
}
Expand Down Expand Up @@ -560,7 +560,7 @@ private bool TryGetModDependenciesFileNames(string modFilename, out List<string>
dependenciesFileNames = new List<string>();

foreach (EverestModuleMetadata metadata in metadatas) {
// iterate over each loaded mode to ensure its present
// iterate over each loaded mod to ensure its present
foreach (string dependencyName in metadata.Dependencies.Select((dep) => dep.Name)) {
KeyValuePair<string, EverestModuleMetadata>? found = null;
foreach (KeyValuePair<string, EverestModuleMetadata[]> candidateMetadatas in modYamls) {
Expand Down

0 comments on commit b57390b

Please sign in to comment.