mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-30 17:47:10 +02:00
Fix controller and logging
This commit is contained in:
parent
14ce5102fb
commit
0bfca4c488
8 changed files with 52 additions and 69 deletions
|
@ -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/".
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue