early-access version 3171

This commit is contained in:
pineappleEA
2022-12-01 02:28:19 +01:00
parent 16cad67595
commit ebf2bc2369
25 changed files with 260 additions and 21 deletions

View File

@@ -37,7 +37,7 @@ add_library(common STATIC
cache_management.cpp
cache_management.h
common_funcs.h
common_headers.h
common_precompiled_headers.h
common_types.h
concepts.h
div_ceil.h

View File

@@ -0,0 +1,14 @@
// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include <algorithm>
#include <array>
#include <chrono>
#include <memory>
#include <fmt/format.h>
#include "common/assert.h"
#include "common/common_types.h"

View File

@@ -3,4 +3,4 @@
#pragma once
#include "common/common_headers.h"
#include "common/common_precompiled_headers.h"

View File

@@ -141,7 +141,7 @@ static std::wstring CPToUTF16(u32 code_page, const std::string& input) {
MultiByteToWideChar(code_page, 0, input.data(), static_cast<int>(input.size()), nullptr, 0);
if (size == 0) {
return std::wstring(size, L'\0');
return {};
}
std::wstring output(size, L'\0');
@@ -158,7 +158,7 @@ std::string UTF16ToUTF8(const std::wstring& input) {
const auto size = WideCharToMultiByte(CP_UTF8, 0, input.data(), static_cast<int>(input.size()),
nullptr, 0, nullptr, nullptr);
if (size == 0) {
return std::string(size, '\0');
return {};
}
std::string output(size, '\0');