add bionic nativeaot support

This commit is contained in:
Emmanuel Hansen 2023-06-25 17:33:35 +00:00
parent ad0f9a7fc7
commit 4d06f19fe7
45 changed files with 2046 additions and 27 deletions

View file

@ -41,10 +41,16 @@ namespace LibRyujinx
ConfigurationState.Initialize();
LoggerModule.Initialize();
Logger.AddTarget(
new AsyncLogTargetWrapper(
new AndroidLogTarget("Ryujinx"),
1000,
AsyncLogTargetOverflowAction.Block
));
SwitchDevice = new SwitchDevice();
Logger.SetEnable(LogLevel.Debug, false);
Logger.SetEnable(LogLevel.Debug, true);
Logger.SetEnable(LogLevel.Stub, true);
Logger.SetEnable(LogLevel.Info, true);
Logger.SetEnable(LogLevel.Warning, true);
@ -94,7 +100,7 @@ namespace LibRyujinx
UserChannelPersistence = new UserChannelPersistence();
}
public bool InitializeContext()
public bool InitializeContext(bool isHostMapped)
{
if(LibRyujinx.Renderer == null)
{
@ -130,7 +136,7 @@ namespace LibRyujinx
0,
0,
"UTC",
MemoryManagerMode.HostMappedUnsafe,
isHostMapped ? MemoryManagerMode.HostMappedUnsafe : MemoryManagerMode.SoftwarePageTable,
false,
LibRyujinx.GraphicsConfiguration.AspectRatio,
0,