Browse Source

Moved JsonConfigProvider to a new namespace

Added GeneratedStore
pull/46/head
Anairkoen Schno 5 years ago
parent
commit
e98d303865
4 changed files with 42 additions and 3 deletions
  1. +1
    -1
      IPA.Loader/Config/Config.cs
  2. +1
    -1
      IPA.Loader/Config/Providers/JsonConfigProvider.cs
  3. +38
    -0
      IPA.Loader/Config/Stores/GeneratedStore.cs
  4. +2
    -1
      IPA.Loader/IPA.Loader.csproj

+ 1
- 1
IPA.Loader/Config/Config.cs View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using IPA.Config.ConfigProviders;
using IPA.Config.Providers;
using IPA.Utilities;
#if NET3
using Net3_Proxy;


IPA.Loader/Config/ConfigProviders/JsonConfigProvider.cs → IPA.Loader/Config/Providers/JsonConfigProvider.cs View File

@ -6,7 +6,7 @@ using System.Collections.Specialized;
using System.ComponentModel;
using System.IO;
namespace IPA.Config.ConfigProviders
namespace IPA.Config.Providers
{
[Config.Type("json")]
internal class JsonConfigProvider : IConfigProvider

+ 38
- 0
IPA.Loader/Config/Stores/GeneratedStore.cs View File

@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace IPA.Config.Stores
{
internal class GeneratedStore
{
private class Impl : IConfigStore
{
public WaitHandle SyncObject { get; private set; } = new AutoResetEvent(false);
public ReaderWriterLockSlim WriteSyncObject => throw new NotImplementedException();
public void ReadFrom(IConfigProvider provider)
{
throw new NotImplementedException();
}
public void WriteTo(IConfigProvider provider)
{
throw new NotImplementedException();
}
}
public static T Create<T>() => (T)Create(typeof(T));
public static IConfigStore Create(Type type)
{
return null;
}
}
}

+ 2
- 1
IPA.Loader/IPA.Loader.csproj View File

@ -85,7 +85,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Config\Config.cs" />
<Compile Include="Config\ConfigProviders\JsonConfigProvider.cs" />
<Compile Include="Config\Providers\JsonConfigProvider.cs" />
<Compile Include="Config\Data\List.cs" />
<Compile Include="Config\Data\Map.cs" />
<Compile Include="Config\Data\Primitives.cs" />
@ -93,6 +93,7 @@
<Compile Include="Config\IConfigProvider.cs" />
<Compile Include="Config\IConfigStore.cs" />
<Compile Include="Config\SelfConfig.cs" />
<Compile Include="Config\Stores\GeneratedStore.cs" />
<Compile Include="JsonConverters\AlmostVersionConverter.cs" />
<Compile Include="JsonConverters\MultilineStringConverter.cs" />
<Compile Include="Loader\Composite\CompositeBSPlugin.cs" />


Loading…
Cancel
Save