Fix controller and logging

This commit is contained in:
Stossy11 2025-03-09 08:00:08 +11:00
parent 14ce5102fb
commit 0bfca4c488
8 changed files with 52 additions and 69 deletions

View file

@ -157,6 +157,21 @@ namespace Ryujinx.Common.Configuration
}
else
{
if (OperatingSystem.IsIOS())
{
logDir = Path.Combine(BaseDirPath, "Logs");
try
{
Directory.CreateDirectory(logDir);
}
catch
{
Logger.Warning?.Print(LogClass.Application, $"Logging directory could not be created '{logDir}'");
return null;
}
}
if (OperatingSystem.IsMacOS())
{
// NOTE: Should evaluate to "~/Library/Logs/Ryujinx/".

View file

@ -68,10 +68,8 @@ namespace Ryujinx.Common.Logging.Targets
}
}
string version = ReleaseInformation.Version;
// Get path for the current time
path = Path.Combine(logDir.FullName, $"Ryujinx_{version}_{DateTime.Now:yyyy-MM-dd_HH-mm-ss}.log");
path = Path.Combine(logDir.FullName, $"MeloNX_{DateTime.Now:yyyy-MM-dd_HH-mm-ss}.log");
try
{

View file

@ -26,6 +26,6 @@ namespace Ryujinx.Common
public static bool IsFlatHubBuild => IsValid && ReleaseChannelOwner.Equals(FlatHubChannelOwner);
public static string Version => IsValid ? BuildVersion : Assembly.GetEntryAssembly()!.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion ?? "";
public static string Version => "ios";
}
}