feat(Config):支持从环境变量中读取segatools.ini目录
This commit is contained in:
@@ -7,7 +7,7 @@ namespace NfcAime.Dll;
|
|||||||
internal static class Config
|
internal static class Config
|
||||||
{
|
{
|
||||||
internal const string IOSection = "aimeio";
|
internal const string IOSection = "aimeio";
|
||||||
private const string ConfigFileName = @".\segatools.ini";
|
private static string ConfigFileName = Environment.GetEnvironmentVariable("SEGATOOLS_CONFIG_PATH") == null ? @".\segatools.ini" : Environment.GetEnvironmentVariable("SEGATOOLS_CONFIG_PATH");
|
||||||
|
|
||||||
[DllImport("kernel32.dll", CharSet = CharSet.Unicode)]
|
[DllImport("kernel32.dll", CharSet = CharSet.Unicode)]
|
||||||
private static extern uint GetPrivateProfileString(
|
private static extern uint GetPrivateProfileString(
|
||||||
|
|||||||
Reference in New Issue
Block a user