chore: update project branding to CITRON

Signed-off-by: Zephyron <zephyron@citron-emu.org>
This commit is contained in:
Zephyron
2025-05-06 16:11:33 +10:00
parent 5e16e20427
commit b2d9cf4a01
119 changed files with 483 additions and 483 deletions

View File

@@ -161,8 +161,8 @@ add_library(common STATIC
zstd_compression.h
)
if (YUZU_ENABLE_PORTABLE)
add_compile_definitions(YUZU_ENABLE_PORTABLE)
if (CITRON_ENABLE_PORTABLE)
add_compile_definitions(CITRON_ENABLE_PORTABLE)
endif()
if (WIN32)
@@ -262,7 +262,7 @@ if (ANDROID)
target_link_libraries(common PRIVATE android)
endif()
if (YUZU_USE_PRECOMPILED_HEADERS)
if (CITRON_USE_PRECOMPILED_HEADERS)
target_precompile_headers(common PRIVATE precompiled_headers.h)
endif()

View File

@@ -14,13 +14,13 @@ void assert_fail_impl();
[[noreturn]] void unreachable_impl();
#ifdef _MSC_VER
#define YUZU_NO_INLINE __declspec(noinline)
#define CITRON_NO_INLINE __declspec(noinline)
#else
#define YUZU_NO_INLINE __attribute__((noinline))
#define CITRON_NO_INLINE __attribute__((noinline))
#endif
#define ASSERT(_a_) \
([&]() YUZU_NO_INLINE { \
([&]() CITRON_NO_INLINE { \
if (!(_a_)) [[unlikely]] { \
LOG_CRITICAL(Debug, "Assertion Failed!"); \
assert_fail_impl(); \
@@ -28,7 +28,7 @@ void assert_fail_impl();
}())
#define ASSERT_MSG(_a_, ...) \
([&]() YUZU_NO_INLINE { \
([&]() CITRON_NO_INLINE { \
if (!(_a_)) [[unlikely]] { \
LOG_CRITICAL(Debug, "Assertion Failed!\n" __VA_ARGS__); \
assert_fail_impl(); \

View File

@@ -109,11 +109,11 @@ __declspec(dllimport) void __stdcall DebugBreak(void);
return static_cast<T>(key) == 0; \
}
#define YUZU_NON_COPYABLE(cls) \
#define CITRON_NON_COPYABLE(cls) \
cls(const cls&) = delete; \
cls& operator=(const cls&) = delete
#define YUZU_NON_MOVEABLE(cls) \
#define CITRON_NON_MOVEABLE(cls) \
cls(cls&&) = delete; \
cls& operator=(cls&&) = delete

View File

@@ -5,7 +5,7 @@
// citron data directories
#define YUZU_DIR "citron"
#define CITRON_DIR "citron"
#define PORTABLE_DIR "user"
// Sub-directories contained within a citron data directory

View File

@@ -88,11 +88,11 @@ public:
fs::path citron_path_config;
#ifdef _WIN32
#ifdef YUZU_ENABLE_PORTABLE
#ifdef CITRON_ENABLE_PORTABLE
citron_path = GetExeDirectory() / PORTABLE_DIR;
#endif
if (!IsDir(citron_path)) {
citron_path = GetAppDataRoamingDirectory() / YUZU_DIR;
citron_path = GetAppDataRoamingDirectory() / CITRON_DIR;
}
citron_path_cache = citron_path / CACHE_DIR;
@@ -102,16 +102,16 @@ public:
citron_path_cache = citron_path / CACHE_DIR;
citron_path_config = citron_path / CONFIG_DIR;
#else
#ifdef YUZU_ENABLE_PORTABLE
#ifdef CITRON_ENABLE_PORTABLE
citron_path = GetCurrentDir() / PORTABLE_DIR;
#endif
if (Exists(citron_path) && IsDir(citron_path)) {
citron_path_cache = citron_path / CACHE_DIR;
citron_path_config = citron_path / CONFIG_DIR;
} else {
citron_path = GetDataDirectory("XDG_DATA_HOME") / YUZU_DIR;
citron_path_cache = GetDataDirectory("XDG_CACHE_HOME") / YUZU_DIR;
citron_path_config = GetDataDirectory("XDG_CONFIG_HOME") / YUZU_DIR;
citron_path = GetDataDirectory("XDG_DATA_HOME") / CITRON_DIR;
citron_path_cache = GetDataDirectory("XDG_CACHE_HOME") / CITRON_DIR;
citron_path_config = GetDataDirectory("XDG_CONFIG_HOME") / CITRON_DIR;
}
#endif

View File

@@ -16,7 +16,7 @@ class IntrusiveListImpl;
}
class IntrusiveListNode {
YUZU_NON_COPYABLE(IntrusiveListNode);
CITRON_NON_COPYABLE(IntrusiveListNode);
private:
friend class impl::IntrusiveListImpl;
@@ -96,7 +96,7 @@ private:
namespace impl {
class IntrusiveListImpl {
YUZU_NON_COPYABLE(IntrusiveListImpl);
CITRON_NON_COPYABLE(IntrusiveListImpl);
private:
IntrusiveListNode m_root_node;
@@ -302,7 +302,7 @@ private:
template <class T, class Traits>
class IntrusiveList {
YUZU_NON_COPYABLE(IntrusiveList);
CITRON_NON_COPYABLE(IntrusiveList);
private:
impl::IntrusiveListImpl m_impl;

View File

@@ -17,7 +17,7 @@ class IntrusiveRedBlackTreeImpl;
#pragma pack(push, 4)
struct IntrusiveRedBlackTreeNode {
YUZU_NON_COPYABLE(IntrusiveRedBlackTreeNode);
CITRON_NON_COPYABLE(IntrusiveRedBlackTreeNode);
public:
using RBEntry = freebsd::RBEntry<IntrusiveRedBlackTreeNode>;
@@ -49,7 +49,7 @@ class IntrusiveRedBlackTree;
namespace impl {
class IntrusiveRedBlackTreeImpl {
YUZU_NON_COPYABLE(IntrusiveRedBlackTreeImpl);
CITRON_NON_COPYABLE(IntrusiveRedBlackTreeImpl);
private:
template <class, class, class>
@@ -261,7 +261,7 @@ using RedBlackKeyType = std::remove_pointer_t<decltype(impl::GetRedBlackKeyType<
template <class T, class Traits, class Comparator>
class IntrusiveRedBlackTree {
YUZU_NON_COPYABLE(IntrusiveRedBlackTree);
CITRON_NON_COPYABLE(IntrusiveRedBlackTree);
public:
using ImplType = impl::IntrusiveRedBlackTreeImpl;

View File

@@ -9,7 +9,7 @@
namespace detail {
template <class F>
class ScopeGuard {
YUZU_NON_COPYABLE(ScopeGuard);
CITRON_NON_COPYABLE(ScopeGuard);
private:
F f;

View File

@@ -52,7 +52,7 @@ public:
template <typename T>
class Field : public FieldInterface {
public:
YUZU_NON_COPYABLE(Field);
CITRON_NON_COPYABLE(Field);
Field(FieldType type_, std::string_view name_, T value_)
: name(name_), type(type_), value(std::move(value_)) {}
@@ -101,7 +101,7 @@ private:
*/
class FieldCollection final {
public:
YUZU_NON_COPYABLE(FieldCollection);
CITRON_NON_COPYABLE(FieldCollection);
FieldCollection() = default;
~FieldCollection() = default;
@@ -168,7 +168,7 @@ struct VisitorInterface {
* backend implementation is not available.
*/
struct NullVisitor final : public VisitorInterface {
YUZU_NON_COPYABLE(NullVisitor);
CITRON_NON_COPYABLE(NullVisitor);
NullVisitor() = default;
~NullVisitor() override = default;