mirror of https://github.com/ppy/osu
Remove unused param
This commit is contained in:
parent
bf47221594
commit
8049270ad2
|
@ -112,7 +112,7 @@ public static void UninstallAssociations()
|
||||||
Debug.Assert(classes != null);
|
Debug.Assert(classes != null);
|
||||||
|
|
||||||
foreach (var association in file_associations)
|
foreach (var association in file_associations)
|
||||||
association.Uninstall(classes, PROGRAM_ID_PREFIX);
|
association.Uninstall(classes);
|
||||||
|
|
||||||
foreach (var association in uri_associations)
|
foreach (var association in uri_associations)
|
||||||
association.Uninstall(classes);
|
association.Uninstall(classes);
|
||||||
|
@ -146,7 +146,7 @@ private static void updateDescriptions(LocalisationManager? localisation)
|
||||||
Debug.Assert(classes != null);
|
Debug.Assert(classes != null);
|
||||||
|
|
||||||
foreach (var association in file_associations)
|
foreach (var association in file_associations)
|
||||||
association.UpdateDescription(classes, PROGRAM_ID_PREFIX, getLocalisedString(association.Description));
|
association.UpdateDescription(classes, getLocalisedString(association.Description));
|
||||||
|
|
||||||
foreach (var association in uri_associations)
|
foreach (var association in uri_associations)
|
||||||
association.UpdateDescription(classes, getLocalisedString(association.Description));
|
association.UpdateDescription(classes, getLocalisedString(association.Description));
|
||||||
|
@ -216,13 +216,13 @@ public void Install(RegistryKey classes, string exePath)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void UpdateDescription(RegistryKey classes, string programIdPrefix, string description)
|
public void UpdateDescription(RegistryKey classes, string description)
|
||||||
{
|
{
|
||||||
using (var programKey = classes.OpenSubKey(programId, true))
|
using (var programKey = classes.OpenSubKey(programId, true))
|
||||||
programKey?.SetValue(null, description);
|
programKey?.SetValue(null, description);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Uninstall(RegistryKey classes, string programIdPrefix)
|
public void Uninstall(RegistryKey classes)
|
||||||
{
|
{
|
||||||
// importantly, we don't delete the default program entry because some other program could have taken it.
|
// importantly, we don't delete the default program entry because some other program could have taken it.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue