libstrat: namespace hossynch.hpp
This commit is contained in:
@@ -64,7 +64,7 @@ bool SetMitmService::IsValidRegionCode(u32 region_code) {
|
||||
}
|
||||
|
||||
Result SetMitmService::EnsureLocale() {
|
||||
std::scoped_lock<HosMutex> lk(this->lock);
|
||||
std::scoped_lock lk(this->lock);
|
||||
|
||||
if (!this->got_locale) {
|
||||
std::memset(&this->locale, 0xCC, sizeof(this->locale));
|
||||
|
||||
@@ -31,7 +31,7 @@ class SetMitmService : public IMitmServiceObject {
|
||||
GetAvailableLanguageCodes = 1,
|
||||
};
|
||||
private:
|
||||
HosMutex lock;
|
||||
sts::os::Mutex lock;
|
||||
OverrideLocale locale;
|
||||
bool got_locale;
|
||||
public:
|
||||
|
||||
@@ -19,13 +19,13 @@
|
||||
|
||||
#include "setsys_firmware_version.hpp"
|
||||
|
||||
static HosMutex g_version_mutex;
|
||||
static sts::os::Mutex g_version_mutex;
|
||||
static bool g_got_version = false;
|
||||
static SetSysFirmwareVersion g_ams_fw_version = {0};
|
||||
static SetSysFirmwareVersion g_fw_version = {0};
|
||||
|
||||
void VersionManager::Initialize() {
|
||||
std::scoped_lock<HosMutex> lock(g_version_mutex);
|
||||
std::scoped_lock lock(g_version_mutex);
|
||||
|
||||
if (g_got_version) {
|
||||
return;
|
||||
|
||||
@@ -35,7 +35,7 @@ struct SettingsItemValue {
|
||||
std::map<std::string, SettingsItemValue> g_settings_items;
|
||||
|
||||
static bool g_threw_fatal = false;
|
||||
static HosThread g_fatal_thread;
|
||||
static sts::os::Thread g_fatal_thread;
|
||||
|
||||
static void FatalThreadFunc(void *arg) {
|
||||
svcSleepThread(5000000000ULL);
|
||||
|
||||
Reference in New Issue
Block a user