[C++] Uplift version to C++20
This commit is contained in:
committed by
Radosław Gliński
parent
a6e3d77504
commit
c3586bc165
@@ -383,7 +383,7 @@ struct GetViewportInfoArgs {
|
||||
depth_format = regs.Get<reg::RB_DEPTH_INFO>().depth_format;
|
||||
}
|
||||
XE_FORCEINLINE
|
||||
bool operator==(const GetViewportInfoArgs& prev) {
|
||||
bool operator==(const GetViewportInfoArgs& prev) const {
|
||||
#if XE_ARCH_AMD64 == 0
|
||||
bool result = true;
|
||||
|
||||
|
||||
@@ -94,9 +94,9 @@ void TextureDump(const TextureInfo& src, void* buffer, size_t length) {
|
||||
|
||||
static int dump_counter = 0;
|
||||
std::filesystem::path path = "texture_dumps";
|
||||
path /= fmt::format("{:05d}_{:08X}_{:08X}_{:08X}.dds", dump_counter++,
|
||||
src.memory.base_address, src.memory.mip_address,
|
||||
src.format_name());
|
||||
path /= fmt::format(fmt::runtime("{:05d}_{:08X}_{:08X}_{:08X}.dds"),
|
||||
dump_counter++, src.memory.base_address,
|
||||
src.memory.mip_address, src.format_name());
|
||||
|
||||
FILE* handle = filesystem::OpenFile(path, "wb");
|
||||
if (handle) {
|
||||
|
||||
@@ -64,7 +64,7 @@ TraceViewer::TraceViewer(xe::ui::WindowedAppContext& app_context,
|
||||
TraceViewer::~TraceViewer() = default;
|
||||
|
||||
bool TraceViewer::OnInitialize() {
|
||||
std::string path = cvars::target_trace_file.u8string();
|
||||
std::string path = cvars::target_trace_file.string();
|
||||
|
||||
// If no path passed, ask the user.
|
||||
// On Android, however, there's no synchronous file picker, and the trace file
|
||||
|
||||
Reference in New Issue
Block a user