fix native file logs

This commit is contained in:
Emmanuel Hansen 2023-07-08 12:46:23 +00:00
parent 5e3b8b4f89
commit 52b8a315e3
4 changed files with 20 additions and 6 deletions

View file

@ -35,7 +35,20 @@ namespace Ryujinx.Common
return BuildVersion;
}
return Assembly.GetEntryAssembly().GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion;
if (SystemInfo.SystemInfo.IsBionic)
{
return "Android_1.0";
}
try
{
return Assembly.GetEntryAssembly().GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion;
}
catch (Exception _)
{
return "Native";
}
}
#if FORCE_EXTERNAL_BASE_DIR
@ -46,7 +59,7 @@ namespace Ryujinx.Common
#else
public static string GetBaseApplicationDirectory()
{
if (IsFlatHubBuild() || OperatingSystem.IsMacOS())
if (IsFlatHubBuild() || OperatingSystem.IsMacOS() || SystemInfo.SystemInfo.IsBionic)
{
return AppDataManager.BaseDirPath;
}