mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-25 11:35:12 +00:00
Config: Resolve config and file log to application directory (#580)
This commit is contained in:
parent
8eebbc736e
commit
f73c11744e
2 changed files with 4 additions and 2 deletions
|
@ -157,7 +157,7 @@ namespace Ryujinx
|
|||
if (Instance.EnableFileLog)
|
||||
{
|
||||
Logger.AddTarget(new AsyncLogTargetWrapper(
|
||||
new FileLogTarget("Ryujinx.log"),
|
||||
new FileLogTarget(Path.Combine(Program.ApplicationDirectory, "Ryujinx.log")),
|
||||
1000,
|
||||
AsyncLogTargetOverflowAction.Block
|
||||
));
|
||||
|
|
|
@ -10,6 +10,8 @@ namespace Ryujinx
|
|||
{
|
||||
class Program
|
||||
{
|
||||
public static string ApplicationDirectory => AppDomain.CurrentDomain.BaseDirectory;
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Console.Title = "Ryujinx Console";
|
||||
|
@ -20,7 +22,7 @@ namespace Ryujinx
|
|||
|
||||
Switch device = new Switch(renderer, audioOut);
|
||||
|
||||
Configuration.Load("Config.jsonc");
|
||||
Configuration.Load(Path.Combine(ApplicationDirectory, "Config.jsonc"));
|
||||
Configuration.Configure(device);
|
||||
|
||||
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
|
||||
|
|
Loading…
Reference in a new issue