libstrat: namespace hossynch.hpp

This commit is contained in:
Michael Scire
2019-09-24 03:15:36 -07:00
committed by SciresM
parent 73d904036d
commit bb223eb5ae
57 changed files with 923 additions and 773 deletions

View File

@@ -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));

View File

@@ -31,7 +31,7 @@ class SetMitmService : public IMitmServiceObject {
GetAvailableLanguageCodes = 1,
};
private:
HosMutex lock;
sts::os::Mutex lock;
OverrideLocale locale;
bool got_locale;
public:

View File

@@ -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;

View File

@@ -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);