mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-31 10:07:06 +02:00
fixup shit
This commit is contained in:
parent
7fff0e79fd
commit
bcd9531654
4 changed files with 15 additions and 26 deletions
6
externals/CMakeLists.txt
vendored
6
externals/CMakeLists.txt
vendored
|
|
@ -256,8 +256,10 @@ target_include_directories(tz PUBLIC ./tz)
|
||||||
add_library(bc_decoder bc_decoder/bc_decoder.cpp)
|
add_library(bc_decoder bc_decoder/bc_decoder.cpp)
|
||||||
target_include_directories(bc_decoder PUBLIC ./bc_decoder)
|
target_include_directories(bc_decoder PUBLIC ./bc_decoder)
|
||||||
|
|
||||||
add_library(ps4sup ps4sup/emutls.c ps4sup/stub.cpp)
|
if (PLATFORM_PS4)
|
||||||
target_include_directories(ps4sup PUBLIC ./ps4sup)
|
add_library(ps4sup ps4sup/emutls.c ps4sup/stub.cpp)
|
||||||
|
target_include_directories(ps4sup PUBLIC ./ps4sup)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (NOT TARGET RenderDoc::API)
|
if (NOT TARGET RenderDoc::API)
|
||||||
add_library(renderdoc INTERFACE)
|
add_library(renderdoc INTERFACE)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,3 @@
|
||||||
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
|
|
||||||
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
|
@ -29,22 +26,27 @@ public:
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
Common::PhysicalAddress GetPhysicalAddr(const T* ptr) const {
|
Common::PhysicalAddress GetPhysicalAddr(const T* ptr) const {
|
||||||
return (uintptr_t(ptr) - uintptr_t(buffer.BackingBasePointer())) + DramMemoryMap::Base;
|
return (reinterpret_cast<uintptr_t>(ptr) -
|
||||||
|
reinterpret_cast<uintptr_t>(buffer.BackingBasePointer())) +
|
||||||
|
DramMemoryMap::Base;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
PAddr GetRawPhysicalAddr(const T* ptr) const {
|
PAddr GetRawPhysicalAddr(const T* ptr) const {
|
||||||
return PAddr(uintptr_t(ptr) - uintptr_t(buffer.BackingBasePointer()));
|
return static_cast<PAddr>(reinterpret_cast<uintptr_t>(ptr) -
|
||||||
|
reinterpret_cast<uintptr_t>(buffer.BackingBasePointer()));
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
T* GetPointer(Common::PhysicalAddress addr) {
|
T* GetPointer(Common::PhysicalAddress addr) {
|
||||||
return reinterpret_cast<T*>(buffer.BackingBasePointer() + (GetInteger(addr) - DramMemoryMap::Base));
|
return reinterpret_cast<T*>(buffer.BackingBasePointer() +
|
||||||
|
(GetInteger(addr) - DramMemoryMap::Base));
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
const T* GetPointer(Common::PhysicalAddress addr) const {
|
const T* GetPointer(Common::PhysicalAddress addr) const {
|
||||||
return reinterpret_cast<T*>(buffer.BackingBasePointer() + (GetInteger(addr) - DramMemoryMap::Base));
|
return reinterpret_cast<T*>(buffer.BackingBasePointer() +
|
||||||
|
(GetInteger(addr) - DramMemoryMap::Base));
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
# SPDX-FileCopyrightText: 2018 yuzu Emulator Project
|
# SPDX-FileCopyrightText: 2018 yuzu Emulator Project
|
||||||
|
|
|
||||||
|
|
@ -52,22 +52,7 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __OPENORBIS__
|
#if defined(_WIN32)
|
||||||
#include <orbis/SystemService.h>
|
|
||||||
#include <cxxabi.h>
|
|
||||||
#include <__thread/support.h>
|
|
||||||
# define STUB_WEAK(name) extern "C" void name() { printf("called " #name); asm volatile("ud2"); }
|
|
||||||
extern "C" void __cxa_thread_atexit_impl() {
|
|
||||||
//printf("atexit called");
|
|
||||||
}
|
|
||||||
STUB_WEAK(__assert)
|
|
||||||
STUB_WEAK(ZSTD_trace_compress_begin)
|
|
||||||
STUB_WEAK(ZSTD_trace_compress_end)
|
|
||||||
STUB_WEAK(ZSTD_trace_decompress_begin)
|
|
||||||
STUB_WEAK(ZSTD_trace_decompress_end)
|
|
||||||
FILE* __stderrp = stdout;
|
|
||||||
# undef STUB_WEAK
|
|
||||||
#elif defined(_WIN32)
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
// tells Nvidia and AMD drivers to use the dedicated GPU by default on laptops with switchable
|
// tells Nvidia and AMD drivers to use the dedicated GPU by default on laptops with switchable
|
||||||
// graphics
|
// graphics
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue