Browse Source

Fixed some inconsistencies in the composite plugins

Fixed some documentation spelling
pull/1/head
Anairkoen Schno 6 years ago
parent
commit
5debf81e2c
3 changed files with 4 additions and 25 deletions
  1. +3
    -24
      IPA.Loader/Loader/Composite/CompositeBSPlugin.cs
  2. +1
    -1
      IPA.Loader/Utilities/ReflectionUtil.cs
  3. BIN
      Refs/UnityEngine.CoreModule.dll

+ 3
- 24
IPA.Loader/Loader/Composite/CompositeBSPlugin.cs View File

@ -24,36 +24,15 @@ namespace IPA.Loader.Composite
}
public void OnSceneLoaded(Scene scene, LoadSceneMode sceneMode) {
foreach (var plugin in plugins) {
try {
plugin.OnSceneLoaded(scene, sceneMode);
}
catch (Exception ex) {
Logger.log.Error($"{plugin.Name}: {ex}");
}
}
Invoke(plugin => plugin.OnSceneLoaded(scene, sceneMode));
}
public void OnSceneUnloaded(Scene scene) {
foreach (var plugin in plugins) {
try {
plugin.OnSceneUnloaded(scene);
}
catch (Exception ex) {
Logger.log.Error($"{plugin.Name}: {ex}");
}
}
Invoke(plugin => plugin.OnSceneUnloaded(scene));
}
public void OnActiveSceneChanged(Scene prevScene, Scene nextScene) {
foreach (var plugin in plugins) {
try {
plugin.OnActiveSceneChanged(prevScene, nextScene);
}
catch (Exception ex) {
Logger.log.Error($"{plugin.Name}: {ex}");
}
}
Invoke(plugin => plugin.OnActiveSceneChanged(prevScene, nextScene));
}
private void Invoke(CompositeCall callback) {


+ 1
- 1
IPA.Loader/Utilities/ReflectionUtil.cs View File

@ -36,7 +36,7 @@ namespace IPA.Utilities
}
/// <summary>
/// Sets a (potentially) private propert on the target object.
/// Sets a (potentially) private property on the target object.
/// </summary>
/// <param name="obj">the target object instance</param>
/// <param name="propertyName">the name of the property</param>


BIN
Refs/UnityEngine.CoreModule.dll View File


Loading…
Cancel
Save