Skip to content

Commit

Permalink
use separate config
Browse files Browse the repository at this point in the history
  • Loading branch information
LoveCany committed Aug 5, 2022
1 parent e3315a0 commit 04cd1a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CircleFanCount/CircleFanCount.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,18 @@
<AssemblyVersion></AssemblyVersion>
<FileVersion></FileVersion>
<Authors>$(AssemblyName)</Authors>
<Version>1.0.1</Version>
<Version>1.0.2</Version>
<ApplicationIcon>icon.ico</ApplicationIcon>
<PublishTrimmed>true</PublishTrimmed>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/LoveCany/CircleFanCount</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>umamusume</PackageTags>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>1701;1702;CS8509;CS8618</NoWarn>
<Optimize>True</Optimize>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
Expand Down
4 changes: 2 additions & 2 deletions CircleFanCount/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace CircleFanCount
{
internal static class Config
{
internal static string CONFIG_FILEPATH = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "UmamusumeResponseAnalyzer", ".config");
internal static string CONFIG_FILEPATH = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "CircleFanCount", ".config");
internal static Dictionary<string, string[]> ConfigSet { get; set; } = new();
internal static Dictionary<string, object> Configuration { get; private set; } = new();
internal static void Initialize()
Expand All @@ -22,7 +22,7 @@ internal static void Initialize()
});
ConfigSet.Add(Resource.ConfigSet_SaveResponseForDebug, Array.Empty<string>());
ConfigSet.Add(Resource.ConfigSet_DMMLaunch, Array.Empty<string>());
Directory.CreateDirectory(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "UmamusumeResponseAnalyzer"));
Directory.CreateDirectory(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "CircleFanCount"));
if (File.Exists(CONFIG_FILEPATH))
{
try
Expand Down

0 comments on commit 04cd1a5

Please sign in to comment.