mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-12-13 13:37:00 +00:00
fix: add back compat functionality to the AudioBackend enum as well, and add missing migration comment from config version 70
This commit is contained in:
parent
844d7a9cfe
commit
ed89ffd3f8
4 changed files with 12 additions and 2 deletions
|
|
@ -957,6 +957,9 @@ namespace Ryujinx.Ava.Systems
|
||||||
|
|
||||||
AudioBackend preferredBackend = ConfigurationState.Instance.System.AudioBackend.Value;
|
AudioBackend preferredBackend = ConfigurationState.Instance.System.AudioBackend.Value;
|
||||||
|
|
||||||
|
if (preferredBackend is AudioBackend.SDL2)
|
||||||
|
preferredBackend = AudioBackend.SDL3;
|
||||||
|
|
||||||
for (int i = 0; i < availableBackends.Count; i++)
|
for (int i = 0; i < availableBackends.Count; i++)
|
||||||
{
|
{
|
||||||
if (availableBackends[i] == preferredBackend)
|
if (availableBackends[i] == preferredBackend)
|
||||||
|
|
|
||||||
|
|
@ -10,5 +10,6 @@ namespace Ryujinx.Ava.Systems.Configuration
|
||||||
OpenAl,
|
OpenAl,
|
||||||
SoundIo,
|
SoundIo,
|
||||||
SDL3,
|
SDL3,
|
||||||
|
SDL2 = SDL3
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ namespace Ryujinx.Ava.Systems.Configuration
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The current version of the file format
|
/// The current version of the file format
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const int CurrentVersion = 70;
|
public const int CurrentVersion = 71;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Version of the configuration file format
|
/// Version of the configuration file format
|
||||||
|
|
|
||||||
|
|
@ -484,7 +484,13 @@ namespace Ryujinx.Ava.Systems.Configuration
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
(69, static cff => cff.SkipUserProfiles = false)
|
(69, static cff => cff.SkipUserProfiles = false),
|
||||||
|
// no migration needed for 70
|
||||||
|
(71, static cff =>
|
||||||
|
{
|
||||||
|
if (cff.AudioBackend is AudioBackend.SDL2)
|
||||||
|
cff.AudioBackend = AudioBackend.SDL3;
|
||||||
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue