mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-19 19:14:48 +00:00
* core: Rewrite PSF parser & add encoder add .sfo hex pattern to /scripts * core/fs: allow to mount path as read-only * common: Add CString wrapper to handle native null-terminated strings * SaveData: rewrite to implement full functionality * mock value for SYSTEM_VER * SavaData: backup features * SavaData: SaveDataMemory features * imgui Ref-counted textures - has a background thread to decode textures * imgui: rework gamepad navigation * PSF: fixed psf not using enum class for PSFEntryFmt (was a standard old ugly enum) - Add null check to CString when itself is used in a nullable field * SaveDataDialog implementation - Fix Mounting/Unmounting check of SaveInstance
32 lines
No EOL
1.3 KiB
C++
32 lines
No EOL
1.3 KiB
C++
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
// WARNING: All includes from this file must be relative to allow Dear_ImGui project to compile
|
|
// without having this project include paths.
|
|
|
|
#include <cstdint>
|
|
|
|
extern void assert_fail_debug_msg(const char* msg);
|
|
|
|
#define ImDrawIdx std::uint32_t
|
|
|
|
#define IM_STRINGIZE(x) IM_STRINGIZE2(x)
|
|
#define IM_STRINGIZE2(x) #x
|
|
#define IM_ASSERT(_EXPR) \
|
|
([&]() { \
|
|
if (!(_EXPR)) [[unlikely]] { \
|
|
assert_fail_debug_msg(#_EXPR " at " __FILE__ ":" IM_STRINGIZE(__LINE__)); \
|
|
} \
|
|
}())
|
|
|
|
#define IMGUI_USE_WCHAR32
|
|
#define IMGUI_ENABLE_STB_TRUETYPE
|
|
#define IMGUI_DEFINE_MATH_OPERATORS
|
|
|
|
#define IM_VEC2_CLASS_EXTRA \
|
|
constexpr ImVec2(float _v) : x(_v), y(_v) {}
|
|
|
|
#define IM_VEC4_CLASS_EXTRA \
|
|
constexpr ImVec4(float _v) : x(_v), y(_v), z(_v), w(_v) {} |