mirror of
https://github.com/Ale32bit/Capy64.git
synced 2025-01-18 18:46:43 +00:00
Bugfix appdata directory not being created
This commit is contained in:
parent
3e3b1654fc
commit
1eecf58cd0
1 changed files with 4 additions and 0 deletions
|
@ -9,6 +9,10 @@ using IHost host = Host.CreateDefaultBuilder(args)
|
|||
.ConfigureAppConfiguration((context, c) =>
|
||||
{
|
||||
var settingsPath = Path.Combine(Capy64.Capy64.AppDataPath, "settings.json");
|
||||
if(!Directory.Exists(Capy64.Capy64.AppDataPath))
|
||||
{
|
||||
Directory.CreateDirectory(Capy64.Capy64.AppDataPath);
|
||||
}
|
||||
if (!File.Exists(settingsPath))
|
||||
{
|
||||
File.Copy("Assets/default.json", settingsPath);
|
||||
|
|
Loading…
Reference in a new issue