Merge pull request #4232 from wwylele/multi-region

loader, cfg: choose region based on language if multiple regions available
This commit is contained in:
Weiyi Wang
2018-09-29 23:01:36 -04:00
committed by GitHub
3 changed files with 28 additions and 17 deletions

View File

@@ -7,6 +7,7 @@
#include <array>
#include <memory>
#include <string>
#include <vector>
#include "common/common_types.h"
#include "core/hle/service/fs/archive.h"
@@ -297,12 +298,11 @@ public:
u32 GetRegionValue();
/**
* Set the region code preferred by the game so that CFG will adjust to it when the region
* setting
* is auto.
* @param region_code the preferred region code to set
* Set the region codes preferred by the game so that CFG will adjust to it when the region
* setting is auto.
* @param region_codes the preferred region codes to set
*/
void SetPreferredRegionCode(u32 region_code);
void SetPreferredRegionCodes(const std::vector<u32>& region_codes);
// Utilities for frontend to set config data.
// Note: UpdateConfigNANDSavegame should be called after making changes to config data.