android: native: Set game specific settings before initializing core.
- Allows some other settings to be overridden.
This commit is contained in:
parent
5cb361111b
commit
af3efa2975
@ -128,6 +128,14 @@ static Core::System::ResultStatus RunCitra(const std::string& filepath) {
|
||||
|
||||
// Forces a config reload on game boot, if the user changed settings in the UI
|
||||
Config{};
|
||||
// Replace with game-specific settings
|
||||
u64 program_id{};
|
||||
FileUtil::SetCurrentRomPath(filepath);
|
||||
auto app_loader = Loader::GetLoader(filepath);
|
||||
if (app_loader) {
|
||||
app_loader->ReadProgramId(program_id);
|
||||
GameSettings::LoadOverrides(program_id);
|
||||
}
|
||||
Settings::Apply();
|
||||
|
||||
Camera::RegisterFactory("image", std::make_unique<Camera::StillImage::Factory>());
|
||||
@ -152,12 +160,6 @@ static Core::System::ResultStatus RunCitra(const std::string& filepath) {
|
||||
return load_result;
|
||||
}
|
||||
|
||||
// Replace with game-specific settings
|
||||
u64 program_id{};
|
||||
system.GetAppLoader().ReadProgramId(program_id);
|
||||
GameSettings::LoadOverrides(program_id);
|
||||
Settings::Apply();
|
||||
|
||||
auto& telemetry_session = Core::System::GetInstance().TelemetrySession();
|
||||
telemetry_session.AddField(Telemetry::FieldType::App, "Frontend", "SDL");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user