early-access version 2164
This commit is contained in:
parent
29f91e4986
commit
d0c18a4f0c
@ -1,7 +1,7 @@
|
|||||||
yuzu emulator early access
|
yuzu emulator early access
|
||||||
=============
|
=============
|
||||||
|
|
||||||
This is the source code for early-access 2162.
|
This is the source code for early-access 2164.
|
||||||
|
|
||||||
## Legal Notice
|
## Legal Notice
|
||||||
|
|
||||||
|
@ -32,6 +32,7 @@ if (MSVC)
|
|||||||
# /Zc:externConstexpr - Allow extern constexpr variables to have external linkage, like the standard mandates
|
# /Zc:externConstexpr - Allow extern constexpr variables to have external linkage, like the standard mandates
|
||||||
# /Zc:inline - Let codegen omit inline functions in object files
|
# /Zc:inline - Let codegen omit inline functions in object files
|
||||||
# /Zc:throwingNew - Let codegen assume `operator new` (without std::nothrow) will never return null
|
# /Zc:throwingNew - Let codegen assume `operator new` (without std::nothrow) will never return null
|
||||||
|
# /GT - Supports fiber safety for data allocated using static thread-local storage
|
||||||
add_compile_options(
|
add_compile_options(
|
||||||
/MP
|
/MP
|
||||||
/Zi
|
/Zi
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
namespace FileSys {
|
namespace FileSys {
|
||||||
|
|
||||||
const std::array<const char*, 15> LANGUAGE_NAMES{{
|
const std::array<const char*, 16> LANGUAGE_NAMES{{
|
||||||
"AmericanEnglish",
|
"AmericanEnglish",
|
||||||
"BritishEnglish",
|
"BritishEnglish",
|
||||||
"Japanese",
|
"Japanese",
|
||||||
@ -25,6 +25,7 @@ const std::array<const char*, 15> LANGUAGE_NAMES{{
|
|||||||
"Korean",
|
"Korean",
|
||||||
"Taiwanese",
|
"Taiwanese",
|
||||||
"Chinese",
|
"Chinese",
|
||||||
|
"BrazilianPortuguese",
|
||||||
}};
|
}};
|
||||||
|
|
||||||
std::string LanguageEntry::GetApplicationName() const {
|
std::string LanguageEntry::GetApplicationName() const {
|
||||||
|
@ -88,11 +88,12 @@ enum class Language : u8 {
|
|||||||
Korean = 12,
|
Korean = 12,
|
||||||
Taiwanese = 13,
|
Taiwanese = 13,
|
||||||
Chinese = 14,
|
Chinese = 14,
|
||||||
|
BrazilianPortuguese = 15,
|
||||||
|
|
||||||
Default = 255,
|
Default = 255,
|
||||||
};
|
};
|
||||||
|
|
||||||
extern const std::array<const char*, 15> LANGUAGE_NAMES;
|
extern const std::array<const char*, 16> LANGUAGE_NAMES;
|
||||||
|
|
||||||
// A class representing the format used by NX metadata files, typically named Control.nacp.
|
// A class representing the format used by NX metadata files, typically named Control.nacp.
|
||||||
// These store application name, dev name, title id, and other miscellaneous data.
|
// These store application name, dev name, title id, and other miscellaneous data.
|
||||||
|
@ -277,6 +277,25 @@ constexpr ApplicationLanguagePriorityList priority_list_simplified_chinese = {{
|
|||||||
ApplicationLanguage::Korean,
|
ApplicationLanguage::Korean,
|
||||||
}};
|
}};
|
||||||
|
|
||||||
|
constexpr ApplicationLanguagePriorityList priority_list_brazilian_portuguese = {{
|
||||||
|
ApplicationLanguage::BrazilianPortuguese,
|
||||||
|
ApplicationLanguage::Portuguese,
|
||||||
|
ApplicationLanguage::LatinAmericanSpanish,
|
||||||
|
ApplicationLanguage::AmericanEnglish,
|
||||||
|
ApplicationLanguage::BritishEnglish,
|
||||||
|
ApplicationLanguage::Japanese,
|
||||||
|
ApplicationLanguage::French,
|
||||||
|
ApplicationLanguage::German,
|
||||||
|
ApplicationLanguage::Spanish,
|
||||||
|
ApplicationLanguage::Italian,
|
||||||
|
ApplicationLanguage::Dutch,
|
||||||
|
ApplicationLanguage::CanadianFrench,
|
||||||
|
ApplicationLanguage::Russian,
|
||||||
|
ApplicationLanguage::Korean,
|
||||||
|
ApplicationLanguage::SimplifiedChinese,
|
||||||
|
ApplicationLanguage::TraditionalChinese,
|
||||||
|
}};
|
||||||
|
|
||||||
const ApplicationLanguagePriorityList* GetApplicationLanguagePriorityList(
|
const ApplicationLanguagePriorityList* GetApplicationLanguagePriorityList(
|
||||||
const ApplicationLanguage lang) {
|
const ApplicationLanguage lang) {
|
||||||
switch (lang) {
|
switch (lang) {
|
||||||
@ -310,6 +329,8 @@ const ApplicationLanguagePriorityList* GetApplicationLanguagePriorityList(
|
|||||||
return &priority_list_traditional_chinese;
|
return &priority_list_traditional_chinese;
|
||||||
case ApplicationLanguage::SimplifiedChinese:
|
case ApplicationLanguage::SimplifiedChinese:
|
||||||
return &priority_list_simplified_chinese;
|
return &priority_list_simplified_chinese;
|
||||||
|
case ApplicationLanguage::BrazilianPortuguese:
|
||||||
|
return &priority_list_brazilian_portuguese;
|
||||||
default:
|
default:
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
@ -339,7 +360,6 @@ std::optional<ApplicationLanguage> ConvertToApplicationLanguage(
|
|||||||
case Set::LanguageCode::FR_CA:
|
case Set::LanguageCode::FR_CA:
|
||||||
return ApplicationLanguage::CanadianFrench;
|
return ApplicationLanguage::CanadianFrench;
|
||||||
case Set::LanguageCode::PT:
|
case Set::LanguageCode::PT:
|
||||||
case Set::LanguageCode::PT_BR:
|
|
||||||
return ApplicationLanguage::Portuguese;
|
return ApplicationLanguage::Portuguese;
|
||||||
case Set::LanguageCode::RU:
|
case Set::LanguageCode::RU:
|
||||||
return ApplicationLanguage::Russian;
|
return ApplicationLanguage::Russian;
|
||||||
@ -351,6 +371,8 @@ std::optional<ApplicationLanguage> ConvertToApplicationLanguage(
|
|||||||
case Set::LanguageCode::ZH_CN:
|
case Set::LanguageCode::ZH_CN:
|
||||||
case Set::LanguageCode::ZH_HANS:
|
case Set::LanguageCode::ZH_HANS:
|
||||||
return ApplicationLanguage::SimplifiedChinese;
|
return ApplicationLanguage::SimplifiedChinese;
|
||||||
|
case Set::LanguageCode::PT_BR:
|
||||||
|
return ApplicationLanguage::BrazilianPortuguese;
|
||||||
default:
|
default:
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
}
|
}
|
||||||
@ -388,6 +410,8 @@ std::optional<Set::LanguageCode> ConvertToLanguageCode(const ApplicationLanguage
|
|||||||
return Set::LanguageCode::ZH_HANT;
|
return Set::LanguageCode::ZH_HANT;
|
||||||
case ApplicationLanguage::SimplifiedChinese:
|
case ApplicationLanguage::SimplifiedChinese:
|
||||||
return Set::LanguageCode::ZH_HANS;
|
return Set::LanguageCode::ZH_HANS;
|
||||||
|
case ApplicationLanguage::BrazilianPortuguese:
|
||||||
|
return Set::LanguageCode::PT_BR;
|
||||||
default:
|
default:
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
}
|
}
|
||||||
|
@ -30,6 +30,7 @@ enum class ApplicationLanguage : u8 {
|
|||||||
Korean,
|
Korean,
|
||||||
TraditionalChinese,
|
TraditionalChinese,
|
||||||
SimplifiedChinese,
|
SimplifiedChinese,
|
||||||
|
BrazilianPortuguese,
|
||||||
Count
|
Count
|
||||||
};
|
};
|
||||||
using ApplicationLanguagePriorityList =
|
using ApplicationLanguagePriorityList =
|
||||||
|
@ -188,8 +188,8 @@ Device::Device() {
|
|||||||
const int version_major =
|
const int version_major =
|
||||||
std::atoi(driver_version.substr(0, driver_version.find(".")).data());
|
std::atoi(driver_version.substr(0, driver_version.find(".")).data());
|
||||||
|
|
||||||
if (version_major >= 495 && version_major <= 496) {
|
if (version_major >= 495) {
|
||||||
LOG_WARNING(Render_OpenGL, "NVIDIA drivers 495 through 496 causes significant problems "
|
LOG_WARNING(Render_OpenGL, "NVIDIA drivers 495 and later causes significant problems "
|
||||||
"with yuzu. Forcing GLASM as a mitigation.");
|
"with yuzu. Forcing GLASM as a mitigation.");
|
||||||
shader_backend = Settings::ShaderBackend::GLASM;
|
shader_backend = Settings::ShaderBackend::GLASM;
|
||||||
use_assembly_shaders = true;
|
use_assembly_shaders = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user