GetConfig should return 0x30006 in production mode

This commit is contained in:
David Marcec 2018-07-10 14:26:00 +10:00
commit 90050c3f84
2 changed files with 11 additions and 20 deletions

View file

@ -71,17 +71,7 @@ namespace Ryujinx.HLE.OsHle.Services.Nv.NvHostCtrl
private static int GetConfig(ServiceCtx Context) private static int GetConfig(ServiceCtx Context)
{ {
long InputPosition = Context.Request.GetBufferType0x21().Position; return NvResult.NotAvailableInProduction;
long OutputPosition = Context.Request.GetBufferType0x22().Position;
string Nv = AMemoryHelper.ReadAsciiString(Context.Memory, InputPosition + 0, 0x41);
string Name = AMemoryHelper.ReadAsciiString(Context.Memory, InputPosition + 0x41, 0x41);
Context.Memory.WriteByte(OutputPosition + 0x82, 0);
Context.Ns.Log.PrintStub(LogClass.ServiceNv, "Stubbed.");
return NvResult.Success;
} }
private static int EventWait(ServiceCtx Context) private static int EventWait(ServiceCtx Context)
@ -352,4 +342,4 @@ namespace Ryujinx.HLE.OsHle.Services.Nv.NvHostCtrl
UserCtxs.TryRemove(Process, out _); UserCtxs.TryRemove(Process, out _);
} }
} }
} }

View file

@ -2,12 +2,13 @@ namespace Ryujinx.HLE.OsHle.Services.Nv
{ {
static class NvResult static class NvResult
{ {
public const int Success = 0; public const int NotAvailableInProduction = 196614,
public const int TryAgain = -11; public const int Success = 0;
public const int OutOfMemory = -12; public const int TryAgain = -11;
public const int InvalidInput = -22; public const int OutOfMemory = -12;
public const int NotSupported = -25; public const int InvalidInput = -22;
public const int Restart = -85; public const int NotSupported = -25;
public const int TimedOut = -110; public const int Restart = -85;
public const int TimedOut = -110;
} }
} }