Browse Source

Fixed some warnings

pull/46/head
Anairkoen Schno 6 years ago
parent
commit
1b5c4a7c5a
2 changed files with 8 additions and 6 deletions
  1. +5
    -5
      IPA.Injector/LibLoader.cs
  2. +3
    -1
      IPA.Loader/Loader/PluginComponent.cs

+ 5
- 5
IPA.Injector/LibLoader.cs View File

@ -96,12 +96,12 @@ namespace IPA.Injector
// choice of which exceptions to catch depends entirely on the specific task
// you are intending to perform and also on how much you know with certainty
// about the systems on which this code will run.
catch (UnauthorizedAccessException e)
catch (UnauthorizedAccessException)
{
//Console.WriteLine(e.Message);
continue;
}
catch (System.IO.DirectoryNotFoundException e)
catch (System.IO.DirectoryNotFoundException)
{
//Console.WriteLine(e.Message);
continue;
@ -113,14 +113,14 @@ namespace IPA.Injector
files = System.IO.Directory.GetFiles(currentDir);
}
catch (UnauthorizedAccessException e)
catch (UnauthorizedAccessException)
{
//Console.WriteLine(e.Message);
continue;
}
catch (System.IO.DirectoryNotFoundException e)
catch (System.IO.DirectoryNotFoundException)
{
//Console.WriteLine(e.Message);
continue;
@ -142,7 +142,7 @@ namespace IPA.Injector
nextValue = new System.IO.FileInfo(file);
//Console.WriteLine("{0}: {1}, {2}", fi.Name, fi.Length, fi.CreationTime);
}
catch (System.IO.FileNotFoundException e)
catch (System.IO.FileNotFoundException)
{
// If file was deleted by a separate application
// or thread since the call to TraverseTree()


+ 3
- 1
IPA.Loader/Loader/PluginComponent.cs View File

@ -25,8 +25,10 @@ namespace IPA.Loader
DontDestroyOnLoad(gameObject);
bsPlugins = new CompositeBSPlugin(PluginManager.BSPlugins);
#pragma warning disable CS0618 // Type or member is obsolete
ipaPlugins = new CompositeIPAPlugin(PluginManager.Plugins);
#pragma warning restore CS0618 // Type or member is obsolete
gameObject.AddComponent<Updating.ModsaberML.Updater>();
bsPlugins.OnApplicationStart();


Loading…
Cancel
Save