id int64 0 755k | file_name stringlengths 3 109 | file_path stringlengths 13 185 | content stringlengths 31 9.38M | size int64 31 9.38M | language stringclasses 1
value | extension stringclasses 11
values | total_lines int64 1 340k | avg_line_length float64 2.18 149k | max_line_length int64 7 2.22M | alphanum_fraction float64 0 1 | repo_name stringlengths 6 65 | repo_stars int64 100 47.3k | repo_forks int64 0 12k | repo_open_issues int64 0 3.4k | repo_license stringclasses 9
values | repo_extraction_date stringclasses 92
values | exact_duplicates_redpajama bool 2
classes | near_duplicates_redpajama bool 2
classes | exact_duplicates_githubcode bool 2
classes | exact_duplicates_stackv2 bool 1
class | exact_duplicates_stackv1 bool 2
classes | near_duplicates_githubcode bool 2
classes | near_duplicates_stackv1 bool 2
classes | near_duplicates_stackv2 bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23,103 | coreinit_IM.cpp | cemu-project_Cemu/src/Cafe/OS/libs/coreinit/coreinit_IM.cpp | #include "Cafe/OS/common/OSCommon.h"
// APD = Automatic Power Down
namespace coreinit
{
#define IM_ERROR_NONE 0
void coreinitExport_IMIsAPDEnabledBySysSettings(PPCInterpreter_t* hCPU)
{
debug_printf("IMIsAPDEnabledBySysSettings(0x%08x)\n", hCPU->gpr[3]);
ppcDefineParamTypePtr(isAPDEnabled, uint32be, 0);
*is... | 4,222 | C++ | .cpp | 113 | 34.469027 | 113 | 0.761812 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,104 | coreinit_IPC.cpp | cemu-project_Cemu/src/Cafe/OS/libs/coreinit/coreinit_IPC.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/IOSU/kernel/iosu_kernel.h"
#include "Cafe/HW/Espresso/Const.h"
#include "Cafe/HW/Espresso/PPCCallback.h"
#include "coreinit_MessageQueue.h"
#include "coreinit_IPC.h"
namespace coreinit
{
static constexpr inline size_t IPC_NUM_RESOURCE_BUFFERS = 0x30;
struct IPCRe... | 18,550 | C++ | .cpp | 416 | 41.451923 | 233 | 0.770171 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,105 | coreinit_OSScreen.cpp | cemu-project_Cemu/src/Cafe/OS/libs/coreinit/coreinit_OSScreen.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/OS/libs/gx2/GX2.h"
#include "Cafe/HW/Latte/Core/Latte.h"
#include "Cafe/OS/libs/coreinit/coreinit_OSScreen_font.h"
#include "Cafe/OS/libs/coreinit/coreinit_OSScreen.h"
#define OSSCREEN_TV (0)
#define OSSCREEN_DRC (1)
namespace coreinit
{
struct
{
sint32 x;
... | 5,696 | C++ | .cpp | 168 | 30.815476 | 144 | 0.73887 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,106 | coreinit_Memory.cpp | cemu-project_Cemu/src/Cafe/OS/libs/coreinit/coreinit_Memory.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "coreinit_Memory.h"
#include "Cafe/HW/Latte/Core/LatteBufferCache.h"
#include "Cafe/OS/RPL/rpl.h"
#include "Cafe/GraphicPack/GraphicPack2.h"
#include "Cafe/CafeSystem.h"
namespace coreinit
{
void DCInvalidateRange(MPTR addr, uint32 size)
{
MPTR addrEnd = (addr + size ... | 6,985 | C++ | .cpp | 199 | 31.859296 | 140 | 0.726036 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,107 | coreinit_MEM_ExpHeap.cpp | cemu-project_Cemu/src/Cafe/OS/libs/coreinit/coreinit_MEM_ExpHeap.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/HW/Espresso/PPCCallback.h"
#include "Cafe/OS/libs/coreinit/coreinit_MEM_ExpHeap.h"
#define EXP_HEAP_GET_FROM_FREE_BLOCKCHAIN(__blockchain__) (MEMExpHeapHead2*)((uintptr_t)__blockchain__ - offsetof(MEMExpHeapHead2, expHeapHead) - offsetof(MEMExpHeapHead40_t, chainFree... | 34,153 | C++ | .cpp | 883 | 35.960362 | 192 | 0.765518 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,108 | coreinit_FG.cpp | cemu-project_Cemu/src/Cafe/OS/libs/coreinit/coreinit_FG.cpp | #include "Cafe/OS/common/OSCommon.h"
#include <memory>
#define FG_BUCKET_AREA_FREE 0 // free area available game
#define FG_BUCKET_AREA_AUDIO_TRANSITION 1 // transition audio buffer
#define FG_BUCKET_AREA2 2 // frame storage? TV?
#define FG_BUCKET_AREA3 3 // frame storage? DRC?
#define FG_BUCKET_AREA4 ... | 5,558 | C++ | .cpp | 170 | 29.9 | 171 | 0.722191 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,109 | coreinit_SystemInfo.cpp | cemu-project_Cemu/src/Cafe/OS/libs/coreinit/coreinit_SystemInfo.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/OS/libs/coreinit/coreinit_SystemInfo.h"
namespace coreinit
{
SysAllocator<OSSystemInfo> g_system_info;
const OSSystemInfo& OSGetSystemInfo()
{
return *g_system_info.GetPtr();
}
void InitializeSystemInfo()
{
cemu_assert(ppcCyclesSince2000 != 0);
g_system... | 792 | C++ | .cpp | 22 | 33.636364 | 89 | 0.757497 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,110 | coreinit_GHS.cpp | cemu-project_Cemu/src/Cafe/OS/libs/coreinit/coreinit_GHS.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/OS/libs/coreinit/coreinit_GHS.h"
#include "Cafe/OS/libs/coreinit/coreinit_MEM.h"
#include "Cafe/OS/libs/coreinit/coreinit_Thread.h"
#include "Cafe/OS/RPL/rpl.h"
namespace coreinit
{
struct iobbuf
{
uint32be ukn00; // lock index?
uint32be ukn04; // ?
uint32be ... | 8,917 | C++ | .cpp | 242 | 34 | 200 | 0.732507 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,111 | coreinit_MPQueue.cpp | cemu-project_Cemu/src/Cafe/OS/libs/coreinit/coreinit_MPQueue.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/OS/libs/coreinit/coreinit_MPQueue.h"
#include "Cafe/OS/libs/coreinit/coreinit_Time.h"
#include "Cafe/HW/Espresso/PPCCallback.h"
#include "util/helpers/fspinlock.h"
// titles that utilize MP task queue: Yoshi's Woolly World, Fast Racing Neo, Tokyo Mirage Sessions, Mii... | 15,133 | C++ | .cpp | 418 | 32.174641 | 194 | 0.712307 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,112 | coreinit_MEM.cpp | cemu-project_Cemu/src/Cafe/OS/libs/coreinit/coreinit_MEM.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/OS/libs/coreinit/coreinit_FG.h"
#include "Cafe/OS/libs/coreinit/coreinit_MEM.h"
#include "Cafe/OS/libs/coreinit/coreinit_MEM_ExpHeap.h"
#include "Cafe/OS/libs/coreinit/coreinit_Memory.h"
#include "Cafe/OS/RPL/rpl.h"
#include "Cafe/OS/libs/coreinit/coreinit_MEM_FrmHeap... | 19,261 | C++ | .cpp | 534 | 32.790262 | 156 | 0.753696 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,113 | coreinit_BSP.cpp | cemu-project_Cemu/src/Cafe/OS/libs/coreinit/coreinit_BSP.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "coreinit_BSP.h"
namespace coreinit
{
bool bspGetHardwareVersion(uint32be* version)
{
uint8 highVersion = 0x11; // anything below 0x11 will be considered as Hollywood
// todo: Check version returned on console
uint32 tempVers = highVersion << 24;
*version = tempV... | 452 | C++ | .cpp | 17 | 24.470588 | 82 | 0.771889 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,114 | coreinit_Callbacks.cpp | cemu-project_Cemu/src/Cafe/OS/libs/coreinit/coreinit_Callbacks.cpp | #include "Cafe/OS/libs/coreinit/coreinit_Thread.h"
#include "util/helpers/fspinlock.h"
struct CoreinitAsyncCallback
{
CoreinitAsyncCallback(MPTR functionMPTR, uint32 numParameters, uint32 r3, uint32 r4, uint32 r5, uint32 r6, uint32 r7, uint32 r8, uint32 r9, uint32 r10) :
m_functionMPTR(functionMPTR), m_numParameter... | 4,781 | C++ | .cpp | 99 | 45.979798 | 323 | 0.783708 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,115 | coreinit_LockedCache.cpp | cemu-project_Cemu/src/Cafe/OS/libs/coreinit/coreinit_LockedCache.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/OS/libs/coreinit/coreinit.h"
#include "Cafe/HW/Latte/Core/LatteBufferCache.h"
/*
Locked cache is mapped to the following memory regions:
offset size
core0: 0xFFC00000 0x4000
core1: 0xFFC40000 0x4000
core2: 0xFFC80000 0x4000
*/
#define LC_LOCKED_CACHE_GRANULA... | 10,153 | C++ | .cpp | 266 | 34.87218 | 155 | 0.729754 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,116 | coreinit_Misc.cpp | cemu-project_Cemu/src/Cafe/OS/libs/coreinit/coreinit_Misc.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/OS/libs/coreinit/coreinit_Misc.h"
#include "Cafe/OS/libs/coreinit/coreinit_MessageQueue.h"
#include "Cafe/CafeSystem.h"
#include "Cafe/Filesystem/fsc.h"
#include <pugixml.hpp>
namespace coreinit
{
sint32 ppc_vprintf(const char* formatStr, char* strOut, sint32 maxLen... | 17,960 | C++ | .cpp | 539 | 29.150278 | 188 | 0.686065 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,117 | coreinit_CodeGen.cpp | cemu-project_Cemu/src/Cafe/OS/libs/coreinit/coreinit_CodeGen.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/OS/RPL/rpl.h"
#include "Cafe/OS/libs/coreinit/coreinit_CodeGen.h"
#include "Cafe/HW/Espresso/Recompiler/PPCRecompiler.h"
#include "Common/ExceptionHandler/ExceptionHandler.h"
namespace coreinit
{
struct
{
bool rangeIsAllocated;
MPTR rangeStart;
uint32 rangeSi... | 4,433 | C++ | .cpp | 129 | 31.325581 | 136 | 0.754492 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,118 | coreinit_MessageQueue.cpp | cemu-project_Cemu/src/Cafe/OS/libs/coreinit/coreinit_MessageQueue.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/OS/libs/coreinit/coreinit_MessageQueue.h"
namespace coreinit
{
void UpdateSystemMessageQueue();
void HandleReceivedSystemMessage(OSMessage* msg);
SysAllocator<OSMessageQueue> g_systemMessageQueue;
SysAllocator<OSMessage, 16> _systemMessageQueueArray;
void OSIn... | 4,447 | C++ | .cpp | 128 | 31.453125 | 127 | 0.755803 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,119 | coreinit_IOS.cpp | cemu-project_Cemu/src/Cafe/OS/libs/coreinit/coreinit_IOS.cpp | #include "Cafe/OS/libs/coreinit/coreinit_IOS.h"
#include "Cafe/IOSU/legacy/iosu_ioctl.h"
// superseded by coreinit_IPC.cpp/h
sint32 __depr__IOS_Open(char* path, uint32 mode)
{
sint32 iosDevice = 0;
if (path == nullptr)
{
iosDevice = 0;
}
else
{
if (strcmp(path, IOS_PATH_ODM) == 0)
iosDevice = IOS_DEVICE_... | 2,217 | C++ | .cpp | 82 | 24.268293 | 120 | 0.70461 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,120 | coreinit_SysHeap.cpp | cemu-project_Cemu/src/Cafe/OS/libs/coreinit/coreinit_SysHeap.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/OS/libs/coreinit/coreinit_SysHeap.h"
#include "Cafe/OS/libs/coreinit/coreinit_MEM_ExpHeap.h"
namespace coreinit
{
coreinit::MEMHeapHandle _sysHeapHandle = MPTR_NULL;
sint32 _sysHeapAllocCounter = 0;
sint32 _sysHeapFreeCounter = 0;
void* OSAllocFromSystem(uint32 ... | 1,122 | C++ | .cpp | 32 | 32.71875 | 116 | 0.789668 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,121 | coreinit_Scheduler.cpp | cemu-project_Cemu/src/Cafe/OS/libs/coreinit/coreinit_Scheduler.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "coreinit_Scheduler.h"
thread_local sint32 s_schedulerLockCount = 0;
#if BOOST_OS_WINDOWS
#include <synchapi.h>
CRITICAL_SECTION s_csSchedulerLock;
#else
#include <pthread.h>
pthread_mutex_t s_ptmSchedulerLock;
#endif
void __OSLockScheduler(void* obj)
{
#if BOOST_OS_WIND... | 3,318 | C++ | .cpp | 112 | 27.375 | 188 | 0.778891 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,122 | coreinit_IPCBuf.cpp | cemu-project_Cemu/src/Cafe/OS/libs/coreinit/coreinit_IPCBuf.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/OS/libs/coreinit/coreinit_Thread.h"
#include "coreinit_IPCBuf.h"
namespace coreinit
{
void FIFOInit(IPCFifo_t* fifo, uint32 entryCount, void* entryArray)
{
fifo->entryCount = entryCount;
fifo->entryArray = (FIFOEntry_t*)entryArray;
fifo->writeIndex = 0;
fif... | 6,793 | C++ | .cpp | 179 | 34.927374 | 129 | 0.718987 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,123 | coreinit_Time.cpp | cemu-project_Cemu/src/Cafe/OS/libs/coreinit/coreinit_Time.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/OS/libs/coreinit/coreinit_Time.h"
namespace coreinit
{
uint64 coreinit_getTimerTick()
{
// bus clock is 1/5th of core clock
// timer clock is 1/4th of bus clock
return PPCInterpreter_getMainCoreCycleCounter() / 20ULL;
}
uint64 coreinit_getOSTime()
{
re... | 8,184 | C++ | .cpp | 319 | 22.043887 | 84 | 0.679349 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,124 | coreinit_Spinlock.cpp | cemu-project_Cemu/src/Cafe/OS/libs/coreinit/coreinit_Spinlock.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/OS/libs/coreinit/coreinit_Thread.h"
#include "Cafe/OS/libs/coreinit/coreinit_Spinlock.h"
#include "Cafe/OS/libs/coreinit/coreinit_Time.h"
#include "Cafe/OS/libs/coreinit/coreinit.h"
namespace coreinit
{
void __OSBoostThread(OSThread_t* thread)
{
__OSLockScheduler... | 6,827 | C++ | .cpp | 216 | 28.356481 | 248 | 0.749242 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,125 | coreinit_MCP.cpp | cemu-project_Cemu/src/Cafe/OS/libs/coreinit/coreinit_MCP.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/IOSU/legacy/iosu_ioctl.h"
#include "Cafe/IOSU/legacy/iosu_mcp.h"
#include "Cafe/OS/libs/coreinit/coreinit_IOS.h"
#include "Cafe/OS/libs/coreinit/coreinit_MCP.h"
#include "Cafe/OS/libs/nn_common.h"
#include "Cafe/OS/libs/nn_act/nn_act.h"
#include "config/CemuConfig.h... | 22,155 | C++ | .cpp | 516 | 40.114341 | 176 | 0.754634 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,126 | nlibcurl.cpp | cemu-project_Cemu/src/Cafe/OS/libs/nlibcurl/nlibcurl.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/OS/common/OSUtil.h"
#include "Cafe/HW/Espresso/PPCCallback.h"
#include "nlibcurl.h"
#include "openssl/bn.h"
#include "openssl/x509.h"
#include "openssl/ssl.h"
#define CURL_STRICTER
#include "curl/curl.h"
#include <unordered_map>
#include <atomic>
#include "Cafe/IO... | 46,403 | C++ | .cpp | 1,321 | 32.480696 | 271 | 0.723295 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,127 | nn_cmpt.cpp | cemu-project_Cemu/src/Cafe/OS/libs/nn_cmpt/nn_cmpt.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "nn_cmpt.h"
namespace nn::cmpt
{
uint32 CMPTAcctGetPcConf(uint32be* pcConf)
{
cemuLog_logDebug(LogType::Force, "CMPTAcctGetPcConf() - todo");
pcConf[0] = 0;
pcConf[1] = 0;
pcConf[2] = 0;
return 0;
}
uint32 CMPTGetDataSize(uint32be* sizeOut)
{
*sizeOut = 0... | 517 | C++ | .cpp | 23 | 20.173913 | 73 | 0.733198 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,128 | mic.cpp | cemu-project_Cemu/src/Cafe/OS/libs/mic/mic.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "input/InputManager.h"
#include "audio/IAudioInputAPI.h"
#include "config/CemuConfig.h"
enum class MIC_RESULT
{
SUCCESS = 0,
BAD_PARAM = -2,
ALREADY_OPEN = -5,
NOT_OPEN = -6,
NOT_INITIALIZED = -7,
NOT_CONNECTED = -8
};
#define MIC_SAMPLERATE 32000
const int... | 13,050 | C++ | .cpp | 438 | 27.474886 | 159 | 0.73132 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,129 | nn_fp.cpp | cemu-project_Cemu/src/Cafe/OS/libs/nn_fp/nn_fp.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/IOSU/legacy/iosu_act.h"
#include "Cafe/IOSU/legacy/iosu_fpd.h"
#include "Cafe/IOSU/legacy/iosu_ioctl.h" // deprecated
#include "Cafe/IOSU/iosu_ipc_common.h"
#include "Cafe/OS/libs/coreinit/coreinit_IOS.h"
#include "Cafe/OS/libs/coreinit/coreinit_IPC.h"
#include "Cafe/... | 33,602 | C++ | .cpp | 745 | 41.061745 | 207 | 0.741815 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,130 | dmae.cpp | cemu-project_Cemu/src/Cafe/OS/libs/dmae/dmae.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/OS/libs/coreinit/coreinit_Time.h"
#include "Cafe/HW/Latte/Core/LatteBufferCache.h"
#define DMAE_ENDIAN_NONE 0
#define DMAE_ENDIAN_16 1
#define DMAE_ENDIAN_32 2
#define DMAE_ENDIAN_64 3
uint64 dmaeRetiredTimestamp = 0;
uint64 dmae_getTimestamp()
{
return coreini... | 3,287 | C++ | .cpp | 104 | 29.567308 | 125 | 0.763258 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,131 | snd_user.cpp | cemu-project_Cemu/src/Cafe/OS/libs/snd_user/snd_user.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/OS/libs/snd_user/snd_user.h"
#include "Cafe/OS/libs/snd_core/ax.h"
#include "Cafe/OS/libs/coreinit/coreinit_MEM.h"
#include "Cafe/HW/Espresso/PPCCallback.h"
#include "Cafe/OS/RPL/rpl.h"
using namespace snd_core;
namespace snd
{
namespace user
{
#define AX_MAX_NUM_... | 43,888 | C++ | .cpp | 1,037 | 37.720347 | 238 | 0.68599 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,132 | nn_ec.cpp | cemu-project_Cemu/src/Cafe/OS/libs/nn_ec/nn_ec.cpp | #include "Cafe/OS/common/OSCommon.h"
typedef struct
{
/* +0x00 */ uint8 ukn00[0x10];
/* +0x10 */ uint8 ukn10[0x0C];
/* +0x2C */ uint8 ukn2C[0x10]; // currency string?
/* +0x3C */ uint32 ukn3C; // money amount?
// size of struct is 0x40
}nnEcUknMoneyStruct_t;
void nnEcExport___ct__Q3_2nn2ec5MoneyFPCcN21(PPCInte... | 814 | C++ | .cpp | 23 | 33.695652 | 109 | 0.730038 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,133 | ntag.cpp | cemu-project_Cemu/src/Cafe/OS/libs/ntag/ntag.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/OS/RPL/rpl.h"
#include "Cafe/OS/libs/ntag/ntag.h"
#include "Cafe/OS/libs/nfc/nfc.h"
#include "Cafe/OS/libs/coreinit/coreinit_IPC.h"
#include "Cafe/IOSU/ccr_nfc/iosu_ccr_nfc.h"
namespace ntag
{
struct NTAGWriteData
{
uint16 size;
uint8 data[0x1C8];
nfc::NFCUid... | 19,988 | C++ | .cpp | 539 | 33.710575 | 215 | 0.733309 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,134 | BackendWindowsHID.cpp | cemu-project_Cemu/src/Cafe/OS/libs/nsyshid/BackendWindowsHID.cpp | #include "BackendWindowsHID.h"
#if NSYSHID_ENABLE_BACKEND_WINDOWS_HID
#include <setupapi.h>
#include <initguid.h>
#include <hidsdi.h>
#pragma comment(lib, "Setupapi.lib")
#pragma comment(lib, "hid.lib")
DEFINE_GUID(GUID_DEVINTERFACE_HID,
0x4D1E55B2L, 0xF16F, 0x11CF, 0x88, 0xCB, 0x00, 0x11, 0x11, 0x00, 0x00, 0x30... | 13,611 | C++ | .cpp | 397 | 29.937028 | 189 | 0.68854 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,135 | Infinity.cpp | cemu-project_Cemu/src/Cafe/OS/libs/nsyshid/Infinity.cpp | #include "Infinity.h"
#include <random>
#include "nsyshid.h"
#include "Backend.h"
#include "util/crypto/aes128.h"
#include <openssl/crypto.h>
#include "openssl/sha.h"
namespace nsyshid
{
static constexpr std::array<uint8, 32> SHA1_CONSTANT = {
0xAF, 0x62, 0xD2, 0xEC, 0x04, 0x91, 0x96, 0x8C, 0xC5, 0x2A, 0x1A, 0x... | 34,900 | C++ | .cpp | 998 | 31.6002 | 104 | 0.657279 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,136 | Whitelist.cpp | cemu-project_Cemu/src/Cafe/OS/libs/nsyshid/Whitelist.cpp | #include "Whitelist.h"
namespace nsyshid
{
Whitelist& Whitelist::GetInstance()
{
static Whitelist whitelist;
return whitelist;
}
Whitelist::Whitelist()
{
// add known devices
{
// lego dimensions portal
m_devices.emplace_back(0x0e6f, 0x0241);
// skylanders portal
m_devices.emplace_back(0x1430... | 1,126 | C++ | .cpp | 46 | 21.695652 | 71 | 0.72973 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,137 | AttachDefaultBackends.cpp | cemu-project_Cemu/src/Cafe/OS/libs/nsyshid/AttachDefaultBackends.cpp | #include "nsyshid.h"
#include "Backend.h"
#include "BackendEmulated.h"
#if NSYSHID_ENABLE_BACKEND_LIBUSB
#include "BackendLibusb.h"
#endif
#if NSYSHID_ENABLE_BACKEND_WINDOWS_HID
#include "BackendWindowsHID.h"
#endif
namespace nsyshid::backend
{
void AttachDefaultBackends()
{
#if NSYSHID_ENABLE_BACKEND_LIBUSB
... | 1,093 | C++ | .cpp | 43 | 22.604651 | 84 | 0.750719 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,138 | Skylander.cpp | cemu-project_Cemu/src/Cafe/OS/libs/nsyshid/Skylander.cpp | #include "Skylander.h"
#include <random>
#include "nsyshid.h"
#include "Backend.h"
#include "Common/FileStream.h"
namespace nsyshid
{
SkylanderUSB g_skyportal;
const std::map<const std::pair<const uint16, const uint16>, const char*>
s_listSkylanders = {
{{0, 0x0000}, "Whirlwind"},
{{0, 0x1801}, "Series 2... | 33,020 | C++ | .cpp | 939 | 31.28754 | 205 | 0.619195 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,139 | BackendEmulated.cpp | cemu-project_Cemu/src/Cafe/OS/libs/nsyshid/BackendEmulated.cpp | #include "BackendEmulated.h"
#include "Dimensions.h"
#include "Infinity.h"
#include "Skylander.h"
#include "config/CemuConfig.h"
namespace nsyshid::backend::emulated
{
BackendEmulated::BackendEmulated()
{
cemuLog_logDebug(LogType::Force, "nsyshid::BackendEmulated: emulated backend initialised");
}
BackendEmula... | 1,362 | C++ | .cpp | 41 | 30.463415 | 100 | 0.757783 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,140 | Dimensions.cpp | cemu-project_Cemu/src/Cafe/OS/libs/nsyshid/Dimensions.cpp | #include "Dimensions.h"
#include "nsyshid.h"
#include "Backend.h"
#include "Common/FileStream.h"
#include <array>
#include <random>
namespace nsyshid
{
static constexpr std::array<uint8, 16> COMMAND_KEY = {0x55, 0xFE, 0xF6, 0xB0, 0x62, 0xBF, 0x0B, 0x41,
0xC9, 0xB3, 0x7C, 0xB4, 0x97, 0x3E, 0x29, 0x7... | 34,959 | C++ | .cpp | 1,048 | 29.871183 | 154 | 0.652376 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,141 | nsyshid.cpp | cemu-project_Cemu/src/Cafe/OS/libs/nsyshid/nsyshid.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/HW/Espresso/PPCCallback.h"
#include <bitset>
#include <mutex>
#include "nsyshid.h"
#include "Cafe/OS/libs/coreinit/coreinit_Thread.h"
#include "Backend.h"
#include "Whitelist.h"
namespace nsyshid
{
std::list<std::shared_ptr<Backend>> backendList;
std::list<std::s... | 24,940 | C++ | .cpp | 769 | 28.83355 | 146 | 0.717003 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,142 | BackendLibusb.cpp | cemu-project_Cemu/src/Cafe/OS/libs/nsyshid/BackendLibusb.cpp | #include "BackendLibusb.h"
#if NSYSHID_ENABLE_BACKEND_LIBUSB
namespace nsyshid::backend::libusb
{
BackendLibusb::BackendLibusb()
: m_ctx(nullptr),
m_initReturnCode(0),
m_callbackRegistered(false),
m_hotplugCallbackHandle(0),
m_hotplugThreadStop(false)
{
m_initReturnCode = libusb_init(&m_ctx);
... | 26,044 | C++ | .cpp | 799 | 27.216521 | 127 | 0.668149 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,143 | nn_nfp.cpp | cemu-project_Cemu/src/Cafe/OS/libs/nn_nfp/nn_nfp.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/HW/Espresso/PPCCallback.h"
#include "Cafe/OS/libs/nn_common.h"
#include "nn_nfp.h"
#include "Cafe/OS/libs/coreinit/coreinit_Thread.h"
#include "Common/FileStream.h"
#include "Cafe/CafeSystem.h"
std::recursive_mutex g_nfpMutex;
void nnNfpLock()
{
g_nfpMutex.lock();
... | 34,219 | C++ | .cpp | 905 | 35.426519 | 165 | 0.751726 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,144 | nn_temp.cpp | cemu-project_Cemu/src/Cafe/OS/libs/nn_temp/nn_temp.cpp | #include "Cafe/OS/common/OSCommon.h"
namespace nn::temp
{
uint64 tempIdGenerator = 0xdc1b04bd961f2c04ULL;
void nnTempExport_TEMPCreateAndInitTempDir(PPCInterpreter_t* hCPU)
{
cemuLog_logDebug(LogType::Force, "TEMPCreateAndInitTempDir(...) - placeholder");
// create random temp id
memory_writeU64(hCPU->gpr[5... | 619 | C++ | .cpp | 18 | 31.888889 | 98 | 0.778151 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,145 | nn_sl.cpp | cemu-project_Cemu/src/Cafe/OS/libs/nn_sl/nn_sl.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/OS/libs/coreinit/coreinit_IOS.h"
#include "Cafe/OS/libs/coreinit/coreinit_MEM.h"
#include "config/ActiveSettings.h"
#include "Cafe/CafeSystem.h"
namespace nn
{
typedef uint32 Result;
namespace sl
{
struct VTableEntry
{
uint16be offsetA{0};
uint16be offse... | 2,963 | C++ | .cpp | 99 | 26.363636 | 201 | 0.708011 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,146 | nsyskbd.cpp | cemu-project_Cemu/src/Cafe/OS/libs/nsyskbd/nsyskbd.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/OS/libs/nn_common.h"
namespace nsyskbd
{
bool IsValidChannel(uint32 channel)
{
return channel >= 0 && channel < 4;
}
uint32 KBDGetChannelStatus(uint32 channel, uint32be* status)
{
static bool loggedError = false;
if (loggedError == false)
{
cemuLog_l... | 1,230 | C++ | .cpp | 52 | 21.038462 | 80 | 0.722696 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,147 | padscore.cpp | cemu-project_Cemu/src/Cafe/OS/libs/padscore/padscore.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/HW/Espresso/PPCCallback.h"
#include "gui/wxgui.h"
#include "Cafe/OS/libs/padscore/padscore.h"
#include "Cafe/OS/libs/coreinit/coreinit_Time.h"
#include "Cafe/OS/libs/coreinit/coreinit_Alarm.h"
#include "Cafe/OS/libs/coreinit/coreinit_SystemInfo.h"
#include "input/Inpu... | 22,936 | C++ | .cpp | 663 | 31.723982 | 141 | 0.758479 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,148 | nn_idbe.cpp | cemu-project_Cemu/src/Cafe/OS/libs/nn_idbe/nn_idbe.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/OS/libs/nn_acp/nn_acp.h"
#include "Cafe/OS/libs/coreinit/coreinit_Thread.h"
#include "Cafe/OS/libs/nn_common.h"
#include "util/crypto/aes128.h"
#include "openssl/sha.h"
#include "Cemu/napi/napi.h"
namespace nn
{
namespace idbe
{
struct nnIdbeIconDataV0_t
{
/... | 5,852 | C++ | .cpp | 156 | 33.762821 | 146 | 0.721664 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,149 | nn_boss.cpp | cemu-project_Cemu/src/Cafe/OS/libs/nn_boss/nn_boss.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/OS/libs/nn_common.h"
#include "Cafe/OS/libs/nn_act/nn_act.h"
#include "Cafe/OS/libs/coreinit/coreinit_IOS.h"
#include "Cafe/OS/libs/coreinit/coreinit_MEM.h"
#include "Cafe/IOSU/legacy/iosu_boss.h"
#include "Cafe/IOSU/legacy/iosu_act.h"
#include "config/ActiveSettings.... | 58,357 | C++ | .cpp | 1,493 | 35.446082 | 244 | 0.719121 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,150 | TagV0.cpp | cemu-project_Cemu/src/Cafe/OS/libs/nfc/TagV0.cpp | #include "TagV0.h"
#include "TLV.h"
#include <algorithm>
namespace
{
constexpr std::size_t kTagSize = 512u;
constexpr std::size_t kMaxBlockCount = kTagSize / sizeof(TagV0::Block);
constexpr uint8 kLockbyteBlock0 = 0xe;
constexpr uint8 kLockbytesStart0 = 0x0;
constexpr uint8 kLockbytesEnd0 = 0x2;
constexpr uint8 kLo... | 7,277 | C++ | .cpp | 251 | 26.414343 | 135 | 0.708429 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,151 | stream.cpp | cemu-project_Cemu/src/Cafe/OS/libs/nfc/stream.cpp | #include "stream.h"
#include <algorithm>
Stream::Stream(std::endian endianness)
: mError(ERROR_OK), mEndianness(endianness)
{
}
Stream::~Stream()
{
}
Stream::Error Stream::GetError() const
{
return mError;
}
void Stream::SetEndianness(std::endian endianness)
{
mEndianness = endianness;
}
std::endian Stream::Ge... | 3,312 | C++ | .cpp | 161 | 18.776398 | 82 | 0.703632 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,152 | nfc.cpp | cemu-project_Cemu/src/Cafe/OS/libs/nfc/nfc.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/OS/RPL/rpl.h"
#include "Cafe/OS/libs/nfc/nfc.h"
#include "Cafe/OS/libs/nn_nfp/nn_nfp.h"
#include "Common/FileStream.h"
#include "TagV0.h"
#include "ndef.h"
#define NFC_MODE_INVALID -1
#define NFC_MODE_IDLE 0
#define NFC_MODE_ACTIVE 1
#define NFC_STATE_UNINITIALIZ... | 16,734 | C++ | .cpp | 562 | 26.274021 | 194 | 0.703316 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,153 | ndef.cpp | cemu-project_Cemu/src/Cafe/OS/libs/nfc/ndef.cpp | #include "ndef.h"
#include <cassert>
namespace ndef
{
Record::Record()
: mFlags(0), mTNF(NDEF_TNF_EMPTY)
{
}
Record::~Record()
{
}
std::optional<Record> Record::FromStream(Stream& stream)
{
Record rec;
// Read record header
uint8 recHdr;
stream >> recHdr;
rec.mFlags = recHdr & ~NDEF_TNF_MASK;
... | 4,706 | C++ | .cpp | 221 | 18.090498 | 102 | 0.6486 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,154 | TLV.cpp | cemu-project_Cemu/src/Cafe/OS/libs/nfc/TLV.cpp | #include "TLV.h"
#include "stream.h"
#include <cassert>
TLV::TLV()
{
}
TLV::TLV(Tag tag, std::vector<std::byte> value)
: mTag(tag), mValue(std::move(value))
{
}
TLV::~TLV()
{
}
std::vector<TLV> TLV::FromBytes(const std::span<std::byte>& data)
{
bool hasTerminator = false;
std::vector<TLV> tlvs;
SpanStream stre... | 2,455 | C++ | .cpp | 113 | 18.681416 | 105 | 0.657588 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,155 | nn_aoc.cpp | cemu-project_Cemu/src/Cafe/OS/libs/nn_aoc/nn_aoc.cpp | #include "config/ActiveSettings.h"
#include "Cafe/OS/libs/nn_aoc/nn_aoc.h"
#include "Cafe/OS/common/OSCommon.h"
#include "Cafe/Filesystem/fsc.h"
#include "Cafe/TitleList/TitleId.h"
#include "Cemu/ncrypto/ncrypto.h"
#include "Common/FileStream.h"
namespace nn
{
namespace aoc
{
struct AOCTitle
{
uint64be titl... | 4,471 | C++ | .cpp | 144 | 26.805556 | 160 | 0.689487 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,156 | ax_mix.cpp | cemu-project_Cemu/src/Cafe/OS/libs/snd_core/ax_mix.cpp | #include "Cafe/OS/libs/snd_core/ax.h"
#include "Cafe/OS/libs/snd_core/ax_internal.h"
#include "Cafe/HW/MMU/MMU.h"
#include "config/ActiveSettings.h"
void mic_updateOnAXFrame();
namespace snd_core
{
uint32 __AXDefaultMixerSelect = AX_MIXER_SELECT_BOTH;
uint16 __AXTVAuxReturnVolume[AX_AUX_BUS_COUNT];
void AXSetDef... | 34,495 | C++ | .cpp | 878 | 35.420273 | 173 | 0.717125 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,157 | ax_out.cpp | cemu-project_Cemu/src/Cafe/OS/libs/snd_core/ax_out.cpp | #include "Cafe/OS/libs/snd_core/ax.h"
#include "Cafe/OS/libs/snd_core/ax_internal.h"
#include "Cafe/HW/MMU/MMU.h"
#include "audio/IAudioAPI.h"
//#include "ax.h"
#include "config/CemuConfig.h"
namespace snd_core
{
uint32 numProcessedFrames = 0;
void resetNumProcessedFrames()
{
numProcessedFrames = 0;
}
uint32 ... | 16,765 | C++ | .cpp | 509 | 29.261297 | 180 | 0.690388 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,158 | ax_aux.cpp | cemu-project_Cemu/src/Cafe/OS/libs/snd_core/ax_aux.cpp | #include "Cafe/OS/libs/snd_core/ax.h"
#include "Cafe/OS/libs/snd_core/ax_internal.h"
#include "Cafe/HW/Espresso/PPCState.h"
namespace snd_core
{
const int AX_AUX_FRAME_COUNT = 2;
// old (deprecated) style AUX callbacks
MPTR __AXOldAuxDRCCallbackFunc[AX_AUX_BUS_COUNT * 2];
MPTR __AXOldAuxDRCCallbackUserParam[AX_AU... | 9,862 | C++ | .cpp | 270 | 32.97037 | 167 | 0.727026 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,159 | ax_exports.cpp | cemu-project_Cemu/src/Cafe/OS/libs/snd_core/ax_exports.cpp | #include "Cafe/OS/libs/snd_core/ax.h"
#include "Cafe/OS/libs/snd_core/ax_internal.h"
#include "Cafe/OS/libs/coreinit/coreinit_Thread.h"
#include "Cafe/OS/common/OSCommon.h"
#include "Cafe/OS/libs/coreinit/coreinit_MessageQueue.h"
namespace snd_core
{
sndGeneric_t sndGeneric;
void AXResetToDefaultState()
{
memset... | 19,760 | C++ | .cpp | 440 | 41.840909 | 198 | 0.771111 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,160 | ax_voice.cpp | cemu-project_Cemu/src/Cafe/OS/libs/snd_core/ax_voice.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/HW/Espresso/PPCState.h"
#include "Cafe/HW/Espresso/PPCCallback.h"
#include "Cafe/OS/libs/snd_core/ax.h"
#include "Cafe/OS/libs/snd_core/ax_internal.h"
#include "Cafe/OS/libs/coreinit/coreinit_Thread.h"
#include "util/helpers/fspinlock.h"
namespace snd_core
{
inline ... | 45,981 | C++ | .cpp | 1,202 | 34.838602 | 373 | 0.741025 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,161 | ax_multivoice.cpp | cemu-project_Cemu/src/Cafe/OS/libs/snd_core/ax_multivoice.cpp | #include "Cafe/OS/libs/snd_core/ax.h"
#include "Cafe/OS/libs/snd_core/ax_internal.h"
#include "Cafe/HW/MMU/MMU.h"
namespace snd_core
{
static_assert(sizeof(AXVPBMULTI) == 0x20, "");
SysAllocator<AXVPBMULTI, AX_MAX_VOICES> _buffer__AXVPBMultiVoiceArray;
AXVPBMULTI* __AXVPBMultiVoiceArray;
void AXMultiVoice_Init()... | 4,498 | C++ | .cpp | 147 | 27.244898 | 142 | 0.688627 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,162 | ax_ist.cpp | cemu-project_Cemu/src/Cafe/OS/libs/snd_core/ax_ist.cpp | #include "Cafe/OS/libs/snd_core/ax.h"
#include "Cafe/OS/libs/snd_core/ax_internal.h"
#include "Cafe/HW/Espresso/PPCState.h"
#include "Cafe/HW/Espresso/PPCCallback.h"
#include "Cafe/OS/libs/coreinit/coreinit_Thread.h"
namespace snd_core
{
sint32 __AXDeviceUpsampleStage[AX_DEV_COUNT]; // AX_UPSAMPLE_STAGE_*
sint32 AX... | 36,036 | C++ | .cpp | 993 | 32.607251 | 259 | 0.728183 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,163 | OSCommon.cpp | cemu-project_Cemu/src/Cafe/OS/common/OSCommon.cpp | #include "Cafe/HW/Espresso/PPCState.h"
#include "Cafe/OS/libs/proc_ui/proc_ui.h"
#include "Cafe/OS/libs/nsysnet/nsysnet.h"
#include "Cafe/OS/libs/nlibnss/nlibnss.h"
#include "Cafe/OS/libs/nlibcurl/nlibcurl.h"
#include "Cafe/OS/libs/nn_nfp/nn_nfp.h"
#include "Cafe/OS/libs/nn_act/nn_act.h"
#include "Cafe/OS/libs/nn_acp/n... | 6,304 | C++ | .cpp | 212 | 27.716981 | 146 | 0.736305 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,164 | GraphicPack2Patches.cpp | cemu-project_Cemu/src/Cafe/GraphicPack/GraphicPack2Patches.cpp | #include "Cafe/GraphicPack/GraphicPack2.h"
#include "Common/FileStream.h"
#include "util/helpers/StringParser.h"
#include "Cemu/PPCAssembler/ppcAssembler.h"
#include "Cafe/OS/RPL/rpl_structs.h"
#include "boost/algorithm/string.hpp"
#include "gui/wxgui.h" // for wxMessageBox
#include "gui/helpers/wxHelpers.h"
// error... | 6,014 | C++ | .cpp | 184 | 30.059783 | 147 | 0.724583 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,165 | GraphicPack2PatchesParser.cpp | cemu-project_Cemu/src/Cafe/GraphicPack/GraphicPack2PatchesParser.cpp | #include "Cafe/GraphicPack/GraphicPack2.h"
#include "Common/FileStream.h"
#include "util/helpers/StringParser.h"
#include "Cemu/PPCAssembler/ppcAssembler.h"
#include "Cafe/OS/RPL/rpl_structs.h"
sint32 GraphicPack2::GetLengthWithoutComment(const char* str, size_t length)
{
sint32 index = 0;
bool isInString = false;
... | 15,857 | C++ | .cpp | 505 | 27.691089 | 219 | 0.723956 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,166 | GraphicPack2PatchesApply.cpp | cemu-project_Cemu/src/Cafe/GraphicPack/GraphicPack2PatchesApply.cpp | #include "Cafe/GraphicPack/GraphicPack2.h"
#include "Common/FileStream.h"
#include "Cemu/PPCAssembler/ppcAssembler.h"
#include "Cafe/OS/RPL/rpl_structs.h"
#include "Cafe/OS/RPL/rpl_symbol_storage.h"
#include "Cafe/HW/Espresso/Recompiler/PPCRecompiler.h"
#include "Cafe/HW/Espresso/Debugger/DebugSymbolStorage.h"
bool _r... | 25,267 | C++ | .cpp | 719 | 32.114047 | 201 | 0.738598 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,167 | GraphicPack2.cpp | cemu-project_Cemu/src/Cafe/GraphicPack/GraphicPack2.cpp | #include "Cafe/GraphicPack/GraphicPack2.h"
#include "config/CemuConfig.h"
#include "config/ActiveSettings.h"
#include "openssl/sha.h"
#include "Cafe/HW/Latte/Renderer/RendererOuputShader.h"
#include "Cafe/Filesystem/fsc.h"
#include "boost/algorithm/string.hpp"
#include "util/helpers/MapAdaptor.h"
#include "util/helpers... | 37,200 | C++ | .cpp | 1,090 | 30.886239 | 188 | 0.708481 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,168 | TitleList.cpp | cemu-project_Cemu/src/Cafe/TitleList/TitleList.cpp | #include "TitleList.h"
#include "Common/FileStream.h"
#include "util/helpers/helpers.h"
#include <zarchive/zarchivereader.h>
bool sTLInitialized{ false };
fs::path sTLCacheFilePath;
// lists for tracking known titles
// note: The list may only contain titles with valid meta data (except for certain system titles). ... | 20,371 | C++ | .cpp | 645 | 28.965891 | 220 | 0.731809 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,169 | SaveInfo.cpp | cemu-project_Cemu/src/Cafe/TitleList/SaveInfo.cpp | #include "SaveInfo.h"
#include "config/ActiveSettings.h"
#include "Common/FileStream.h"
#include "ParsedMetaXml.h"
SaveInfo::SaveInfo(TitleId titleId) : m_titleId(titleId)
{
m_path = GetSavePath(titleId);
std::error_code ec;
m_isValid = fs::is_directory(m_path, ec);
}
std::string SaveInfo::GetStorageSubpathByTitle... | 944 | C++ | .cpp | 30 | 29.833333 | 101 | 0.757409 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,170 | SaveList.cpp | cemu-project_Cemu/src/Cafe/TitleList/SaveList.cpp | #include "SaveList.h"
#include <charconv>
#include <util/helpers/helpers.h>
std::mutex sSLMutex;
fs::path sSLMLCPath;
std::vector<SaveInfo*> sSLList;
// callback list
struct SaveListCallbackEntry
{
SaveListCallbackEntry(void(*cb)(CafeSaveListCallbackEvent* evt, void* ctx), void* ctx, uint64 uniqueId) :
cb(cb), ct... | 4,608 | C++ | .cpp | 164 | 25.658537 | 145 | 0.731828 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,171 | TitleInfo.cpp | cemu-project_Cemu/src/Cafe/TitleList/TitleInfo.cpp | #include "TitleInfo.h"
#include "Cafe/Filesystem/fscDeviceHostFS.h"
#include "Cafe/Filesystem/WUHB/WUHBReader.h"
#include "Cafe/Filesystem/FST/FST.h"
#include "pugixml.hpp"
#include "Common/FileStream.h"
#include <zarchive/zarchivereader.h>
#include "util/IniParser/IniParser.h"
#include "util/crypto/crc32.h"
#include "... | 23,079 | C++ | .cpp | 770 | 27.254545 | 159 | 0.720192 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,172 | iosu_mcp.cpp | cemu-project_Cemu/src/Cafe/IOSU/legacy/iosu_mcp.cpp | #include "iosu_ioctl.h"
#include "iosu_mcp.h"
#include "Cafe/OS/libs/nn_common.h"
#include "util/tinyxml2/tinyxml2.h"
#include "config/CemuConfig.h"
#include "Cafe/TitleList/GameInfo.h"
#include "util/helpers/helpers.h"
#include "Cafe/TitleList/TitleList.h"
#include "Cafe/CafeSystem.h"
#include "Cafe/IOSU/iosu_ipc_com... | 8,434 | C++ | .cpp | 243 | 30.650206 | 221 | 0.731594 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,173 | iosu_ioctl.cpp | cemu-project_Cemu/src/Cafe/IOSU/legacy/iosu_ioctl.cpp | #include "Cafe/OS/common/OSCommon.h"
#include "Cafe/OS/libs/coreinit/coreinit_Thread.h"
#include "iosu_ioctl.h"
#include "util/helpers/ringbuffer.h"
#include "util/helpers/Semaphore.h"
// deprecated IOCTL handling code
RingBuffer<ioQueueEntry_t*, 256> _ioctlRingbuffer[IOS_DEVICE_COUNT];
CounterSemaphore _ioctlRingbu... | 2,104 | C++ | .cpp | 57 | 35 | 206 | 0.785363 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,174 | iosu_nim.cpp | cemu-project_Cemu/src/Cafe/IOSU/legacy/iosu_nim.cpp | #include "iosu_nim.h"
#include "iosu_ioctl.h"
#include "iosu_act.h"
#include "iosu_mcp.h"
#include "util/crypto/aes128.h"
#include "curl/curl.h"
#include "openssl/bn.h"
#include "openssl/x509.h"
#include "openssl/ssl.h"
#include "util/helpers/helpers.h"
#include "Cemu/napi/napi.h"
#include "Cemu/ncrypto/ncrypto.h"
#inc... | 10,117 | C++ | .cpp | 312 | 28.022436 | 125 | 0.712487 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,175 | iosu_boss.cpp | cemu-project_Cemu/src/Cafe/IOSU/legacy/iosu_boss.cpp | #include "iosu_boss.h"
#include <sstream>
#include <iomanip>
#include <thread>
#include <algorithm>
#include <array>
#include <queue>
#include <filesystem>
#include <fstream>
#include "config/ActiveSettings.h"
#include "config/NetworkSettings.h"
#include "curl/curl.h"
#include "openssl/bn.h"
#include "openssl/x509.h"... | 33,533 | C++ | .cpp | 906 | 32.779249 | 193 | 0.689143 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,176 | iosu_act.cpp | cemu-project_Cemu/src/Cafe/IOSU/legacy/iosu_act.cpp | #include "iosu_act.h"
#include "iosu_ioctl.h"
#include "Cafe/OS/libs/nn_common.h"
#include "gui/CemuApp.h"
#include <algorithm>
#include <mutex>
#include "openssl/evp.h" /* EVP_Digest */
#include "openssl/sha.h" /* SHA256_DIGEST_LENGTH */
#include "Cafe/Account/Account.h"
#include "config/ActiveSettings.h"
#include ... | 31,218 | C++ | .cpp | 825 | 34.527273 | 257 | 0.740354 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,177 | iosu_crypto.cpp | cemu-project_Cemu/src/Cafe/IOSU/legacy/iosu_crypto.cpp | #include "iosu_crypto.h"
#include "config/ActiveSettings.h"
#include "openssl/bn.h"
#include "openssl/obj_mac.h"
#include "openssl/ec.h"
#include "openssl/x509.h"
#include "openssl/ssl.h"
#include "openssl/ecdsa.h"
#include "util/crypto/aes128.h"
#include "Common/FileStream.h"
uint8 otpMem[1024];
bool hasOtpMem = fa... | 21,498 | C++ | .cpp | 598 | 33.550167 | 145 | 0.722446 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,178 | iosu_fpd.cpp | cemu-project_Cemu/src/Cafe/IOSU/legacy/iosu_fpd.cpp | #include "iosu_act.h"
#include "iosu_fpd.h"
#include "Cemu/nex/nex.h"
#include "Cemu/nex/nexFriends.h"
#include "util/helpers/helpers.h"
#include "config/CemuConfig.h"
#include "Cafe/CafeSystem.h"
#include "config/ActiveSettings.h"
#include "Cemu/napi/napi.h"
#include "util/helpers/StringHelpers.h"
#include "Cafe/IOSU/... | 63,128 | C++ | .cpp | 1,410 | 39.668794 | 277 | 0.730141 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,179 | iosu_acp.cpp | cemu-project_Cemu/src/Cafe/IOSU/legacy/iosu_acp.cpp | #include "iosu_ioctl.h"
#include "iosu_acp.h"
#include "Cafe/OS/libs/nn_common.h"
#include "util/tinyxml2/tinyxml2.h"
#include "Cafe/OS/libs/coreinit/coreinit_Time.h"
#include "Cafe/OS/libs/nn_save/nn_save.h"
#include "util/helpers/helpers.h"
#include "Cafe/OS/libs/nn_acp/nn_acp.h"
#include "Cafe/OS/libs/coreinit/corei... | 30,603 | C++ | .cpp | 718 | 38.491643 | 185 | 0.707788 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,180 | iosu_nn_service.cpp | cemu-project_Cemu/src/Cafe/IOSU/nn/iosu_nn_service.cpp | #include "iosu_nn_service.h"
#include "../kernel/iosu_kernel.h"
#include "util/helpers/helpers.h"
using namespace iosu::kernel;
namespace iosu
{
namespace nn
{
/* IPCSimpleService */
void IPCSimpleService::Start()
{
if (m_isRunning.exchange(true))
return;
m_threadInitialized = false;
m_requestSto... | 6,833 | C++ | .cpp | 204 | 28.794118 | 143 | 0.68682 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,181 | iosu_odm.cpp | cemu-project_Cemu/src/Cafe/IOSU/ODM/iosu_odm.cpp | #include <util/helpers/helpers.h>
#include "iosu_odm.h"
#include "config/ActiveSettings.h"
#include "Common/FileStream.h"
#include "util/helpers/Semaphore.h"
#include "../kernel/iosu_kernel.h"
namespace iosu
{
namespace odm
{
using namespace iosu::kernel;
std::string s_devicePath = "/dev/odm";
std::thread s_s... | 4,103 | C++ | .cpp | 144 | 24.256944 | 176 | 0.674354 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,182 | iosu_ccr_nfc.cpp | cemu-project_Cemu/src/Cafe/IOSU/ccr_nfc/iosu_ccr_nfc.cpp | #include "iosu_ccr_nfc.h"
#include "Cafe/IOSU/kernel/iosu_kernel.h"
#include "util/crypto/aes128.h"
#include <openssl/evp.h>
#include <openssl/hmac.h>
namespace iosu
{
namespace ccr_nfc
{
IOSMsgQueueId sCCRNFCMsgQueue;
SysAllocator<iosu::kernel::IOSMessage, 0x20> sCCRNFCMsgQueueMsgBuffer;
std::thread sCCRNFCTh... | 13,376 | C++ | .cpp | 351 | 33.310541 | 246 | 0.689206 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,183 | iosu_kernel.cpp | cemu-project_Cemu/src/Cafe/IOSU/kernel/iosu_kernel.cpp | #include "iosu_kernel.h"
#include "util/helpers/fspinlock.h"
#include "util/helpers/helpers.h"
#include "Cafe/OS/libs/coreinit/coreinit_IPC.h"
#include "util/highresolutiontimer/HighResolutionTimer.h"
namespace iosu
{
namespace kernel
{
std::mutex sInternalMutex;
void IOS_DestroyResourceManagerForQueueId(IOSMsg... | 24,515 | C++ | .cpp | 710 | 30.340845 | 164 | 0.727246 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,184 | iosu_fsa.cpp | cemu-project_Cemu/src/Cafe/IOSU/fsa/iosu_fsa.cpp | #include "fsa_types.h"
#include "iosu_fsa.h"
#include "Cafe/IOSU/kernel/iosu_kernel.h"
#include "Cafe/Filesystem/fsc.h"
#include "util/helpers/helpers.h"
#include "Cafe/OS/libs/coreinit/coreinit_FS.h" // get rid of this dependency, requires reworking some of the IPC stuff. See locations where we use coreinit::FSCmdBl... | 30,247 | C++ | .cpp | 843 | 31.029656 | 181 | 0.69984 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,185 | iosu_pdm.cpp | cemu-project_Cemu/src/Cafe/IOSU/PDM/iosu_pdm.cpp | #include <util/helpers/helpers.h>
#include "iosu_pdm.h"
#include "Cafe/CafeSystem.h"
#include "config/ActiveSettings.h"
#include "Common/FileStream.h"
#include "util/helpers/Semaphore.h"
#if BOOST_OS_LINUX
// using chrono::year_month_date and other features require a relatively recent stdlibc++
// to avoid upping the ... | 14,516 | C++ | .cpp | 430 | 29.674419 | 166 | 0.721028 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,186 | Account.cpp | cemu-project_Cemu/src/Cafe/Account/Account.cpp | #include "Account.h"
#include "util/helpers/helpers.h"
#include "util/helpers/SystemException.h"
#include "util/helpers/StringHelpers.h"
#include "config/ActiveSettings.h"
#include "Cafe/IOSU/legacy/iosu_crypto.h"
#include "Common/FileStream.h"
#include <boost/random/uniform_int.hpp>
#include <random>
std::vector<Acc... | 15,969 | C++ | .cpp | 488 | 29.956967 | 187 | 0.681916 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,187 | ACR.cpp | cemu-project_Cemu/src/Cafe/HW/ACR/ACR.cpp | #include "Cafe/HW/MMU/MMU.h"
#include "Cafe/HW/Common/HwReg.h"
namespace HW_ACR
{
struct
{
HWREG::ACR_VI_ADDR viAddr;
HWREG::ACR_VI_CTRL viCtrl;
}g_acr;
/*
Is this some kind of VI emulation interface?
Pattern seen in Twilight Princess HD:
- If Hollywood hardware then read/write old 16bit GC VI registe... | 1,847 | C++ | .cpp | 56 | 30.446429 | 133 | 0.729623 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,188 | PPCTimer.cpp | cemu-project_Cemu/src/Cafe/HW/Espresso/PPCTimer.cpp | #include "Cafe/HW/Espresso/Const.h"
#include "asm/x64util.h"
#include "config/ActiveSettings.h"
#include "util/helpers/fspinlock.h"
#include "util/highresolutiontimer/HighResolutionTimer.h"
#include "Common/cpu_features.h"
#if defined(ARCH_X86_64)
#include <immintrin.h>
#pragma intrinsic(__rdtsc)
#endif
uint64 _rdtsc... | 4,218 | C++ | .cpp | 137 | 28.861314 | 91 | 0.73679 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,189 | PPCSchedulerLLE.cpp | cemu-project_Cemu/src/Cafe/HW/Espresso/PPCSchedulerLLE.cpp |
struct PPCInterpreterLLEContext_t
{
uint8 padding[1024 * 128]; // reserved memory for stack (for recompiler mode)
PPCInterpreter_t cores[3];
};
PPCInterpreterGlobal_t globalCPUState = { 0 };
void PPCCoreLLE_initCore(PPCInterpreter_t* hCPU, uint32 coreIndex)
{
hCPU->spr.UPIR = coreIndex;
hCPU->global = &globalCPU... | 6,593 | C++ | .cpp | 222 | 27.238739 | 129 | 0.754687 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,190 | PPCScheduler.cpp | cemu-project_Cemu/src/Cafe/HW/Espresso/PPCScheduler.cpp | #include "Cafe/OS/libs/gx2/GX2.h"
#include "Cafe/HW/Latte/Core/Latte.h"
#include "Cafe/OS/libs/coreinit/coreinit_Alarm.h"
#include "Cafe/OS/libs/coreinit/coreinit_Thread.h"
#include "Cafe/HW/Latte/Core/LattePerformanceMonitor.h"
#include "Cafe/HW/Espresso/Recompiler/PPCRecompiler.h"
#include "Cafe/CafeSystem.h"
uint3... | 3,141 | C++ | .cpp | 97 | 30.278351 | 143 | 0.771184 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,191 | PPCInterpreterFPU.cpp | cemu-project_Cemu/src/Cafe/HW/Espresso/Interpreter/PPCInterpreterFPU.cpp | #include "../PPCState.h"
#include "PPCInterpreterInternal.h"
#include "PPCInterpreterHelper.h"
#include<math.h>
// floating point utility
#include <limits>
#include <array>
const int ieee_double_e_bits = 11; // exponent bits
const int ieee_double_m_bits = 52; // mantissa bits
const int espresso_frsqrte_i_bits = 5;... | 17,323 | C++ | .cpp | 545 | 29.499083 | 115 | 0.686187 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,192 | PPCInterpreterHLE.cpp | cemu-project_Cemu/src/Cafe/HW/Espresso/Interpreter/PPCInterpreterHLE.cpp | #include "../PPCState.h"
#include "PPCInterpreterInternal.h"
#include "PPCInterpreterHelper.h"
std::unordered_set<std::string> sUnsupportedHLECalls;
void PPCInterpreter_handleUnsupportedHLECall(PPCInterpreter_t* hCPU)
{
const char* libFuncName = (char*)memory_getPointerFromVirtualOffset(hCPU->instructionPointer + 8)... | 1,776 | C++ | .cpp | 57 | 29.087719 | 99 | 0.756567 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,193 | PPCInterpreterMain.cpp | cemu-project_Cemu/src/Cafe/HW/Espresso/Interpreter/PPCInterpreterMain.cpp | #include "PPCInterpreterInternal.h"
#include "Cafe/OS/RPL/rpl.h"
#include "Cafe/GameProfile/GameProfile.h"
#include "Cafe/HW/Espresso/Debugger/Debugger.h"
thread_local PPCInterpreter_t* ppcInterpreterCurrentInstance;
// main thread instruction counter and timing
uint64 ppcMainThreadDECCycleValue = 0; // value that wa... | 3,367 | C++ | .cpp | 94 | 34.234043 | 197 | 0.812596 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,194 | PPCInterpreterPS.cpp | cemu-project_Cemu/src/Cafe/HW/Espresso/Interpreter/PPCInterpreterPS.cpp | #include "PPCInterpreterInternal.h"
// Gekko paired single math
void PPCInterpreter_PS_ADD(PPCInterpreter_t* hCPU, uint32 Opcode)
{
FPUCheckAvailable();
sint32 frD, frA, frB;
frB = (Opcode>>11)&0x1F;
frA = (Opcode>>16)&0x1F;
frD = (Opcode>>21)&0x1F;
hCPU->fpr[frD].fp0 = (float)(hCPU->fpr[frA].fp0 + hCPU->fpr... | 12,071 | C++ | .cpp | 378 | 29.730159 | 114 | 0.690608 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,195 | PPCInterpreterOPC.cpp | cemu-project_Cemu/src/Cafe/HW/Espresso/Interpreter/PPCInterpreterOPC.cpp | #include "../PPCState.h"
#include "PPCInterpreterInternal.h"
#include "PPCInterpreterHelper.h"
#include "Cafe/OS/libs/coreinit/coreinit_CodeGen.h"
#include "../Recompiler/PPCRecompiler.h"
#include "../Recompiler/PPCRecompilerX64.h"
#include <float.h>
#include "Cafe/HW/Latte/Core/LatteBufferCache.h"
void PPCInterpre... | 8,797 | C++ | .cpp | 310 | 26.190323 | 87 | 0.696621 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,196 | PPCInterpreterImpl.cpp | cemu-project_Cemu/src/Cafe/HW/Espresso/Interpreter/PPCInterpreterImpl.cpp | #include "PPCInterpreterInternal.h"
#include "PPCInterpreterHelper.h"
#include "Cafe/HW/Espresso/Debugger/Debugger.h"
#include "Cafe/HW/Espresso/Debugger/GDBStub.h"
class PPCItpCafeOSUsermode
{
public:
static const bool allowSupervisorMode = false;
static const bool allowDSI = false;
inline static uint32 memory_re... | 31,346 | C++ | .cpp | 1,150 | 23.262609 | 148 | 0.688552 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,197 | Debugger.cpp | cemu-project_Cemu/src/Cafe/HW/Espresso/Debugger/Debugger.cpp | #include "gui/guiWrapper.h"
#include "Debugger.h"
#include "Cafe/OS/RPL/rpl_structs.h"
#include "Cemu/PPCAssembler/ppcAssembler.h"
#include "Cafe/HW/Espresso/Recompiler/PPCRecompiler.h"
#include "Cemu/ExpressionParser/ExpressionParser.h"
#include "gui/debugger/DebuggerWindow2.h"
#include "Cafe/OS/libs/coreinit/corein... | 18,642 | C++ | .cpp | 578 | 29.456747 | 207 | 0.747961 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,198 | GDBStub.cpp | cemu-project_Cemu/src/Cafe/HW/Espresso/Debugger/GDBStub.cpp | #include "GDBStub.h"
#include "Debugger.h"
#include "Cafe/HW/Espresso/Recompiler/PPCRecompiler.h"
#include "GDBBreakpoints.h"
#include "util/helpers/helpers.h"
#include "util/ThreadPool/ThreadPool.h"
#include "Cafe/OS/RPL/rpl.h"
#include "Cafe/OS/RPL/rpl_structs.h"
#include "Cafe/OS/libs/coreinit/coreinit_Scheduler.h"
... | 30,462 | C++ | .cpp | 893 | 31.162374 | 206 | 0.711145 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,199 | GDBBreakpoints.cpp | cemu-project_Cemu/src/Cafe/HW/Espresso/Debugger/GDBBreakpoints.cpp | #include "GDBBreakpoints.h"
#include "Debugger.h"
#include "Cafe/HW/Espresso/Recompiler/PPCRecompiler.h"
#if defined(ARCH_X86_64) && BOOST_OS_LINUX
#include <sys/ptrace.h>
#include <sys/wait.h>
#include <sys/user.h>
DRType _GetDR(pid_t tid, int drIndex)
{
size_t drOffset = offsetof(struct user, u_debugreg) + drIndex... | 8,414 | C++ | .cpp | 262 | 29.446565 | 120 | 0.706042 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,200 | PPCRecompilerX64Gen.cpp | cemu-project_Cemu/src/Cafe/HW/Espresso/Recompiler/PPCRecompilerX64Gen.cpp | #include "PPCRecompiler.h"
#include "PPCRecompilerIml.h"
#include "PPCRecompilerX64.h"
// x86/x64 extension opcodes that could be useful:
// ANDN
// mulx, rorx, sarx, shlx, shrx
// PDEP, PEXT
void x64Gen_checkBuffer(x64GenContext_t* x64GenContext)
{
// todo
}
void x64Gen_writeU8(x64GenContext_t* x64GenContext, uint... | 60,648 | C++ | .cpp | 1,767 | 31.863611 | 199 | 0.755509 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,201 | PPCRecompilerImlGen.cpp | cemu-project_Cemu/src/Cafe/HW/Espresso/Recompiler/PPCRecompilerImlGen.cpp | #include "Cafe/HW/Espresso/Interpreter/PPCInterpreterInternal.h"
#include "Cafe/HW/Espresso/Interpreter/PPCInterpreterHelper.h"
#include "PPCRecompiler.h"
#include "PPCRecompilerIml.h"
#include "PPCRecompilerX64.h"
#include "PPCRecompilerImlRanges.h"
#include "util/helpers/StringBuf.h"
bool PPCRecompiler_decodePPCInst... | 213,766 | C++ | .cpp | 4,801 | 41.671527 | 401 | 0.777843 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
23,202 | PPCRecompilerX64AVX.cpp | cemu-project_Cemu/src/Cafe/HW/Espresso/Recompiler/PPCRecompilerX64AVX.cpp | #include "PPCRecompiler.h"
#include "PPCRecompilerX64.h"
void _x64Gen_writeMODRMDeprecated(x64GenContext_t* x64GenContext, sint32 dataRegister, sint32 memRegisterA64, sint32 memRegisterB64, sint32 memImmS32);
void _x64Gen_vex128_nds(x64GenContext_t* x64GenContext, uint8 opcodeMap, uint8 additionalOperand, uint8 pp, u... | 2,095 | C++ | .cpp | 36 | 56.277778 | 172 | 0.722032 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.