use default user
This commit is contained in:
parent
1810b17d7b
commit
087198079d
4 changed files with 9 additions and 9 deletions
|
@ -39,7 +39,7 @@ namespace Ryujinx.HLE.OsHle.Services.Acc
|
||||||
|
|
||||||
public long GetBase(ServiceCtx Context)
|
public long GetBase(ServiceCtx Context)
|
||||||
{
|
{
|
||||||
ProfileBase ProfileBase = new ProfileBase(Context.Ns.Settings.ActiveUser);
|
ProfileBase ProfileBase = new ProfileBase(Context.Ns.Settings.User);
|
||||||
|
|
||||||
Context.ResponseData.Write(ProfileBase.UserId.ToBytes());
|
Context.ResponseData.Write(ProfileBase.UserId.ToBytes());
|
||||||
Context.ResponseData.Write(ProfileBase.Timestamp);
|
Context.ResponseData.Write(ProfileBase.Timestamp);
|
||||||
|
|
|
@ -5,9 +5,7 @@ namespace Ryujinx.HLE.Settings
|
||||||
{
|
{
|
||||||
public class SystemSettings
|
public class SystemSettings
|
||||||
{
|
{
|
||||||
public Profile ActiveUser { get; set; }
|
public Profile User { get; set; }
|
||||||
public ColorSet ThemeColor { get; set; }
|
public ColorSet ThemeColor { get; set; }
|
||||||
public List<Profile> UserProfiles { get; set; }
|
|
||||||
public int DefaultUserIndex { get; set; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,6 +67,12 @@ namespace Ryujinx.HLE
|
||||||
|
|
||||||
Os.FontSharedMem.MemoryMapped += Font.ShMemMap;
|
Os.FontSharedMem.MemoryMapped += Font.ShMemMap;
|
||||||
Os.FontSharedMem.MemoryUnmapped += Font.ShMemUnmap;
|
Os.FontSharedMem.MemoryUnmapped += Font.ShMemUnmap;
|
||||||
|
|
||||||
|
Settings.User = new Profile()
|
||||||
|
{
|
||||||
|
Username = "Ryujinx",
|
||||||
|
UserId = "00000000000000000000000000000000"
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public void LoadCart(string ExeFsDir, string RomFsFile = null)
|
public void LoadCart(string ExeFsDir, string RomFsFile = null)
|
||||||
|
|
|
@ -22,10 +22,6 @@ namespace Ryujinx
|
||||||
|
|
||||||
Config.Read(Ns.Log);
|
Config.Read(Ns.Log);
|
||||||
|
|
||||||
Ns.Settings.UserProfiles = Config.Users;
|
|
||||||
Ns.Settings.DefaultUserIndex = Config.DefaultUserIndex;
|
|
||||||
Ns.Settings.ActiveUser = Config.Users[Config.DefaultUserIndex];
|
|
||||||
|
|
||||||
Ns.Log.Updated += ConsoleLog.PrintLog;
|
Ns.Log.Updated += ConsoleLog.PrintLog;
|
||||||
|
|
||||||
if (args.Length == 1)
|
if (args.Length == 1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue