37 lines
1.0 KiB
C#
Raw Normal View History

2024-06-19 21:11:42 -04:00
using Microsoft.Win32;
2024-06-14 19:06:21 -04:00
using ReCodeIt.GUI;
using ReCodeIt.Utils;
2024-06-19 21:11:42 -04:00
using ReCodeItLib.Utils;
2024-06-13 20:25:11 -04:00
2024-06-14 19:06:21 -04:00
namespace ReCodeIt;
2024-06-13 20:25:11 -04:00
internal static class Program
2024-06-13 18:09:31 -04:00
{
2024-06-13 20:25:11 -04:00
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
private static void Main()
2024-06-13 18:09:31 -04:00
{
2024-06-19 21:11:42 -04:00
RegistryHelper.SetRegistryValue(
"DataPath",
DataProvider.DataPath,
RegistryValueKind.String);
RegistryHelper.SetRegistryValue(
"SettingsPath",
Path.Combine(DataProvider.DataPath, "Settings.jsonc"),
RegistryValueKind.String);
RegistryHelper.SetRegistryValue(
"LogPath",
Path.Combine(DataProvider.DataPath, "Log.log"),
RegistryValueKind.String);
2024-06-13 20:25:11 -04:00
DataProvider.LoadAppSettings();
// To customize application configuration such as set high DPI settings or default font, see https://aka.ms/applicationconfiguration.
ApplicationConfiguration.Initialize();
2024-06-14 19:06:21 -04:00
Application.Run(new ReCodeItForm());
2024-06-13 18:09:31 -04:00
}
}