mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 08:22:32 +00:00
* added imgui as dependency * imgui renderer/basic input implementation * imgui: add layers system Add video info layer to show fps. Press F10 to toggle it. * imgui: add custom imgui config * imgui: gamepad capture, stopping propagation * imgui: changed config & log file path to use portable dir * videoout: render blank frame when video output is closed required to render imgui even when game has no video output - fixed merge compile-error
26 lines
596 B
C++
26 lines
596 B
C++
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include "common/assert.h"
|
|
#include "common/logging/backend.h"
|
|
|
|
#define Crash() __asm__ __volatile__("int $3")
|
|
|
|
void assert_fail_impl() {
|
|
Common::Log::Stop();
|
|
std::fflush(stdout);
|
|
Crash();
|
|
}
|
|
|
|
[[noreturn]] void unreachable_impl() {
|
|
Common::Log::Stop();
|
|
std::fflush(stdout);
|
|
Crash();
|
|
throw std::runtime_error("Unreachable code");
|
|
}
|
|
|
|
void assert_fail_debug_msg(const char* msg) {
|
|
LOG_CRITICAL(Debug, "Assertion Failed!\n{}", msg);
|
|
assert_fail_impl();
|
|
}
|