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,323 | ZpIRBuilder.h | cemu-project_Cemu/src/util/Zir/Core/ZpIRBuilder.h | #pragma once
#include "util/Zir/Core/IR.h"
namespace ZpIR
{
// helper class for building a single basic block
class BasicBlockBuilder
{
public:
BasicBlockBuilder(ZpIRBasicBlock* basicBlock) : m_basicBlock(basicBlock) {};
IRReg createReg(DataType type, uint8 elementCount = 1)
{
return m_basicBlock->creat... | 6,392 | C++ | .h | 208 | 27.024038 | 91 | 0.739577 | 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,324 | ZirUtility.h | cemu-project_Cemu/src/util/Zir/Core/ZirUtility.h | #pragma once
#include "util/Zir/Core/IR.h"
namespace ZpIR
{
struct ZpIRCmdUtil
{
template<typename TFuncRegRead, typename TFuncRegWrite>
static void forEachAccessedReg(ZpIRBasicBlock& block, IR::__InsBase* instruction, TFuncRegRead funcRegRead, TFuncRegWrite funcRegWrite)
{
if (auto ins = IR::InsRR::getIfF... | 1,876 | C++ | .h | 73 | 21.178082 | 137 | 0.642976 | 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,325 | IR.h | cemu-project_Cemu/src/util/Zir/Core/IR.h | #pragma once
#include <optional>
using f32 = float;
using f64 = double;
inline void zpir_debug_assert(bool _cond)
{
if(!_cond)
assert_dbg();
}
namespace ZpIR
{
//enum class ZpIRCmdForm : uint8
//{
// FORM_VOID, // no-op
// FORM_ZERO, // opcode without operands
// FORM_1OP, // op0
// FORM_2OP, // op0, op1
... | 16,782 | C++ | .h | 572 | 25.461538 | 191 | 0.674677 | 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,326 | ZpIRPasses.h | cemu-project_Cemu/src/util/Zir/Core/ZpIRPasses.h | #pragma once
#include "util/Zir/Core/IR.h"
namespace ZirPass
{
class ZpIRPass
{
public:
ZpIRPass(ZpIR::ZpIRFunction* irFunction) : m_irFunction(irFunction) { };
virtual void applyPass() = 0;
protected:
ZpIR::ZpIRFunction* m_irFunction;
};
struct RALivenessRange_t
{
RALivenessRange_t(struct RABlock_t*... | 8,263 | C++ | .h | 223 | 33.372197 | 304 | 0.729039 | 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,327 | VirtualHeap.h | cemu-project_Cemu/src/util/VirtualHeap/VirtualHeap.h | #pragma once
// virtual heap
struct VirtualBufferHeapEntry_t
{
uint32 startOffset;
uint32 endOffset;
VirtualBufferHeapEntry_t* next;
VirtualBufferHeapEntry_t* previous;
};
struct VirtualBufferHeap_t
{
uint32 virtualSize;
void* baseAddress; // base address for _allocateAddr and _freeAddr
VirtualBufferHeapEntry... | 988 | C++ | .h | 30 | 31.1 | 99 | 0.834382 | 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,328 | DXGIWrapper.h | cemu-project_Cemu/src/util/DXGIWrapper/DXGIWrapper.h | #pragma once
#include <dxgi1_4.h>
//#include <atlbase.h>
class DXGIWrapper
{
public:
DXGIWrapper()
: DXGIWrapper(nullptr)
{}
DXGIWrapper(uint8* deviceLUID)
{
m_moduleHandle = LoadLibraryA("dxgi.dll");
if (!m_moduleHandle)
throw std::runtime_error("can't load dxgi module");
const auto pCreateDXGIFact... | 1,772 | C++ | .h | 69 | 22.608696 | 119 | 0.728081 | 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,329 | ChunkedHeap.h | cemu-project_Cemu/src/util/ChunkedHeap/ChunkedHeap.h | #pragma once
struct CHAddr
{
uint32 offset;
uint32 chunkIndex;
CHAddr(uint32 _offset, uint32 _chunkIndex) : offset(_offset), chunkIndex(_chunkIndex) {};
CHAddr() : offset(0xFFFFFFFF), chunkIndex(0xFFFFFFFF) {};
bool isValid() { return chunkIndex != 0xFFFFFFFF; };
static CHAddr getInvalid() { return CHAddr(0xFF... | 17,381 | C++ | .h | 592 | 25.974662 | 174 | 0.704979 | 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,330 | bmp.h | cemu-project_Cemu/src/util/ImageWriter/bmp.h | #include "Common/FileStream.h"
static void _bmp_write(FileStream* fs, sint32 width, sint32 height, uint32 bits, void* pixelData)
{
BITMAPFILEHEADER bmp_fh;
BITMAPINFOHEADER bmp_ih;
bmp_fh.bfType = 0x4d42;
bmp_fh.bfSize = 0;
bmp_fh.bfReserved1 = 0;
bmp_fh.bfReserved2 = 0;
bmp_fh.bfOffBits = sizeof(BITMAPFILEHEA... | 3,409 | C++ | .h | 113 | 27.637168 | 111 | 0.674992 | 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,331 | tga.h | cemu-project_Cemu/src/util/ImageWriter/tga.h | #include "Common/FileStream.h"
#include <vector>
static bool tga_write_rgba(wchar_t* path, sint32 width, sint32 height, uint8* pixelData)
{
FileStream* fs = FileStream::createFile(path);
if (fs == nullptr)
return false;
uint8_t header[18] = {0,0,2,0,0,0,0,0,0,0,0,0, (uint8)(width % 256), (uint8)(width / 256), (... | 905 | C++ | .h | 30 | 27.6 | 148 | 0.645235 | 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,332 | ScreenSaver.h | cemu-project_Cemu/src/util/ScreenSaver/ScreenSaver.h | #include "Cemu/Logging/CemuLogging.h"
#include <SDL2/SDL.h>
class ScreenSaver
{
public:
static void SetInhibit(bool inhibit)
{
// temporary workaround because feature crashes on macOS
#if BOOST_OS_MACOS
return;
#endif
// Initialize video subsystem if necessary
if (SDL_WasInit(SDL_INIT_VIDEO) == 0)
... | 1,105 | C++ | .h | 39 | 23.410256 | 137 | 0.665728 | 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,333 | MemoryPool.h | cemu-project_Cemu/src/util/helpers/MemoryPool.h | #pragma once
template<typename T>
class MemoryPool
{
static_assert(sizeof(T) >= sizeof(void*)); // object must be large enough to store a single pointer
public:
MemoryPool(int allocationGranularity)
: m_numObjectsAllocated(0)
{
m_allocationGranularity = allocationGranularity;
m_nextFreeObject = nullptr;
}
... | 2,977 | C++ | .h | 114 | 23.561404 | 147 | 0.748421 | 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,334 | Singleton.h | cemu-project_Cemu/src/util/helpers/Singleton.h | #pragma once
template<typename TType>
class Singleton
{
protected:
Singleton() = default;
Singleton(const Singleton&) = delete;
Singleton(Singleton&&) noexcept = delete;
public:
static TType& instance() noexcept
{
static TType s_instance;
return s_instance;
}
};
| 275 | C++ | .h | 15 | 16.533333 | 42 | 0.771318 | 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,335 | ConcurrentQueue.h | cemu-project_Cemu/src/util/helpers/ConcurrentQueue.h | #pragma once
#include <mutex>
#include <condition_variable>
#include <queue>
template <typename T>
class ConcurrentQueue
{
public:
ConcurrentQueue() = default;
ConcurrentQueue(const ConcurrentQueue&) = delete;
ConcurrentQueue& operator=(const ConcurrentQueue&) = delete;
size_t push(const T& item)
{
std::uniq... | 1,825 | C++ | .h | 90 | 17.644444 | 61 | 0.669767 | 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,336 | Serializer.h | cemu-project_Cemu/src/util/helpers/Serializer.h | #pragma once
class MemStreamReader
{
public:
MemStreamReader(const uint8* data, sint32 size) : m_data(data), m_size(size)
{
m_cursorPos = 0;
}
template<typename T> T readBE();
template<typename T> T readLE();
template<typename T>
std::vector<T> readPODVector()
{
uint32 numElements = readBE<uint32>();
i... | 4,159 | C++ | .h | 182 | 20.065934 | 77 | 0.681577 | 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,337 | StringBuf.h | cemu-project_Cemu/src/util/helpers/StringBuf.h | #pragma once
class StringBuf
{
public:
StringBuf(uint32 bufferSize)
{
this->str = (uint8*)malloc(bufferSize + 4);
this->allocated = true;
this->length = 0;
this->limit = bufferSize;
}
~StringBuf()
{
if (this->allocated)
free(this->str);
}
template<typename TFmt, typename ... TArgs>
void addFmt(c... | 1,809 | C++ | .h | 77 | 20.818182 | 171 | 0.656413 | 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,338 | ringbuffer.h | cemu-project_Cemu/src/util/helpers/ringbuffer.h | #pragma once
#include <mutex>
template<typename T, uint32 elements, typename P = uint32>
class RingBuffer
{
public:
RingBuffer();
bool Push(const T& v);
template<class Q = T>
typename std::enable_if< !std::is_array<T>::value, Q >::type
Pop()
{
std::unique_lock<std::mutex> lock(m_mutex);
if (m_readPointer ... | 2,730 | C++ | .h | 105 | 24.085714 | 61 | 0.717525 | 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,339 | enum_array.hpp | cemu-project_Cemu/src/util/helpers/enum_array.hpp | #pragma once
// expects the enum class (T) to have a value called ENUM_COUNT which is the maximum value + 1
template<typename E, class T>
class enum_array : public std::array<T, static_cast<size_t>(E::ENUM_COUNT)> {
public:
T& operator[] (E e) {
return std::array<T, static_cast<size_t>(E::ENUM_COUNT)>::operator[](... | 469 | C++ | .h | 12 | 37.25 | 94 | 0.679121 | 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,340 | fixedSizeList.h | cemu-project_Cemu/src/util/helpers/fixedSizeList.h | #pragma once
#include<array>
template<typename T, uint32 maxElements, bool checkMaxSize = true>
class FixedSizeList
{
public:
std::array<T, maxElements> m_elementArray;
int count = 0;
void add(T n)
{
if (checkMaxSize && count >= maxElements)
return;
m_elementArray[count] = n;
count++;
}
void addUniqu... | 1,062 | C++ | .h | 65 | 13.276923 | 66 | 0.598178 | 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,341 | Semaphore.h | cemu-project_Cemu/src/util/helpers/Semaphore.h | #pragma once
#include <mutex>
#include <condition_variable>
class Semaphore
{
public:
void notify()
{
std::lock_guard lock(m_mutex);
++m_count;
m_condition.notify_one();
}
void wait()
{
std::unique_lock lock(m_mutex);
while (m_count == 0)
{
m_condition.wait(lock);
}
--m_count;
}
bool tr... | 2,646 | C++ | .h | 147 | 15.455782 | 61 | 0.67811 | 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,342 | TempState.h | cemu-project_Cemu/src/util/helpers/TempState.h | #pragma once
template<typename TCtor, typename TDtor>
class TempState
{
public:
TempState(TCtor ctor, TDtor dtor)
: m_dtor(std::move(dtor))
{
ctor();
}
~TempState()
{
m_dtor();
}
private:
TDtor m_dtor;
};
| 221 | C++ | .h | 17 | 11.058824 | 40 | 0.706468 | 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,343 | helpers.h | cemu-project_Cemu/src/util/helpers/helpers.h | #pragma once
#include <charconv>
#include <filesystem>
#include <string_view>
#include "util/math/vector2.h"
#include "util/math/vector3.h"
#ifdef __clang__
#include "Common/unix/fast_float.h"
#endif
template <typename TType>
constexpr auto to_underlying(TType v) noexcept
{
return static_cast<std::underlying_type_... | 6,921 | C++ | .h | 217 | 29.718894 | 114 | 0.67343 | 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,344 | ClassWrapper.h | cemu-project_Cemu/src/util/helpers/ClassWrapper.h | #pragma once
#include <mutex>
#include <memory>
template<typename T>
class SingletonClass
{
public:
static T* getInstance()
{
static T instance;
return &instance;
}
protected:
SingletonClass() = default;
};
template<typename T>
class SingletonRef
{
public:
/*static std::shared_ptr<T> getInstance() C++20 on... | 847 | C++ | .h | 43 | 17.395349 | 66 | 0.719343 | 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,345 | fspinlock.h | cemu-project_Cemu/src/util/helpers/fspinlock.h | #pragma once
// minimal but efficient non-recursive spinlock implementation
#include <atomic>
class FSpinlock
{
public:
bool is_locked() const
{
return m_lockBool.load(std::memory_order_relaxed);
}
// implement BasicLockable and Lockable
void lock() const
{
while (true)
{
if (!m_lockBool.exchange(tru... | 691 | C++ | .h | 32 | 18.65625 | 63 | 0.712308 | 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,346 | SystemException.h | cemu-project_Cemu/src/util/helpers/SystemException.h | #pragma once
#include "util/helpers/helpers.h"
class SystemException : public std::runtime_error
{
public:
SystemException()
: std::runtime_error(GetSystemErrorMessage().c_str()), m_error_code(GetExceptionError())
{}
SystemException(const std::exception& ex)
: std::runtime_error(GetSystemErrorMessage(ex).c_st... | 608 | C++ | .h | 18 | 31.666667 | 92 | 0.753425 | 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,347 | MapAdaptor.h | cemu-project_Cemu/src/util/helpers/MapAdaptor.h | #pragma once
// https://ideone.com/k0H8Ei
#include <iostream>
#include <map>
#include <boost/iterator/transform_iterator.hpp>
template <typename T, typename F>
struct map_adaptor
{
map_adaptor(const T& t, const F& f) : _t(t), _f(f) {}
map_adaptor(map_adaptor& a) = delete;
map_adaptor(map_adaptor&& a) = default;
... | 1,071 | C++ | .h | 25 | 41.08 | 98 | 0.681467 | 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,348 | StringHelpers.h | cemu-project_Cemu/src/util/helpers/StringHelpers.h | #pragma once
#include "boost/nowide/convert.hpp"
#include <charconv>
// todo - move the Cafe/PPC specific parts to CafeString.h eventually
namespace StringHelpers
{
// convert Wii U big-endian wchar_t string to utf8 string
static std::string ToUtf8(const uint16be* ptr, size_t maxLength)
{
std::wstringstream resul... | 5,004 | C++ | .h | 182 | 23.774725 | 115 | 0.605165 | 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,349 | StringParser.h | cemu-project_Cemu/src/util/helpers/StringParser.h | #pragma once
class StringTokenParser
{
public:
StringTokenParser() : m_str(nullptr), m_len(0) {};
StringTokenParser(const char* input, sint32 inputLen) : m_str(input), m_len(inputLen) {};
StringTokenParser(std::string_view str) : m_str(str.data()), m_len((sint32)str.size()) {};
// skip whitespaces at current ptr... | 4,508 | C++ | .h | 231 | 15.995671 | 91 | 0.556626 | 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,350 | quaternion.h | cemu-project_Cemu/src/util/math/quaternion.h | #pragma once
#include <tuple>
#include <wx/math.h>
#include "util/math/vector3.h"
#define DEG2RAD(__d__) ((__d__ * M_PI) / 180.0f )
#define RAD2DEG(__r__) ((__r__ * 180.0f) / M_PI)
template<typename T>
class Quaternion
{
public:
T w;
T x;
T y;
T z;
Quaternion();
Quaternion(const T& w, const T& x, const T& y,... | 4,996 | C++ | .h | 179 | 25.586592 | 91 | 0.610588 | 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,351 | glm.h | cemu-project_Cemu/src/util/math/glm.h | #pragma once
namespace glm
{
inline quat normalize_xyz(const quat& q)
{
const auto xyzTargetLength = std::sqrt(1.0f - q.w * q.w);
const auto lengthScaler = xyzTargetLength / sqrtf(q.x * q.x + q.y * q.y + q.z * q.z);
return quat(q.w, q.x * lengthScaler, q.y * lengthScaler, q.z * lengthScaler);
}
inline vec3 ... | 834 | C++ | .h | 32 | 23.28125 | 87 | 0.535088 | 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,352 | vector3.h | cemu-project_Cemu/src/util/math/vector3.h | #pragma once
#include <cassert>
template <typename T>
class Vector3 {
public:
T x;
T y;
T z;
Vector3() : x{}, y{}, z{} {}
Vector3(T x, T y, T z) : x(x), y(y), z(z) {}
template <typename U=T>
Vector3(const Vector3<U>& v)
: x((T)v.x), y((T)v.y), z((T)v.z) {}
float Length() const
{
return std::sqrt((x * x... | 3,840 | C++ | .h | 199 | 16.894472 | 74 | 0.565567 | 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,353 | vector2.h | cemu-project_Cemu/src/util/math/vector2.h | #pragma once
#include <cassert>
template <typename T>
class Vector2
{
public:
T x;
T y;
Vector2()
: x{}, y{} {}
Vector2(T x, T y)
: x(x), y(y) {}
template <typename U = T>
Vector2(const Vector2<U>& v)
: x((T)v.x), y((T)v.y) {}
float Length() const
{
return (float)std::sqrt((x * x) + (y * y));
}
... | 2,267 | C++ | .h | 129 | 15.085271 | 62 | 0.589986 | 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,354 | SystemInfo.h | cemu-project_Cemu/src/util/SystemInfo/SystemInfo.h | #pragma once
struct ProcessorTime
{
uint64 idle{}, kernel{}, user{};
uint64 work();
uint64 total();
static double Compare(ProcessorTime &last, ProcessorTime &now);
};
uint32 GetProcessorCount();
uint64 QueryRamUsage();
void QueryProcTime(uint64 &out_now, uint64 &out_user, uint64 &out_kernel);
void QueryProcTim... | 411 | C++ | .h | 13 | 29.923077 | 74 | 0.783715 | 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,355 | ControllerFactory.h | cemu-project_Cemu/src/input/ControllerFactory.h | #pragma once
#include "input/api/InputAPI.h"
#include "input/api/Controller.h"
#include "input/emulated/EmulatedController.h"
class ControllerFactory
{
public:
static ControllerPtr CreateController(InputAPI::Type api, std::string_view uuid, std::string_view display_name);
static EmulatedControllerPtr CreateEmulated... | 507 | C++ | .h | 11 | 44.636364 | 119 | 0.842105 | 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,356 | InputManager.h | cemu-project_Cemu/src/input/InputManager.h | #pragma once
#if BOOST_OS_WINDOWS
#include "input/api/DirectInput/DirectInputControllerProvider.h"
#include "input/api/XInput/XInputControllerProvider.h"
#endif
#ifdef SUPPORTS_WIIMOTE
#include "input/api/Wiimote/WiimoteControllerProvider.h"
#endif
#include "util/helpers/Singleton.h"
#include "input/api/SDL/SDLCont... | 3,944 | C++ | .h | 92 | 40.521739 | 141 | 0.781037 | 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,357 | Controller.h | cemu-project_Cemu/src/input/api/Controller.h | #pragma once
#include "input/InputManager.h"
#include "input/motion/MotionSample.h"
#include "input/api/ControllerState.h"
namespace pugi
{
class xml_node;
}
enum Buttons2 : uint64
{
// General
kButton0,
kButton1,
kButton2,
kButton3,
kButton4,
kButton5,
kButton6,
kButton7,
kButton8,
kButton9,
kButton10,... | 4,828 | C++ | .h | 163 | 27.392638 | 126 | 0.760441 | 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,358 | ControllerProvider.h | cemu-project_Cemu/src/input/api/ControllerProvider.h | #pragma once
#include "input/api/InputAPI.h"
class ControllerBase;
struct ControllerProviderSettings
{
virtual ~ControllerProviderSettings() = default;
virtual bool operator==(const ControllerProviderSettings&) const = 0;
};
class ControllerProviderBase
{
public:
ControllerProviderBase() = default;
virtual ~Con... | 1,793 | C++ | .h | 68 | 24 | 76 | 0.755425 | 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,359 | InputAPI.h | cemu-project_Cemu/src/input/api/InputAPI.h | #pragma once
#include "util/helpers/helpers.h"
namespace InputAPI
{
enum Type
{
Keyboard,
SDLController,
XInput,
DirectInput,
DSUClient,
GameCube,
Wiimote,
WGIGamepad,
WGIRawController,
MAX
};
constexpr std::string_view to_string(Type type)
{
switch (type)
{
case Keyboard:
return ... | 1,539 | C++ | .h | 70 | 18.842857 | 86 | 0.702332 | 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,360 | ControllerState.h | cemu-project_Cemu/src/input/api/ControllerState.h | #pragma once
#include <glm/vec2.hpp>
#include "util/helpers/fspinlock.h"
enum class PositionVisibility {
NONE = 0,
FULL = 1,
PARTIAL = 2
};
// helper class for storing and managing button press states in a thread-safe manner
struct ControllerButtonState
{
ControllerButtonState() = default;
ControllerButtonState... | 3,956 | C++ | .h | 126 | 28.698413 | 157 | 0.732668 | 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,361 | DirectInputController.h | cemu-project_Cemu/src/input/api/DirectInput/DirectInputController.h | #pragma once
#include "input/api/DirectInput/DirectInputControllerProvider.h"
#include "input/api/Controller.h"
class DirectInputController : public Controller<DirectInputControllerProvider>
{
public:
DirectInputController(const GUID& guid);
DirectInputController(const GUID& guid, std::string_view display_name);
~... | 1,293 | C++ | .h | 36 | 33.694444 | 78 | 0.772947 | 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,362 | DirectInputControllerProvider.h | cemu-project_Cemu/src/input/api/DirectInput/DirectInputControllerProvider.h | #pragma once
#if BOOST_OS_WINDOWS
#define DIRECTINPUT_VERSION 0x0800
#include <dinput.h>
#include "input/api/ControllerProvider.h"
#ifndef HAS_DIRECTINPUT
#define HAS_DIRECTINPUT 1
#endif
class DirectInputControllerProvider : public ControllerProviderBase
{
public:
DirectInputControllerProvider();
~DirectInputCo... | 845 | C++ | .h | 25 | 31.92 | 73 | 0.815822 | 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,363 | XInputControllerProvider.h | cemu-project_Cemu/src/input/api/XInput/XInputControllerProvider.h | #pragma once
#if BOOST_OS_WINDOWS
#include "input/api/ControllerProvider.h"
#include <Xinput.h>
#ifndef HAS_XINPUT
#define HAS_XINPUT 1
#endif
class XInputControllerProvider : public ControllerProviderBase
{
friend class XInputController;
public:
XInputControllerProvider();
~XInputControllerProvider() override;
... | 782 | C++ | .h | 24 | 30.833333 | 73 | 0.828229 | 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,364 | XInputController.h | cemu-project_Cemu/src/input/api/XInput/XInputController.h | #pragma once
#include "input/api/XInput/XInputControllerProvider.h"
#include "input/api/Controller.h"
class XInputController : public Controller<XInputControllerProvider>
{
public:
XInputController(uint32 index);
std::string_view api_name() const override
{
static_assert(to_string(InputAPI::XInput) == "XInput"... | 922 | C++ | .h | 29 | 29.586207 | 68 | 0.769318 | 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,365 | DSUMessages.h | cemu-project_Cemu/src/input/api/DSU/DSUMessages.h | #pragma once
// https://v1993.github.io/cemuhook-protocol/
#include "Common/enumFlags.h"
#include "util/math/vector3.h"
#include <array>
#include <cstdint>
enum class DsState : uint8_t
{
Disconnected = 0x00,
Reserved = 0x01,
Connected = 0x02
};
enum class DsConnection : uint8_t
{
None = 0x00,
Usb = 0x01,
Blu... | 6,252 | C++ | .h | 227 | 25.744493 | 100 | 0.740418 | 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,366 | DSUControllerProvider.h | cemu-project_Cemu/src/input/api/DSU/DSUControllerProvider.h | #pragma once
#include "input/motion/MotionHandler.h"
#include "input/api/DSU/DSUMessages.h"
#include "input/api/ControllerProvider.h"
#include <boost/asio.hpp>
#ifndef HAS_DSU
#define HAS_DSU 1
#endif
// #define DEBUG_DSU_CLIENT
struct DSUProviderSettings : public ControllerProviderSettings
{
std::string ip;
ui... | 3,252 | C++ | .h | 87 | 35.08046 | 114 | 0.768028 | 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,367 | DSUController.h | cemu-project_Cemu/src/input/api/DSU/DSUController.h | #pragma once
#include "input/api/Controller.h"
#include "input/api/DSU/DSUControllerProvider.h"
#include "Cafe/HW/AI/AI.h"
#include "Cafe/HW/AI/AI.h"
#include "Cafe/HW/AI/AI.h"
#include "Cafe/HW/AI/AI.h"
class DSUController : public Controller<DSUControllerProvider>
{
public:
DSUController(uint32 index);
DSUControl... | 1,154 | C++ | .h | 34 | 31.882353 | 68 | 0.777778 | 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,368 | GameCubeController.h | cemu-project_Cemu/src/input/api/GameCube/GameCubeController.h | #pragma once
#include "input/api/Controller.h"
#include "input/api/GameCube/GameCubeControllerProvider.h"
#ifdef HAS_GAMECUBE
class GameCubeController : public Controller<GameCubeControllerProvider>
{
public:
GameCubeController(uint32 adapter, uint32 index);
std::string_view api_name() const override
{
static... | 766 | C++ | .h | 25 | 28.6 | 72 | 0.790984 | 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,369 | GameCubeControllerProvider.h | cemu-project_Cemu/src/input/api/GameCube/GameCubeControllerProvider.h | #pragma once
#include "util/libusbWrapper/libusbWrapper.h"
#include "input/api/ControllerProvider.h"
#ifdef HAS_GAMECUBE
class GameCubeControllerProvider : public ControllerProviderBase
{
friend class DSUController;
public:
constexpr static size_t kMaxAdapters = 4;
constexpr static size_t kMaxIndex = 4;
GameCub... | 2,042 | C++ | .h | 57 | 33.350877 | 126 | 0.766565 | 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,370 | SDLControllerProvider.h | cemu-project_Cemu/src/input/api/SDL/SDLControllerProvider.h | #pragma once
#include <SDL2/SDL_joystick.h>
#include "input/motion/MotionHandler.h"
#include "input/api/ControllerProvider.h"
#ifndef HAS_SDL
#define HAS_SDL 1
#endif
static bool operator==(const SDL_JoystickGUID& g1, const SDL_JoystickGUID& g2)
{
return memcmp(&g1, &g2, sizeof(SDL_JoystickGUID)) == 0;
}
class SDLC... | 1,284 | C++ | .h | 41 | 29.146341 | 78 | 0.767101 | 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,371 | SDLController.h | cemu-project_Cemu/src/input/api/SDL/SDLController.h | #pragma once
#include "input/api/Controller.h"
#include "input/api/SDL/SDLControllerProvider.h"
#include <SDL2/SDL_gamecontroller.h>
class SDLController : public Controller<SDLControllerProvider>
{
public:
SDLController(const SDL_JoystickGUID& guid, size_t guid_index);
SDLController(const SDL_JoystickGUID& guid, s... | 1,970 | C++ | .h | 43 | 43.488372 | 154 | 0.75958 | 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,372 | KeyboardController.h | cemu-project_Cemu/src/input/api/Keyboard/KeyboardController.h | #pragma once
#include "input/api/Keyboard/KeyboardControllerProvider.h"
#include "input/api/Controller.h"
class KeyboardController : public Controller<KeyboardControllerProvider>
{
public:
KeyboardController();
std::string_view api_name() const override // TODO: use constexpr virtual function with c++20
{
stati... | 701 | C++ | .h | 19 | 34.789474 | 94 | 0.778932 | 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,373 | KeyboardControllerProvider.h | cemu-project_Cemu/src/input/api/Keyboard/KeyboardControllerProvider.h | #pragma once
#include "input/api/ControllerProvider.h"
#ifndef HAS_KEYBOARD
#define HAS_KEYBOARD 1
#endif
class KeyboardControllerProvider : public ControllerProviderBase
{
friend class KeyboardController;
public:
inline static InputAPI::Type kAPIType = InputAPI::Keyboard;
InputAPI::Type api() const override { re... | 415 | C++ | .h | 13 | 30.307692 | 73 | 0.816583 | 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,374 | WiimoteMessages.h | cemu-project_Cemu/src/input/api/Wiimote/WiimoteMessages.h | #pragma once
// https://wiibrew.org/wiki/Wiimote
enum InputReportId : uint8
{
kNone = 0,
kStatus = 0x20,
kRead = 0x21,
kAcknowledge = 0x22,
kDataCore = 0x30,
kDataCoreAcc = 0x31,
kDataCoreExt8 = 0x32,
kDataCoreAccIR = 0x33,
kDataCoreExt19 = 0x34,
kDataCoreAccExt = 0x35,
kDataCoreIRExt = 0x36,
kDataCoreA... | 4,329 | C++ | .h | 204 | 19.27451 | 57 | 0.749082 | 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,375 | NativeWiimoteController.h | cemu-project_Cemu/src/input/api/Wiimote/NativeWiimoteController.h | #pragma once
#include "input/api/Controller.h"
#include "input/api/Wiimote/WiimoteControllerProvider.h"
// todo: find better name because of emulated nameclash
class NativeWiimoteController : public Controller<WiimoteControllerProvider>
{
public:
NativeWiimoteController(size_t index);
enum Extension
{
None,
N... | 1,634 | C++ | .h | 49 | 30.979592 | 76 | 0.775575 | 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,376 | WiimoteDevice.h | cemu-project_Cemu/src/input/api/Wiimote/WiimoteDevice.h | #pragma once
class WiimoteDevice
{
friend class WiimoteInfo;
public:
virtual ~WiimoteDevice() = default;
virtual bool write_data(const std::vector<uint8>& data) = 0;
virtual std::optional<std::vector<uint8_t>> read_data() = 0;
virtual bool operator==(WiimoteDevice& o) const = 0;
bool operator!=(WiimoteDevice& ... | 413 | C++ | .h | 12 | 32.583333 | 63 | 0.745592 | 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,377 | WiimoteControllerProvider.h | cemu-project_Cemu/src/input/api/Wiimote/WiimoteControllerProvider.h | #pragma once
#include "input/motion/MotionHandler.h"
#include "input/api/Wiimote/WiimoteDevice.h"
#include "input/api/Wiimote/WiimoteMessages.h"
#include "input/api/ControllerProvider.h"
#include "input/api/ControllerState.h"
#include <list>
#include <variant>
#include <boost/ptr_container/ptr_vector.hpp>
#ifndef H... | 3,422 | C++ | .h | 92 | 34.565217 | 112 | 0.763741 | 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,378 | HidapiWiimote.h | cemu-project_Cemu/src/input/api/Wiimote/hidapi/HidapiWiimote.h | #pragma once
#include <api/Wiimote/WiimoteDevice.h>
#include <hidapi.h>
class HidapiWiimote : public WiimoteDevice {
public:
HidapiWiimote(hid_device* dev, std::string_view path);
~HidapiWiimote() override;
bool write_data(const std::vector<uint8> &data) override;
std::optional<std::vector<uint8>> re... | 560 | C++ | .h | 16 | 31.625 | 61 | 0.743494 | 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,379 | WiimoteController.h | cemu-project_Cemu/src/input/emulated/WiimoteController.h | #pragma once
#include "input/emulated/WPADController.h"
class WiimoteController : public WPADController
{
using base_type = WPADController;
public:
enum ButtonId
{
kButtonId_None,
kButtonId_A,
kButtonId_B,
kButtonId_1,
kButtonId_2,
kButtonId_Nunchuck_Z,
kButtonId_Nunchuck_C,
kButtonId_Plus,
kB... | 2,190 | C++ | .h | 55 | 37.181818 | 136 | 0.767045 | 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,380 | VPADController.h | cemu-project_Cemu/src/input/emulated/VPADController.h | #pragma once
#include "input/emulated/EmulatedController.h"
#include "Cafe/OS/libs/vpad/vpad.h"
class VPADController : public EmulatedController
{
public:
enum ButtonId
{
kButtonId_None,
kButtonId_A,
kButtonId_B,
kButtonId_X,
kButtonId_Y,
kButtonId_L,
kButtonId_R,
kButtonId_ZL,
kButtonId_ZR,
... | 3,020 | C++ | .h | 80 | 35.1125 | 132 | 0.757045 | 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,381 | ClassicController.h | cemu-project_Cemu/src/input/emulated/ClassicController.h | #pragma once
#include "input/emulated/WPADController.h"
class ClassicController : public WPADController
{
public:
enum ButtonId
{
kButtonId_None,
kButtonId_A,
kButtonId_B,
kButtonId_X,
kButtonId_Y,
kButtonId_L,
kButtonId_R,
kButtonId_ZL,
kButtonId_ZR,
kButtonId_Plus,
kButtonId_Minus,
kBut... | 2,020 | C++ | .h | 54 | 34.722222 | 132 | 0.76386 | 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,382 | EmulatedController.h | cemu-project_Cemu/src/input/emulated/EmulatedController.h | #pragma once
#include <pugixml.hpp>
class ControllerBase;
#include "input/motion/MotionSample.h"
#include "input/api/ControllerState.h"
#include "input/api/InputAPI.h"
#include "util/helpers/helpers.h"
// mapping = wii u controller button id
// button = api button id
class EmulatedController
{
friend class Input... | 4,317 | C++ | .h | 106 | 38.433962 | 117 | 0.755806 | 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,383 | WPADController.h | cemu-project_Cemu/src/input/emulated/WPADController.h | #pragma once
#include <wx/cmdargs.h>
#include "input/emulated/EmulatedController.h"
#include "Cafe/OS/libs/padscore/padscore.h"
#include "Cafe/OS/libs/vpad/vpad.h"
constexpr uint32 kWPADButtonRepeat = 0x80000000;
enum WPADDeviceType
{
kWAPDevCore = 0,
kWAPDevFreestyle = 1,
kWAPDevClassic = 2,
kWAPDevMPLS = 5,
... | 3,474 | C++ | .h | 125 | 25.712 | 82 | 0.766687 | 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,384 | ProController.h | cemu-project_Cemu/src/input/emulated/ProController.h | #pragma once
#include "input/emulated/WPADController.h"
class ProController : public WPADController
{
public:
enum ButtonId
{
kButtonId_None,
kButtonId_A,
kButtonId_B,
kButtonId_X,
kButtonId_Y,
kButtonId_L,
kButtonId_R,
kButtonId_ZL,
kButtonId_ZR,
kButtonId_Plus,
kButtonId_Minus,
kButtonI... | 2,045 | C++ | .h | 56 | 33.821429 | 132 | 0.762557 | 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,385 | MotionSample.h | cemu-project_Cemu/src/input/motion/MotionSample.h | #pragma once
#include "util/math/vector3.h"
#include "util/math/quaternion.h"
struct Quat
{
float w;
float x;
float y;
float z;
Quat()
{
w = 1.0f;
x = 0.0f;
y = 0.0f;
z = 0.0f;
}
Quat(float inW, float inX, float inY, float inZ)
{
w = inW;
x = inX;
y = inY;
z = inZ;
}
static Quat AngleAxis... | 7,248 | C++ | .h | 273 | 24.043956 | 137 | 0.62612 | 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,386 | MotionHandler.h | cemu-project_Cemu/src/input/motion/MotionHandler.h | #pragma once
#include "Mahony.h"
#include "MotionSample.h"
// utility class to translate external motion input (DSU, SDL GamePad sensors) into the values expected by VPAD API (and maybe others in the future)
class WiiUMotionHandler
{
public:
// gyro is in radians/sec
void processMotionSample(
float deltaTime,
fl... | 1,632 | C++ | .h | 55 | 27.254545 | 148 | 0.700572 | 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,387 | Mahony.h | cemu-project_Cemu/src/input/motion/Mahony.h | #pragma once
#include <math.h>
#include <cmath>
#include "util/math/quaternion.h"
class MahonySensorFusion
{
public:
MahonySensorFusion()
{
// assume default forward pose (holding controller in hand, tilted forward so the sticks/buttons face upward)
m_imuQ.Assign(sqrtf(0.5), sqrtf(0.5), 0.0f, 0.0f);
}
// gx,... | 4,715 | C++ | .h | 146 | 29.260274 | 316 | 0.652747 | 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,388 | x64util.h | cemu-project_Cemu/src/asm/x64util.h | #pragma once
#if defined(ARCH_X86_64)
extern "C" void recompiler_fres();
extern "C" void recompiler_frsqrte();
#else
// stubbed on non-x86 for now
static void recompiler_fres()
{
cemu_assert_unimplemented();
}
static void recompiler_frsqrte()
{
cemu_assert_unimplemented();
}
#endif
| 293 | C++ | .h | 15 | 17.866667 | 37 | 0.761905 | 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,389 | version.h | cemu-project_Cemu/src/Common/version.h | #ifndef EMULATOR_NAME
#define EMULATOR_NAME "Cemu"
#define EMULATOR_VERSION_SUFFIX ""
#define _XSTRINGFY(s) _STRINGFY(s)
#define _STRINGFY(s) #s
#if EMULATOR_VERSION_MAJOR != 0
#define BUILD_VERSION_WITH_NAME_STRING (EMULATOR_NAME " " _XSTRINGFY(EMULATOR_VERSION_MAJOR) "." _XSTRINGFY(EMULATOR_VERSION_MINOR) E... | 730 | C++ | .h | 14 | 50.785714 | 156 | 0.78481 | 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,390 | SysAllocator.h | cemu-project_Cemu/src/Common/SysAllocator.h | #pragma once
uint32 coreinit_allocFromSysArea(uint32 size, uint32 alignment);
class SysAllocatorBase;
#define SYSALLOCATOR_GUARDS 0 // if 1, create a magic constant at the top of each memory allocation which is used to check for memory corruption
class SysAllocatorContainer
{
public:
void Initialize();
void PushS... | 3,960 | C++ | .h | 179 | 19.798883 | 145 | 0.703446 | 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,391 | cpu_features.h | cemu-project_Cemu/src/Common/cpu_features.h |
#ifdef __GNUC__
#define ATTRIBUTE_AVX2 __attribute__((target("avx2")))
#define ATTRIBUTE_SSE41 __attribute__((target("sse4.1")))
#define ATTRIBUTE_AESNI __attribute__((target("aes")))
#else
#define ATTRIBUTE_AVX2
#define ATTRIBUTE_SSE41
#define ATTRIBUTE_AESNI
#endif
class CPUFeaturesImpl
{
public:
CPUFeaturesImpl()... | 737 | C++ | .h | 31 | 21.83871 | 57 | 0.72792 | 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,392 | platform.h | cemu-project_Cemu/src/Common/platform.h | #pragma once
#include <boost/predef/os.h>
#include <cstdint>
#if BOOST_OS_WINDOWS
#include "Common/windows/platform.h"
#elif BOOST_OS_LINUX
#include <byteswap.h>
#include <X11/Xlib.h>
#include <X11/extensions/Xrender.h>
#include <X11/Xutil.h>
#include "Common/unix/platform.h"
#elif BOOST_OS_MACOS
#include <libkern/OS... | 374 | C++ | .h | 15 | 23.8 | 36 | 0.784314 | 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,393 | precompiled.h | cemu-project_Cemu/src/Common/precompiled.h | #pragma once
#include <stdlib.h> // for size_t
#include "version.h"
#include "platform.h"
#define FMT_HEADER_ONLY
#define FMT_USE_GRISU 1
#include <fmt/core.h>
#include <fmt/format.h>
#include <fmt/ranges.h>
#if FMT_VERSION > 80000
#include <fmt/xchar.h> // needed for wchar_t support
#endif
#define SDL_MAIN_HANDLED... | 16,204 | C++ | .h | 506 | 29.83004 | 240 | 0.695212 | 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,394 | socket.h | cemu-project_Cemu/src/Common/socket.h | #pragma once
#if BOOST_OS_WINDOWS
#include <WinSock2.h>
typedef int socklen_t;
#else
#include <sys/socket.h>
#define SOCKET int
#define closesocket close
#define SOCKET_ERROR -1
#define INVALID_SOCKET -1
#endif
| 216 | C++ | .h | 11 | 18.181818 | 25 | 0.805 | 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,395 | CafeString.h | cemu-project_Cemu/src/Common/CafeString.h | #pragma once
#include "betype.h"
#include "util/helpers/StringHelpers.h"
/* Helper classes to represent CafeOS strings in emulated memory */
template <size_t N>
class CafeString // fixed buffer size, null-terminated, PPC char
{
public:
bool assign(std::string_view sv)
{
if (sv.size()+1 >= N)
{
memcpy(data, ... | 1,434 | C++ | .h | 71 | 17.535211 | 90 | 0.651917 | 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,396 | betype.h | cemu-project_Cemu/src/Common/betype.h | #pragma once
#include <type_traits>
namespace Latte
{
class LATTEREG;
};
template<class T, std::size_t... N>
constexpr T bswap_impl(T i, std::index_sequence<N...>)
{
return ((((i >> (N * CHAR_BIT)) & (T)(uint8_t)(-1)) << ((sizeof(T) - 1 - N) * CHAR_BIT)) | ...);
}
template<class T, class U = std::make_unsigned_t<... | 5,770 | C++ | .h | 216 | 24.425926 | 97 | 0.674225 | 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,397 | FileStream.h | cemu-project_Cemu/src/Common/FileStream.h | #pragma once
#include "Common/precompiled.h"
#ifdef _WIN32
#include "Common/windows/FileStream_win32.h"
#else
#include "Common/unix/FileStream_unix.h"
#endif
| 159 | C++ | .h | 7 | 21.571429 | 44 | 0.807947 | 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,398 | MemPtr.h | cemu-project_Cemu/src/Common/MemPtr.h | #pragma once
#include <type_traits>
#include "betype.h"
using MPTR = uint32; // generic address in PowerPC memory space
#define MPTR_NULL (0)
using VAddr = uint32; // virtual address
using PAddr = uint32; // physical address
extern uint8* memory_base;
extern uint8* PPCInterpreterGetStackPointer();
extern uint8* PPC... | 4,039 | C++ | .h | 156 | 23.455128 | 93 | 0.712393 | 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,399 | StackAllocator.h | cemu-project_Cemu/src/Common/StackAllocator.h | #pragma once
template<typename T, int count = 1>
class StackAllocator
{
public:
StackAllocator()
: StackAllocator(1)
{}
explicit StackAllocator(const uint32 items)
{
m_items = items;
m_modified_size = count * sizeof(T) * items + kStaticMemOffset * 2;
m_modified_size = (m_modified_size/8+7) * 8; // pad to ... | 1,579 | C++ | .h | 59 | 24.474576 | 111 | 0.68543 | 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,400 | enumFlags.h | cemu-project_Cemu/src/Common/enumFlags.h | #pragma once
#include <type_traits>
// enum flag helpers
template<typename TEnum>
struct EnableBitMaskOperators
{
static const bool enable = false;
};
template<typename TEnum>
typename std::enable_if<EnableBitMaskOperators<TEnum>::enable, TEnum>::type
operator &(TEnum lhs, TEnum rhs)
{
return static_cast<TEnum> (s... | 4,348 | C++ | .h | 112 | 37.383929 | 153 | 0.771164 | 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,401 | ELFSymbolTable.h | cemu-project_Cemu/src/Common/ExceptionHandler/ELFSymbolTable.h | #pragma once
#include <memory>
#include <elf.h>
class ELFSymbolTable
{
public:
std::string_view OffsetToSymbol(uint64 ptr, uint64& fromStart) const;
ELFSymbolTable();
~ELFSymbolTable();
private:
uint8* mappedExecutable = nullptr;
size_t mappedExecutableSize = 0;
Elf64_Ehdr* header = nullptr;
Elf64_Shdr* shTa... | 698 | C++ | .h | 24 | 27.083333 | 70 | 0.774775 | 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,402 | ExceptionHandler.h | cemu-project_Cemu/src/Common/ExceptionHandler/ExceptionHandler.h | #pragma once
void ExceptionHandler_Init();
bool CrashLog_Create();
void CrashLog_SetOutputChannels(bool writeToStdErr, bool writeToLogTxt);
void CrashLog_WriteLine(std::string_view text, bool newLine = true);
void CrashLog_WriteHeader(const char* header);
void ExceptionHandler_LogGeneralInfo();
| 299 | C++ | .h | 7 | 41.285714 | 72 | 0.83045 | 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,405 | GLInclude.h | cemu-project_Cemu/src/Common/GLInclude/GLInclude.h | #pragma once
#include "glext.h"
#if BOOST_OS_WINDOWS > 0
#include "wglext.h"
#endif
#if BOOST_OS_LINUX > 0
// from Xlib
#define Bool int
#define Status int
#define True 1
#define False 0
// from system glx.h
typedef XID GLXContextID;
typedef XID GLXPixmap;
typedef XID GLXDrawable;
typedef XID GLXPbuffer;
typedef X... | 7,532 | C++ | .h | 199 | 36.005025 | 235 | 0.805335 | 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,406 | glxext.h | cemu-project_Cemu/src/Common/GLInclude/glxext.h | #ifndef __glx_glxext_h_
#define __glx_glxext_h_ 1
#ifdef __cplusplus
extern "C" {
#endif
/*
** Copyright 2013-2020 The Khronos Group Inc.
** SPDX-License-Identifier: MIT
**
** This header is generated from the Khronos OpenGL / OpenGL ES XML
** API Registry. The current version of the Registry, generator scripts
** us... | 47,796 | C++ | .h | 878 | 53.256264 | 317 | 0.762072 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | true | false | false | false | false | false | false |
23,407 | glFunctions.h | cemu-project_Cemu/src/Common/GLInclude/glFunctions.h | // OpenGL 1.1 - 2.0
GLFUNC(PFNGLDRAWBUFFERPROC, glDrawBuffer)
GLFUNC(PFNGLGENTEXTURESPROC, glGenTextures)
GLFUNC(PFNGLDELETETEXTURESPROC, glDeleteTextures)
GLFUNC(PFNGLBINDTEXTUREPROC, glBindTexture)
GLFUNC(PFNGLTEXPARAMETERIPROC, glTexParameteri)
GLFUNC(PFNGLTEXIMAGE2DPROC, glTexImage2D)
GLFUNC(PFNGLTEXSUBIMAGE2DPROC,... | 12,320 | C++ | .h | 245 | 49.040816 | 107 | 0.918199 | 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,408 | egl.h | cemu-project_Cemu/src/Common/GLInclude/egl.h | #ifndef __egl_h_
#define __egl_h_ 1
#ifdef __cplusplus
extern "C" {
#endif
/*
** Copyright 2013-2020 The Khronos Group Inc.
** SPDX-License-Identifier: Apache-2.0
**
** This header is generated from the Khronos EGL XML API Registry.
** The current version of the Registry, generator scripts
** used to make the header,... | 19,286 | C++ | .h | 328 | 57.734756 | 177 | 0.735061 | cemu-project/Cemu | 7,119 | 558 | 254 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | true | true | false | false | false | false | false | false |
23,409 | FileStream_unix.h | cemu-project_Cemu/src/Common/unix/FileStream_unix.h | #pragma once
#include "Common/precompiled.h"
class FileStream
{
public:
static FileStream* openFile(std::string_view path);
static FileStream* openFile(const wchar_t* path, bool allowWrite = false);
static FileStream* openFile2(const fs::path& path, bool allowWrite = false);
static FileStream* createFile(const w... | 1,464 | C++ | .h | 44 | 31.113636 | 79 | 0.759233 | 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,411 | platform.h | cemu-project_Cemu/src/Common/unix/platform.h | #include <shared_mutex>
class SlimRWLock
{
public:
void LockRead()
{
m_sm.lock_shared();
}
void UnlockRead()
{
m_sm.unlock_shared();
}
void LockWrite()
{
m_sm.lock();
}
void UnlockWrite()
{
m_sm.unlock();
}
private:
std::shared_mutex m_sm;
};
inline uint32_t GetExceptionError()
{
return ... | 1,115 | C++ | .h | 79 | 11.911392 | 48 | 0.620858 | 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,413 | FileStream_win32.h | cemu-project_Cemu/src/Common/windows/FileStream_win32.h | #pragma once
#include "Common/precompiled.h"
class FileStream
{
public:
static FileStream* openFile(std::string_view path);
static FileStream* openFile(const wchar_t* path, bool allowWrite = false);
static FileStream* openFile2(const fs::path& path, bool allowWrite = false);
static FileStream* createFile(const w... | 1,337 | C++ | .h | 42 | 29.690476 | 79 | 0.754673 | 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,414 | platform.h | cemu-project_Cemu/src/Common/windows/platform.h | #pragma once
#ifndef NOMINMAX
#define NOMINMAX
#endif
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <Windows.h>
#define AF_BLUETOOTH AF_BTH
#define BTPROTO_RFCOMM BT_PORT_ANY
class SlimRWLock
{
public:
SlimRWLock();
void LockRead();
void UnlockRead();
void LockWrite();
void UnlockWrit... | 395 | C++ | .h | 22 | 16.454545 | 34 | 0.785326 | 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,415 | ppcAssembler.h | cemu-project_Cemu/src/Cemu/PPCAssembler/ppcAssembler.h | #pragma once
#include <boost/container/small_vector.hpp>
#define PPCASM_OPERAND_COUNT 5
#define PPCASM_OPERAND_TYPE_GPR 0 // r0 - r31
#define PPCASM_OPERAND_TYPE_FPR 1 // f0 - f31
#define PPCASM_OPERAND_TYPE_SPR 2 // spr0 - spr511
#define PPCASM_OPERAND_TYPE_IMM 3 // integer constants. E.g. 0x123
#define PPCAS... | 7,534 | C++ | .h | 320 | 21.5 | 245 | 0.753453 | 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,416 | FileCache.h | cemu-project_Cemu/src/Cemu/FileCache/FileCache.h | #pragma once
#include <mutex>
class FileCache
{
public:
struct FileName
{
FileName(uint64 name1, uint64 name2) : name1(name1), name2(name2) {};
FileName(std::string_view filePath)
{
// name from string hash
uint64 h1 = 0xa2cc2c49386a75fdull;
uint64 h2 = 0x5182d367734c2ce8ull;
const char* c = file... | 2,573 | C++ | .h | 79 | 29.708861 | 112 | 0.73153 | 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,417 | napi_helper.h | cemu-project_Cemu/src/Cemu/napi/napi_helper.h | #pragma once
#include "napi.h"
#include "curl/curl.h"
#include "pugixml.hpp"
typedef void CURL;
class CurlRequestHelper
{
struct HeaderExtraField
{
HeaderExtraField(std::string_view name, std::string_view value)
{
data.assign(name);
data.append(": ");
data.append(value);
};
std::string data;
};
p... | 3,187 | C++ | .h | 100 | 29.57 | 198 | 0.761501 | 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,418 | napi.h | cemu-project_Cemu/src/Cemu/napi/napi.h | #pragma once
#include "config/CemuConfig.h" // for ConsoleLanguage
#include "config/NetworkSettings.h" // for NetworkService
#include "config/ActiveSettings.h" // for GetNetworkService()
enum class NAPI_RESULT
{
SUCCESS = 0,
FAILED = 1, // general failure
XML_ERROR = 2, // XML response unexpected
DATA_ERROR = 3, /... | 8,469 | C++ | .h | 257 | 30.101167 | 181 | 0.755858 | 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,419 | DownloadManager.h | cemu-project_Cemu/src/Cemu/Tools/DownloadManager/DownloadManager.h | #pragma once
#include "util/helpers/Semaphore.h"
#include "Cemu/ncrypto/ncrypto.h"
#include "Cafe/TitleList/TitleId.h"
#include "util/helpers/ConcurrentQueue.h"
#include "config/NetworkSettings.h"
// forward declarations
namespace NAPI
{
struct IDBEIconDataV0;
struct AuthInfo;
}
namespace NCrypto
{
class TMDParser... | 13,218 | C++ | .h | 430 | 27.730233 | 268 | 0.755447 | 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,420 | ncrypto.h | cemu-project_Cemu/src/Cemu/ncrypto/ncrypto.h | #pragma once
#include "Common/betype.h"
#include "config/CemuConfig.h" // for ConsoleRegion
/* OpenSSL forward declarations */
typedef struct ec_key_st EC_KEY;
typedef struct ec_point_st EC_POINT;
typedef struct ECDSA_SIG_st ECDSA_SIG;
namespace NCrypto
{
/* Base 64 */
std::string base64Encode(const void* inputMem,... | 4,712 | C++ | .h | 172 | 24.418605 | 160 | 0.717145 | 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,421 | nexTypes.h | cemu-project_Cemu/src/Cemu/nex/nexTypes.h | #pragma once
#include<string>
#ifndef FFL_SIZE
#define FFL_SIZE (0x60)
#endif
class nexPacketBuffer;
class nexMetaType
{
public:
virtual const char* getMetaName() const = 0;
virtual void writeData(nexPacketBuffer* pb) const = 0;
};
class nexType
{
public:
virtual ~nexType(){};
virtual const char* getMetaName... | 7,775 | C++ | .h | 327 | 21.079511 | 89 | 0.706224 | 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,422 | prudp.h | cemu-project_Cemu/src/Cemu/nex/prudp.h | #pragma once
#include "nexTypes.h"
#include "Common/socket.h"
#define RC4_N 256
struct RC4Ctx
{
unsigned char S[RC4_N];
int i;
int j;
};
void RC4_initCtx(RC4Ctx* rc4Ctx, const char* key);
void RC4_initCtx(RC4Ctx* rc4Ctx, unsigned char* key, int keyLen);
void RC4_transform(RC4Ctx* rc4Ctx, unsigned char* input, int... | 5,183 | C++ | .h | 170 | 28.405882 | 158 | 0.803177 | 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,423 | nexFriends.h | cemu-project_Cemu/src/Cemu/nex/nexFriends.h | #pragma once
#ifndef FFL_SIZE
#define FFL_SIZE 0x60
#endif
class nexGameKey : public nexType
{
public:
nexGameKey() = default;
nexGameKey(uint64 titleId, uint16 ukn)
{
this->titleId = titleId;
this->ukn = ukn;
}
nexGameKey(nexPacketBuffer* pb)
{
readData(pb);
}
void writeData(nexPacketBuffer* pb) con... | 14,679 | C++ | .h | 553 | 24.20434 | 246 | 0.768431 | 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,424 | nex.h | cemu-project_Cemu/src/Cemu/nex/nex.h | #pragma once
#include "nexTypes.h"
#include<mutex>
const int NEX_PROTOCOL_AUTHENTICATION = 0xA;
const int NEX_PROTOCOL_SECURE = 0xB;
const int NEX_PROTOCOL_FRIENDS_WIIU = 0x66;
class nexService;
typedef struct
{
nexService* nex;
bool isSuccessful;
uint32 errorCode;
uint32 callId;
uint32 methodId;
uint8 protoc... | 3,531 | C++ | .h | 104 | 31.807692 | 210 | 0.803985 | 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,425 | DiscordPresence.h | cemu-project_Cemu/src/Cemu/DiscordPresence/DiscordPresence.h | #pragma once
#ifdef ENABLE_DISCORD_RPC
class DiscordPresence
{
public:
enum State
{
Idling,
Playing,
};
DiscordPresence();
~DiscordPresence();
void UpdatePresence(State state, const std::string& text = {}) const;
void ClearPresence() const;
};
#endif
| 267 | C++ | .h | 16 | 14.6875 | 70 | 0.760163 | 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,426 | ExpressionParser.h | cemu-project_Cemu/src/Cemu/ExpressionParser/ExpressionParser.h | #pragma once
#include "Common/precompiled.h"
#include <string>
#include <queue>
#include <stack>
#include <unordered_map>
#include <memory>
#include <charconv>
#include "boost/functional/hash_fwd.hpp"
#include <fmt/format.h>
#ifdef __clang__
#include "Common/unix/fast_float.h"
#define _EP_FROM_CHARS_DBL(...) _convF... | 13,832 | C++ | .h | 489 | 23.981595 | 147 | 0.645436 | 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.