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
5,506
capabilities.cpp
RPCS3_rpcs3/rpcs3/Emu/RSX/GL/glutils/capabilities.cpp
#include "stdafx.h" #include "capabilities.h" #include "Utilities/StrUtil.h" namespace gl { version_info::version_info(const char* version_string, int major_scale) { auto tokens = fmt::split(version_string, { "." }); if (tokens.size() < 2) { rsx_log.warning("Invalid version string: '%s'", versi...
6,214
C++
.cpp
206
24.927184
104
0.643556
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,507
sampler.cpp
RPCS3_rpcs3/rpcs3/Emu/RSX/GL/glutils/sampler.cpp
#include "stdafx.h" #include "sampler.h" #include "Emu/RSX/gcm_enums.h" #include "Emu/RSX/rsx_utils.h" #include "Emu/RSX/Common/TextureUtils.h" //GLenum wrap_mode(rsx::texture_wrap_mode wrap); //float max_aniso(rsx::texture_max_anisotropy aniso); namespace gl { GLenum wrap_mode(rsx::texture_wrap_mode wr...
7,733
C++
.cpp
173
40.260116
120
0.712101
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,508
buffer_object.cpp
RPCS3_rpcs3/rpcs3/Emu/RSX/GL/glutils/buffer_object.cpp
#include "stdafx.h" #include "buffer_object.h" namespace gl { void buffer::allocate(GLsizeiptr size, const void* data_, memory_type type, GLuint usage_flags) { m_memory_type = type; if (const auto& caps = get_driver_caps(); type != memory_type::userptr && caps.ARB_buffer_storage_supported) { ...
5,084
C++
.cpp
169
25.710059
122
0.659311
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,509
RSXContext.cpp
RPCS3_rpcs3/rpcs3/Emu/RSX/Core/RSXContext.cpp
#include "stdafx.h" #include "Emu/RSX/rsx_utils.h" #include "RSXContext.h" namespace rsx { GCM_tile_reference GCM_context::get_tiled_memory_region(const utils::address_range& range) const { if (rsx::get_location(range.start) != CELL_GCM_LOCATION_MAIN) { // Local mem can be tiled but access is transp...
1,464
C++
.cpp
42
30.452381
101
0.683499
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,510
draw_call.cpp
RPCS3_rpcs3/rpcs3/Emu/RSX/NV47/FW/draw_call.cpp
#include "stdafx.h" #include "draw_call.hpp" #include "Emu/RSX/rsx_methods.h" // FIXME #include "Emu/RSX/rsx_utils.h" #include "Emu/RSX/RSXThread.h" #include "Emu/RSX/Common/BufferUtils.h" #include "Emu/RSX/NV47/HW/context.h" #include "Emu/RSX/NV47/HW/nv4097.h" // Always import this after other HW definitio...
4,456
C++
.cpp
147
25.326531
180
0.664716
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,511
nv4097.cpp
RPCS3_rpcs3/rpcs3/Emu/RSX/NV47/HW/nv4097.cpp
#include "stdafx.h" #include "nv4097.h" #include "nv47_sync.hpp" #include "Emu/RSX/RSXThread.h" #include "Emu/RSX/Common/BufferUtils.h" #define RSX(ctx) ctx->rsxthr #define REGS(ctx) (&rsx::method_registers) #define RSX_CAPTURE_EVENT(name) if (RSX(ctx)->capture_current_frame) { RSX(ctx)->capture_frame(name);...
19,223
C++
.cpp
541
30.064695
138
0.637409
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,512
nv308a.cpp
RPCS3_rpcs3/rpcs3/Emu/RSX/NV47/HW/nv308a.cpp
#include "stdafx.h" #include "nv308a.h" #include "Emu/RSX/RSXThread.h" #include "Emu/RSX/Core/RSXReservationLock.hpp" #include "context_accessors.define.h" namespace rsx { namespace nv308a { void color::impl(context* ctx, u32 reg, u32) { const u32 out_x_max = REGS(ctx)->nv308a_size_out_x(); ...
4,614
C++
.cpp
128
29.765625
121
0.60493
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,513
nv0039.cpp
RPCS3_rpcs3/rpcs3/Emu/RSX/NV47/HW/nv0039.cpp
#include "stdafx.h" #include "nv0039.h" #include "Emu/RSX/RSXThread.h" #include "Emu/RSX/Core/RSXReservationLock.hpp" #include "context_accessors.define.h" namespace rsx { namespace nv0039 { void buffer_notify(context* ctx, u32, u32 arg) { s32 in_pitch = REGS(ctx)->nv0039_input_pitch(); s3...
4,180
C++
.cpp
120
28.816667
143
0.600249
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,514
common.cpp
RPCS3_rpcs3/rpcs3/Emu/RSX/NV47/HW/common.cpp
#include "stdafx.h" #include "common.h" #include "Emu/RSX/RSXThread.h" #define RSX(ctx) ctx->rsxthr #define REGS(ctx) (&rsx::method_registers) namespace rsx { namespace util { void push_vertex_data(rsx::context* ctx, u32 attrib_index, u32 channel_select, int count, rsx::vertex_base_type vtype, u32 va...
2,838
C++
.cpp
70
35.628571
132
0.684441
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,515
nv3089.cpp
RPCS3_rpcs3/rpcs3/Emu/RSX/NV47/HW/nv3089.cpp
#include "stdafx.h" #include "nv3089.h" #include "Emu/RSX/RSXThread.h" #include "Emu/RSX/Core/RSXReservationLock.hpp" #include "Emu/RSX/Common/tiled_dma_copy.hpp" #include "context_accessors.define.h" namespace rsx { namespace nv3089 { static std::tuple<bool, blit_src_info, blit_dst_info> decode_tra...
22,042
C++
.cpp
557
33.448833
192
0.62704
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,516
nv406e.cpp
RPCS3_rpcs3/rpcs3/Emu/RSX/NV47/HW/nv406e.cpp
#include "stdafx.h" #include "nv406e.h" #include "common.h" #include "nv47_sync.hpp" #include "Emu/RSX/RSXThread.h" #include "context_accessors.define.h" namespace rsx { namespace nv406e { void set_reference(context* ctx, u32 /*reg*/, u32 arg) { RSX(ctx)->sync(); // Write ref+get (get w...
3,384
C++
.cpp
102
27.460784
131
0.625232
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,517
pad_config.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/pad_config.cpp
#include "stdafx.h" #include "pad_config.h" #include "Emu/system_utils.hpp" LOG_CHANNEL(input_log, "Input"); extern std::string g_input_config_override; std::vector<std::string> cfg_pad::get_buttons(const std::string& str) { std::vector<std::string> vec = fmt::split(str, {","}); // Handle special case: string con...
3,639
C++
.cpp
108
31.5
116
0.683985
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,518
Turntable.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/Turntable.cpp
// DJ Hero Turntable controller emulator #include "stdafx.h" #include "Turntable.h" #include "Emu/Cell/lv2/sys_usbd.h" #include "Emu/Io/turntable_config.h" #include "Input/pad_thread.h" LOG_CHANNEL(turntable_log, "TURN"); template <> void fmt_class_string<turntable_btn>::format(std::string& out, u64 arg) { format_e...
8,660
C++
.cpp
262
29.469466
177
0.647157
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,519
RB3MidiGuitar.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/RB3MidiGuitar.cpp
// Rock Band 3 MIDI Pro Adapter Emulator (Guitar Mode) #include "stdafx.h" #include "RB3MidiGuitar.h" #include "Emu/Cell/lv2/sys_usbd.h" LOG_CHANNEL(rb3_midi_guitar_log); usb_device_rb3_midi_guitar::usb_device_rb3_midi_guitar(const std::array<u8, 7>& location, const std::string& device_name, bool twentytwo_fret) : ...
10,618
C++
.cpp
323
30.024768
163
0.677404
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,520
Infinity.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/Infinity.cpp
#include "stdafx.h" #include "Infinity.h" #include <bit> #include "Crypto/aes.h" #include "Crypto/sha1.h" #include "util/asm.hpp" LOG_CHANNEL(infinity_log, "infinity"); infinity_base g_infinitybase; static constexpr std::array<u8, 32> SHA1_CONSTANT = { 0xAF, 0x62, 0xD2, 0xEC, 0x04, 0x91, 0x96, 0x8C, 0xC5, 0x2A, 0...
11,499
C++
.cpp
410
25.495122
156
0.674984
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,521
usb_device.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/usb_device.cpp
#include "stdafx.h" #include "Emu/System.h" #include "Emu/Cell/lv2/sys_usbd.h" #include "Emu/Io/usb_device.h" #include "Utilities/StrUtil.h" #include <libusb.h> LOG_CHANNEL(sys_usbd); extern void LIBUSB_CALL callback_transfer(struct libusb_transfer* transfer); ////////////////////////////////////////////////////////...
10,562
C++
.cpp
280
35.45
199
0.693367
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
5,522
TopShotElite.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/TopShotElite.cpp
#include "stdafx.h" #include "TopShotElite.h" #include "MouseHandler.h" #include "Emu/IdManager.h" #include "Emu/Io/topshotelite_config.h" #include "Emu/Cell/lv2/sys_usbd.h" #include "Emu/system_config.h" #include "Input/pad_thread.h" LOG_CHANNEL(topshotelite_log); #define TSE_CALIB_LOG false // 0 < Calib_Top < Calib...
11,912
C++
.cpp
354
30.884181
160
0.677063
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,523
pad_config_types.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/pad_config_types.cpp
#include "stdafx.h" #include "pad_config_types.h" template <> void fmt_class_string<pad_handler>::format(std::string& out, u64 arg) { format_enum(out, arg, [](pad_handler value) { switch (value) { case pad_handler::null: return "Null"; case pad_handler::keyboard: return "Keyboard"; case pad_handler::ds3: r...
1,081
C++
.cpp
42
23.547619
77
0.723671
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
5,524
recording_config.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/recording_config.cpp
#include "stdafx.h" #include "recording_config.h" #include <charconv> LOG_CHANNEL(cfg_log, "CFG"); cfg_recording g_cfg_recording; cfg_recording::cfg_recording() : cfg::node() #ifdef _WIN32 , path(fs::get_config_dir() + "config/recording.yml") #else , path(fs::get_config_dir() + "recording.yml") #endif { } bool c...
850
C++
.cpp
34
23.205882
93
0.69802
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,525
RB3MidiKeyboard.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/RB3MidiKeyboard.cpp
// Rock Band 3 MIDI Pro Adapter Emulator (Keyboard Mode) #include "stdafx.h" #include "RB3MidiKeyboard.h" #include "Emu/Cell/lv2/sys_usbd.h" LOG_CHANNEL(rb3_midi_keyboard_log); usb_device_rb3_midi_keyboard::usb_device_rb3_midi_keyboard(const std::array<u8, 7>& location, const std::string& device_name) : usb_device_...
9,700
C++
.cpp
311
28.40836
165
0.677406
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,526
rb3drums_config.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/rb3drums_config.cpp
#include "stdafx.h" #include "rb3drums_config.h" #include <charconv> LOG_CHANNEL(cfg_log, "CFG"); cfg_rb3drums g_cfg_rb3drums; cfg_rb3drums::cfg_rb3drums() : cfg::node() #ifdef _WIN32 , path(fs::get_config_dir() + "config/rb3drums.yml") #else , path(fs::get_config_dir() + "rb3drums.yml") #endif { } boo...
869
C++
.cpp
37
21.432432
92
0.686513
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,527
RB3MidiDrums.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/RB3MidiDrums.cpp
// Rock Band 3 MIDI Pro Adapter Emulator (drums Mode) #include "stdafx.h" #include "RB3MidiDrums.h" #include "Emu/Cell/lv2/sys_usbd.h" #include "Emu/Io/rb3drums_config.h" using namespace std::chrono_literals; LOG_CHANNEL(rb3_midi_drums_log); namespace controller { // Bit flags by byte index. constexpr usz FLAG = ...
24,269
C++
.cpp
724
31.120166
170
0.679708
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,528
midi_config_types.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/midi_config_types.cpp
#include "stdafx.h" #include "midi_config_types.h" #include "Utilities/StrUtil.h" #include "Utilities/Config.h" template <> void fmt_class_string<midi_device_type>::format(std::string& out, u64 arg) { format_enum(out, arg, [](midi_device_type value) { switch (value) { case midi_device_type::guitar: return "Gui...
1,215
C++
.cpp
42
26.5
107
0.692839
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,529
usio.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/usio.cpp
// v406 USIO emulator #include "stdafx.h" #include "usio.h" #include "Input/pad_thread.h" #include "Emu/Io/usio_config.h" #include "Emu/IdManager.h" LOG_CHANNEL(usio_log, "USIO"); template <> void fmt_class_string<usio_btn>::format(std::string& out, u64 arg) { format_enum(out, arg, [](usio_btn value) { switch (v...
21,234
C++
.cpp
615
30.886179
2,345
0.65512
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,530
mouse_config.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/mouse_config.cpp
#include "stdafx.h" #include "mouse_config.h" #include "MouseHandler.h" #include "Utilities/File.h" mouse_config::mouse_config() #ifdef _WIN32 : cfg_name(fs::get_config_dir() + "config/config_mouse.yml") #else : cfg_name(fs::get_config_dir() + "config_mouse.yml") #endif { } bool mouse_config::exist() const { retur...
1,283
C++
.cpp
53
22.320755
73
0.72154
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,531
pad_types.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/pad_types.cpp
#include "stdafx.h" #include "pad_types.h" #include "Emu/system_config.h" #include "Emu/RSX/Overlays/overlay_message.h" template <> void fmt_class_string<pad_button>::format(std::string& out, u64 arg) { format_enum(out, arg, [](pad_button value) { switch (value) { case pad_button::dpad_up: return "D-Pad Up"; ...
9,634
C++
.cpp
221
40.855204
160
0.737386
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,532
usb_vfs.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/usb_vfs.cpp
#include "stdafx.h" #include "usb_vfs.h" LOG_CHANNEL(usb_vfs); usb_device_vfs::usb_device_vfs(const cfg::device_info& device_info, const std::array<u8, 7>& location) : usb_device_emulated(location) { const auto [vid, pid] = device_info.get_usb_ids(); device = UsbDescriptorNode(USB_DESCRIPTOR_DEVICE, UsbDeviceDe...
1,705
C++
.cpp
55
27.709091
102
0.729433
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,533
KeyboardHandler.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/KeyboardHandler.cpp
#include "stdafx.h" #include "KeyboardHandler.h" #include "Utilities/StrUtil.h" LOG_CHANNEL(input_log, "Input"); template <> void fmt_class_string<CellKbMappingType>::format(std::string& out, u64 arg) { format_enum(out, arg, [](CellKbMappingType value) { switch (value) { case CELL_KB_MAPPING_101: return "Engl...
9,807
C++
.cpp
309
28.168285
127
0.685853
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,534
GHLtar.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/GHLtar.cpp
// Guitar Hero Live controller emulator #include "stdafx.h" #include "GHLtar.h" #include "Emu/Cell/lv2/sys_usbd.h" #include "Emu/Io/ghltar_config.h" #include "Input/pad_thread.h" LOG_CHANNEL(ghltar_log, "GHLTAR"); template <> void fmt_class_string<ghltar_btn>::format(std::string& out, u64 arg) { format_enum(out, ar...
5,851
C++
.cpp
187
28.203209
174
0.669208
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
5,535
MouseHandler.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/MouseHandler.cpp
#include "stdafx.h" #include "MouseHandler.h" #include "Emu/System.h" #include "util/serialization.hpp" #include <algorithm> MouseHandlerBase::MouseHandlerBase(utils::serial* ar) { if (!ar) { return; } (*ar)(m_info.max_connect); if (m_info.max_connect) { Emu.PostponeInitCode([this]() { Init(m_info.ma...
3,342
C++
.cpp
133
22.398496
134
0.685984
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,536
Skylander.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/Skylander.cpp
#include "stdafx.h" #include "Skylander.h" #include "Emu/Cell/lv2/sys_usbd.h" #include "util/asm.hpp" LOG_CHANNEL(skylander_log, "skylander"); sky_portal g_skyportal; void skylander::save() { if (!sky_file) { skylander_log.error("Tried to save skylander to file but no skylander is active!"); return; } { ...
8,331
C++
.cpp
317
23.126183
200
0.654319
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
5,537
interception.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/interception.cpp
#include "stdafx.h" #include "interception.h" #include "KeyboardHandler.h" #include "MouseHandler.h" #include "Input/pad_thread.h" #include "Emu/IdManager.h" #include "Emu/RSX/Overlays/overlay_message.h" #include "Emu/system_config.h" LOG_CHANNEL(input_log, "Input"); template <> void fmt_class_string<input::active_mo...
2,759
C++
.cpp
74
34.716216
170
0.752809
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,538
Buzz.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/Buzz.cpp
// Buzz! buzzer emulator #include "stdafx.h" #include "Buzz.h" #include "Emu/Cell/lv2/sys_usbd.h" #include "Emu/Io/buzz_config.h" #include "Input/pad_thread.h" LOG_CHANNEL(buzz_log, "BUZZ"); template <> void fmt_class_string<buzz_btn>::format(std::string& out, u64 arg) { format_enum(out, arg, [](buzz_btn value) { ...
5,396
C++
.cpp
171
28.374269
152
0.64438
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,539
TopShotFearmaster.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/TopShotFearmaster.cpp
#include "stdafx.h" #include "TopShotFearmaster.h" #include "MouseHandler.h" #include "Emu/IdManager.h" #include "Emu/Io/topshotfearmaster_config.h" #include "Emu/Cell/lv2/sys_usbd.h" #include "Emu/system_config.h" #include "Input/pad_thread.h" LOG_CHANNEL(topshotfearmaster_log); #define TSF_CALIB_LOG false // 0 < Ca...
12,952
C++
.cpp
376
31.694149
165
0.684122
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,540
PadHandler.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/PadHandler.cpp
#include "stdafx.h" #include "PadHandler.h" #include "Emu/system_utils.hpp" #include "Emu/system_config.h" #include "Input/pad_thread.h" #include "Input/product_info.h" cfg_input g_cfg_input; PadHandlerBase::PadHandlerBase(pad_handler type) : m_type(type) { } std::set<u32> PadHandlerBase::narrow_set(const std::set<u...
27,708
C++
.cpp
650
39.909231
231
0.70751
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,541
Dimensions.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/Dimensions.cpp
#include "stdafx.h" #include "Dimensions.h" #include <bit> #include <thread> #include "Crypto/aes.h" #include "Crypto/sha1.h" #include "util/asm.hpp" #include "Emu/Cell/lv2/sys_usbd.h" LOG_CHANNEL(dimensions_log, "dimensions"); dimensions_toypad g_dimensionstoypad; static constexpr std::array<u8, 16> COMMAND_KEY ...
22,438
C++
.cpp
605
34.690909
158
0.691193
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,542
camera_config.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/camera_config.cpp
#include "stdafx.h" #include "camera_config.h" #include <charconv> LOG_CHANNEL(camera_log, "Camera"); cfg_camera g_cfg_camera; cfg_camera::cfg_camera() : cfg::node() #ifdef _WIN32 , path(fs::get_config_dir() + "config/camera.yml") #else , path(fs::get_config_dir() + "camera.yml") #endif { } bool cfg_camera::load...
2,706
C++
.cpp
103
24.029126
99
0.66383
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,543
GunCon3.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/GunCon3.cpp
#include "stdafx.h" #include "GunCon3.h" #include "MouseHandler.h" #include "Emu/IdManager.h" #include "Emu/Io/guncon3_config.h" #include "Emu/Cell/lv2/sys_usbd.h" #include "Emu/system_config.h" #include "Input/pad_thread.h" LOG_CHANNEL(guncon3_log); template <> void fmt_class_string<guncon3_btn>::format(std::string&...
9,270
C++
.cpp
257
33.330739
155
0.662618
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,544
GameTablet.cpp
RPCS3_rpcs3/rpcs3/Emu/Io/GameTablet.cpp
#include "stdafx.h" #include "GameTablet.h" #include "MouseHandler.h" #include "Emu/IdManager.h" #include "Emu/Cell/lv2/sys_usbd.h" #include "Emu/system_config.h" #include "Input/pad_thread.h" LOG_CHANNEL(gametablet_log); #pragma pack(push, 1) struct GameTablet_data { uint8_t btn_square : 1; uint8_t btn_cross : 1; ...
8,236
C++
.cpp
288
25.305556
158
0.656814
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,545
audio_resampler.cpp
RPCS3_rpcs3/rpcs3/Emu/Audio/audio_resampler.cpp
#include "stdafx.h" #include "Emu/Audio/audio_resampler.h" #include <algorithm> audio_resampler::audio_resampler() { resampler.setSetting(SETTING_SEQUENCE_MS, 20); // Resampler frame size (reduce latency at cost of slight sound quality degradation) resampler.setSetting(SETTING_USE_QUICKSEEK, 1); // Use fast quick se...
1,511
C++
.cpp
46
31.304348
132
0.773352
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
5,546
AudioBackend.cpp
RPCS3_rpcs3/rpcs3/Emu/Audio/AudioBackend.cpp
#include "stdafx.h" #include "AudioBackend.h" #include "Emu/system_config.h" #include "Emu/IdManager.h" #include "Emu//Cell/Modules/cellAudioOut.h" AudioBackend::AudioBackend() {} void AudioBackend::SetWriteCallback(std::function<u32(u32 /* byte_cnt */, void* /* buffer */)> cb) { std::lock_guard lock(m_cb_mutex); m...
6,063
C++
.cpp
175
32.508571
144
0.72614
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,547
AudioDumper.cpp
RPCS3_rpcs3/rpcs3/Emu/Audio/AudioDumper.cpp
#include "stdafx.h" #include "AudioDumper.h" #include "Utilities/date_time.h" #include "Emu/System.h" #include <bit> AudioDumper::AudioDumper() { } AudioDumper::~AudioDumper() { Close(); } void AudioDumper::Open(AudioChannelCnt ch, AudioFreq sample_rate, AudioSampleSize sample_size) { Close(); m_header = WAVHe...
1,966
C++
.cpp
76
23.026316
105
0.648188
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,548
cubeb_enumerator.cpp
RPCS3_rpcs3/rpcs3/Emu/Audio/Cubeb/cubeb_enumerator.cpp
#include "Emu/Audio/Cubeb/cubeb_enumerator.h" #include "util/logs.hpp" #include <algorithm> #ifdef _WIN32 #include <Windows.h> #include <system_error> #endif LOG_CHANNEL(cubeb_dev_enum); cubeb_enumerator::cubeb_enumerator() : audio_device_enumerator() { #ifdef _WIN32 // Cubeb requires COM to be initialized on the t...
2,453
C++
.cpp
94
23.62766
135
0.701709
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,549
CubebBackend.cpp
RPCS3_rpcs3/rpcs3/Emu/Audio/Cubeb/CubebBackend.cpp
#include "Emu/Audio/Cubeb/CubebBackend.h" #include <algorithm> #include "util/logs.hpp" #include "Emu/Audio/audio_device_enumerator.h" #ifdef _WIN32 #include <Windows.h> #include <system_error> #endif LOG_CHANNEL(Cubeb); CubebBackend::CubebBackend() : AudioBackend() { #ifdef _WIN32 // Cubeb requires COM to be ini...
13,751
C++
.cpp
467
26.912206
188
0.706396
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,550
xaudio2_enumerator.cpp
RPCS3_rpcs3/rpcs3/Emu/Audio/XAudio2/xaudio2_enumerator.cpp
#ifndef _WIN32 #error "XAudio2 can only be built on Windows." #endif #include "Emu/Audio/XAudio2/xaudio2_enumerator.h" #include "util/logs.hpp" #include "Utilities/StrUtil.h" #include <algorithm> #include <wrl/client.h> #include <Windows.h> #include <system_error> #include <mmdeviceapi.h> #include <Functiondiscoveryk...
4,310
C++
.cpp
127
30.84252
146
0.692807
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,551
XAudio2Backend.cpp
RPCS3_rpcs3/rpcs3/Emu/Audio/XAudio2/XAudio2Backend.cpp
#ifndef _WIN32 #error "XAudio2 can only be built on Windows." #endif #include <algorithm> #include "util/logs.hpp" #include "Emu/System.h" #include "Emu/Audio/audio_device_enumerator.h" #include "Utilities/StrUtil.h" #include "XAudio2Backend.h" #include <Windows.h> #include <system_error> #ifndef XAUDIO2_USE_DEFAULT...
11,471
C++
.cpp
344
30.906977
167
0.72459
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,552
FAudioBackend.cpp
RPCS3_rpcs3/rpcs3/Emu/Audio/FAudio/FAudioBackend.cpp
#ifndef HAVE_FAUDIO #error "FAudio support disabled but still being built." #endif #include "stdafx.h" #include "FAudioBackend.h" #include "Emu/system_config.h" #include "Emu/System.h" #include "Emu/Audio/audio_device_enumerator.h" #include "Utilities/StrUtil.h" LOG_CHANNEL(FAudio_, "FAudio"); FAudioBackend::FAudioB...
7,209
C++
.cpp
223
29.982063
161
0.734815
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,553
faudio_enumerator.cpp
RPCS3_rpcs3/rpcs3/Emu/Audio/FAudio/faudio_enumerator.cpp
#ifndef HAVE_FAUDIO #error "FAudio support disabled but still being built." #endif #include "Emu/Audio/FAudio/faudio_enumerator.h" #include <array> #include <algorithm> #include "Utilities/StrUtil.h" #include "util/logs.hpp" LOG_CHANNEL(faudio_dev_enum); faudio_enumerator::faudio_enumerator() : audio_device_enumerat...
1,951
C++
.cpp
73
24.273973
135
0.700699
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,554
upnp_config.cpp
RPCS3_rpcs3/rpcs3/Emu/NP/upnp_config.cpp
#include "stdafx.h" #include "upnp_config.h" #include "Utilities/File.h" LOG_CHANNEL(upnp_cfg_log, "UPNP_CFG"); void cfg_upnp::load() { const std::string path = cfg_upnp::get_path(); fs::file cfg_file(path, fs::read); if (cfg_file) { upnp_cfg_log.notice("Loading UPNP config. Path: %s", path); from_string(cfg...
1,185
C++
.cpp
50
21.88
85
0.683837
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,555
np_requests_gui.cpp
RPCS3_rpcs3/rpcs3/Emu/NP/np_requests_gui.cpp
#include "stdafx.h" #include "Emu/Cell/PPUModule.h" #include "Emu/Cell/lv2/sys_sync.h" #include "Emu/Cell/Modules/cellSysutil.h" #include "Emu/Memory/vm_ptr.h" #include "Emu/IdManager.h" #include "np_handler.h" #include "np_contexts.h" #include "np_helpers.h" #include "np_structs_extra.h" #include "fb_helpers.h" LOG_C...
23,651
C++
.cpp
583
37.001715
289
0.714742
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,556
np_handler.cpp
RPCS3_rpcs3/rpcs3/Emu/NP/np_handler.cpp
#include "stdafx.h" #include "Emu/system_config.h" #include "Emu/NP/np_handler.h" #include "Emu/Cell/PPUModule.h" #include "Emu/Cell/Modules/sceNp.h" #include "Emu/Cell/Modules/sceNp2.h" #include "Emu/Cell/Modules/cellNetCtl.h" #include "Utilities/StrUtil.h" #include "Emu/IdManager.h" #include "Emu/NP/np_structs_extra....
47,852
C++
.cpp
1,415
30.012721
271
0.687847
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,557
upnp_handler.cpp
RPCS3_rpcs3/rpcs3/Emu/NP/upnp_handler.cpp
#include "stdafx.h" #include "upnp_handler.h" #include "util/logs.hpp" #include <miniwget.h> #include <upnpcommands.h> LOG_CHANNEL(upnp_log, "UPNP"); upnp_handler::~upnp_handler() { std::lock_guard lock(m_mutex); for (const auto& [protocol, prot_bindings] : m_bindings) { for (const auto& [internal_port, extern...
4,814
C++
.cpp
144
30.701389
192
0.689715
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,558
signaling_handler.cpp
RPCS3_rpcs3/rpcs3/Emu/NP/signaling_handler.cpp
#include "stdafx.h" #include "Emu/Cell/PPUModule.h" #include "signaling_handler.h" #include "Emu/IdManager.h" #include "Emu/Cell/Modules/cellSysutil.h" #include "np_handler.h" #include "Emu/NP/vport0.h" #include "Emu/NP/np_helpers.h" #ifdef _WIN32 #include <winsock2.h> #include <ws2tcpip.h> #else #include <netinet/in....
22,820
C++
.cpp
711
29.14346
181
0.69374
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,559
rpcn_countries.cpp
RPCS3_rpcs3/rpcs3/Emu/NP/rpcn_countries.cpp
#include "stdafx.h" #include "rpcn_countries.h" namespace countries { const std::array<country_code, 72> g_countries = { country_code{"Japan", "jp"}, country_code{"United States", "us"}, country_code{"Argentina", "ar"}, country_code{"Australia", "au"}, country_code{"Austria", "at"}, country_code{"...
2,654
C++
.cpp
80
29.3875
49
0.61703
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,560
np_notifications.cpp
RPCS3_rpcs3/rpcs3/Emu/NP/np_notifications.cpp
#include "stdafx.h" #include "Emu/Cell/PPUModule.h" #include "Emu/Cell/Modules/cellSysutil.h" #include "Emu/IdManager.h" #include "Emu/NP/np_handler.h" #include "Emu/NP/np_helpers.h" #include "Emu/NP/np_structs_extra.h" #include "Emu/NP/fb_helpers.h" LOG_CHANNEL(rpcn_log, "rpcn"); namespace np { void np_handler::not...
16,158
C++
.cpp
321
46.968847
218
0.739037
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,561
np_gui_cache.cpp
RPCS3_rpcs3/rpcs3/Emu/NP/np_gui_cache.cpp
#include "stdafx.h" #include "util/asm.hpp" #include "np_gui_cache.h" LOG_CHANNEL(np_gui_cache); namespace np { void gui_cache_manager::add_room(const SceNpRoomId& room_id) { std::lock_guard lock(mutex); const auto [room, inserted] = rooms.insert_or_assign(room_id, gui_room_cache{}); if (!inserted) np_gui...
3,377
C++
.cpp
89
34.460674
164
0.696385
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,562
np_requests.cpp
RPCS3_rpcs3/rpcs3/Emu/NP/np_requests.cpp
#include "stdafx.h" #include "Emu/Cell/PPUModule.h" #include "Emu/Cell/lv2/sys_sync.h" #include "Emu/system_config.h" #include "Emu/Cell/Modules/cellSysutil.h" #include "Emu/Memory/vm_ptr.h" #include "Emu/IdManager.h" #include "np_handler.h" #include "np_contexts.h" #include "np_helpers.h" #include "np_structs_extra.h"...
68,735
C++
.cpp
1,503
42.299401
473
0.729873
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,563
fb_helpers.cpp
RPCS3_rpcs3/rpcs3/Emu/NP/fb_helpers.cpp
#include "stdafx.h" #include "np_handler.h" #include "Emu/Cell/lv2/sys_process.h" #include "fb_helpers.h" LOG_CHANNEL(rpcn_log, "rpcn"); namespace np { void BinAttr_to_SceNpMatching2BinAttr(event_data& edata, const BinAttr* bin_attr, SceNpMatching2BinAttr* binattr_info) { binattr_info->id = bin_attr->id(); bi...
29,302
C++
.cpp
562
48.485765
283
0.722907
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
5,564
np_dnshook.cpp
RPCS3_rpcs3/rpcs3/Emu/NP/np_dnshook.cpp
#include "stdafx.h" #include "Emu/NP/np_dnshook.h" #include "Emu/system_config.h" #include "Utilities/StrUtil.h" #include "util/logs.hpp" #include <regex> #ifdef _WIN32 #include <WS2tcpip.h> #else #ifdef __clang__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wold-style-cast" #endif #include <sys/sock...
4,759
C++
.cpp
156
27.25
138
0.619891
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,565
rpcn_client.cpp
RPCS3_rpcs3/rpcs3/Emu/NP/rpcn_client.cpp
#include "stdafx.h" #include <string> #include <mutex> #include <thread> #include <chrono> #include <queue> #include "rpcn_client.h" #include "np_structs_extra.h" #include "Utilities/StrUtil.h" #include "Utilities/Thread.h" #include "Emu/IdManager.h" #include "Emu/System.h" #include "Emu/NP/rpcn_config.h" #include "Emu...
99,899
C++
.cpp
2,469
36.736736
258
0.720208
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
5,566
np_cache.cpp
RPCS3_rpcs3/rpcs3/Emu/NP/np_cache.cpp
#include "stdafx.h" #include <bit> #include "Emu/NP/np_allocator.h" #include "Emu/NP/np_cache.h" #include "Emu/NP/np_helpers.h" LOG_CHANNEL(np_cache); namespace np { memberbin_cache::memberbin_cache(const SceNpMatching2RoomMemberBinAttrInternal* sce_memberbin) { ensure(sce_memberbin && (sce_memberbin->data.ptr |...
11,093
C++
.cpp
300
33.546667
305
0.714192
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
5,567
np_helpers.cpp
RPCS3_rpcs3/rpcs3/Emu/NP/np_helpers.cpp
#include "stdafx.h" #include "util/types.hpp" #include "Utilities/StrUtil.h" #include "np_handler.h" #ifdef _WIN32 #include <WS2tcpip.h> #endif namespace np { std::string ip_to_string(u32 ip_addr) { char ip_str[16]; inet_ntop(AF_INET, &ip_addr, ip_str, sizeof(ip_str)); return std::string(ip_str); } std::s...
3,688
C++
.cpp
100
34.2
171
0.697955
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,568
np_contexts.cpp
RPCS3_rpcs3/rpcs3/Emu/NP/np_contexts.cpp
#include "stdafx.h" #include "np_contexts.h" #include "Emu/Cell/PPUCallback.h" #include "Emu/IdManager.h" #include "Emu/Cell/Modules/cellSysutil.h" LOG_CHANNEL(sceNp2); generic_async_transaction_context::generic_async_transaction_context(const SceNpCommunicationId& communicationId, const SceNpCommunicationPassphrase...
8,724
C++
.cpp
245
33.918367
174
0.760417
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,569
rpcn_config.cpp
RPCS3_rpcs3/rpcs3/Emu/NP/rpcn_config.cpp
#include "stdafx.h" #include "rpcn_config.h" #include "Utilities/File.h" cfg_rpcn g_cfg_rpcn; LOG_CHANNEL(rpcn_log, "rpcn"); void cfg_rpcn::load() { const std::string path = cfg_rpcn::get_path(); fs::file cfg_file(path, fs::read); if (cfg_file) { rpcn_log.notice("Loading RPCN config. Path: %s", path); from_...
4,438
C++
.cpp
169
24.130178
197
0.638383
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,570
np_structs_extra.cpp
RPCS3_rpcs3/rpcs3/Emu/NP/np_structs_extra.cpp
#include "stdafx.h" #include "Emu/System.h" #include <span> #include "np_structs_extra.h" LOG_CHANNEL(sceNp); LOG_CHANNEL(sceNp2); // Helper functions for printing namespace extra_nps { void print_SceNpUserInfo2(const SceNpUserInfo2* user) { sceNp2.warning("SceNpUserInfo2:"); sceNp2.warning("npid: %s", static_...
24,055
C++
.cpp
491
46.002037
134
0.74852
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,571
PSF.cpp
RPCS3_rpcs3/rpcs3/Loader/PSF.cpp
#include "stdafx.h" #include "PSF.h" #include "util/asm.hpp" #include <span> LOG_CHANNEL(psf_log, "PSF"); template <> void fmt_class_string<psf::format>::format(std::string& out, u64 arg) { format_enum(out, arg, [](auto fmt) { switch (fmt) { STR_CASE(psf::format::array); STR_CASE(psf::format::string); ST...
11,032
C++
.cpp
357
27.473389
174
0.651033
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,572
TRP.cpp
RPCS3_rpcs3/rpcs3/Loader/TRP.cpp
#include "stdafx.h" #include "Emu/VFS.h" #include "TRP.h" #include "Crypto/sha1.h" #include "Utilities/StrUtil.h" LOG_CHANNEL(trp_log, "Trophy"); TRPLoader::TRPLoader(const fs::file& f) : trp_f(f) { } bool TRPLoader::Install(std::string_view dest, bool /*show*/) { if (!trp_f) { fs::g_tls_error = fs::error::noen...
4,389
C++
.cpp
183
21.306011
110
0.662665
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
5,573
ELF.cpp
RPCS3_rpcs3/rpcs3/Loader/ELF.cpp
#include "stdafx.h" #include "ELF.h" // ELF loading error information template<> void fmt_class_string<elf_error>::format(std::string& out, u64 arg) { format_enum(out, arg, [](elf_error error) { switch (error) { case elf_error::ok: return "OK"; case elf_error::stream: return "File not found"; case elf_err...
1,081
C++
.cpp
27
37.518519
77
0.734286
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
5,574
TROPUSR.cpp
RPCS3_rpcs3/rpcs3/Loader/TROPUSR.cpp
#include "stdafx.h" #include "Emu/VFS.h" #include "TROPUSR.h" LOG_CHANNEL(trp_log, "Trophy"); enum : u32 { TROPUSR_MAGIC = 0x818F54AD }; std::shared_ptr<rXmlNode> trophy_xml_document::GetRoot() { auto trophy_base = rXmlDocument::GetRoot(); if (!trophy_base) { return nullptr; } if (auto trophy_conf = trophy_...
9,378
C++
.cpp
319
26.893417
159
0.708037
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
5,575
disc.cpp
RPCS3_rpcs3/rpcs3/Loader/disc.cpp
#include "stdafx.h" #include "disc.h" #include "PSF.h" #include "util/logs.hpp" #include "Utilities/StrUtil.h" #include "Emu/System.h" #include "Emu/system_utils.hpp" LOG_CHANNEL(disc_log, "DISC"); namespace disc { disc_type get_disc_type(const std::string& path, std::string& disc_root, std::string& ps3_game_dir) {...
3,825
C++
.cpp
121
27.735537
132
0.62704
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,576
TAR.cpp
RPCS3_rpcs3/rpcs3/Loader/TAR.cpp
#include "stdafx.h" #include "Emu/VFS.h" #include "Emu/System.h" #include "Crypto/unself.h" #include "TAR.h" #include "util/asm.hpp" #include "util/serialization_ext.hpp" #include <charconv> #include <span> LOG_CHANNEL(tar_log, "TAR"); fs::file make_file_view(const fs::file& file, u64 offset, u64 size); // Fil...
15,786
C++
.cpp
569
24.010545
202
0.636128
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,577
PUP.cpp
RPCS3_rpcs3/rpcs3/Loader/PUP.cpp
#include "stdafx.h" #include "Crypto/sha1.h" #include "Crypto/key_vault.h" #include "PUP.h" pup_object::pup_object(fs::file&& file) : m_file(std::move(file)) { if (!m_file) { m_error = pup_error::stream; return; } m_file.seek(0); PUPHeader m_header{}; const usz file_size = m_file.size(); if (!m_file.re...
2,764
C++
.cpp
92
27.413043
154
0.683277
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
5,578
mself.cpp
RPCS3_rpcs3/rpcs3/Loader/mself.cpp
#include "stdafx.h" #include "Utilities/File.h" #include "util/logs.hpp" #include "Emu/VFS.h" #include "mself.hpp" LOG_CHANNEL(mself_log, "MSELF"); bool extract_mself(const std::string& file, const std::string& extract_to) { fs::file mself(file); mself_log.notice("Extracting MSELF file '%s' to directory '%s'..."...
1,801
C++
.cpp
62
26.290323
111
0.67986
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
5,579
JITLLVM.cpp
RPCS3_rpcs3/Utilities/JITLLVM.cpp
#include "util/types.hpp" #include "util/sysinfo.hpp" #include "JIT.h" #include "StrFmt.h" #include "File.h" #include "util/logs.hpp" #include "mutex.h" #include "util/vm.hpp" #include "util/asm.hpp" #include "Crypto/unzip.h" #include <charconv> LOG_CHANNEL(jit_log, "JIT"); #ifdef LLVM_AVAILABLE #include <unordered...
19,368
C++
.cpp
675
25.915556
150
0.68448
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,580
mutex.cpp
RPCS3_rpcs3/Utilities/mutex.cpp
#include "mutex.h" #include "util/asm.hpp" void shared_mutex::imp_lock_shared(u32 val) { ensure(val < c_err); // "shared_mutex underflow" // Try to steal the notification bit if (val & c_sig && m_value.compare_exchange(val, val - c_sig + 1)) { return; } for (int i = 0; i < 10; i++) { if (try_lock_shared(...
3,023
C++
.cpp
152
17.269737
91
0.614134
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
5,581
StrFmt.cpp
RPCS3_rpcs3/Utilities/StrFmt.cpp
#include "StrFmt.h" #include "StrUtil.h" #include "cfmt.h" #include "util/endian.hpp" #include "util/logs.hpp" #include "util/v128.hpp" #include <locale> #include <codecvt> #include <algorithm> #include <string_view> #include "Thread.h" #ifdef _WIN32 #include <Windows.h> #else #include <errno.h> #endif #ifdef _MSC_V...
19,168
C++
.cpp
738
23.283198
160
0.652557
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,582
stack_trace.cpp
RPCS3_rpcs3/Utilities/stack_trace.cpp
#include "stdafx.h" #include "stack_trace.h" #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #include <Windows.h> #define DBGHELP_TRANSLATE_TCHAR #include <DbgHelp.h> #include <codecvt> #else #include <execinfo.h> #endif namespace utils { #ifdef _WIN32 std::string wstr_to_utf8(LPWSTR data, int str_len) {...
3,623
C++
.cpp
126
24.309524
128
0.674108
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,583
cheat_info.cpp
RPCS3_rpcs3/Utilities/cheat_info.cpp
#include "stdafx.h" #include "cheat_info.h" #include "Config.h" #include "StrUtil.h" LOG_CHANNEL(log_cheat, "Cheat"); bool cheat_info::from_str(const std::string& cheat_line) { auto cheat_vec = fmt::split(cheat_line, {"@@@"}, false); s64 val64 = 0; if (cheat_vec.size() != 5 || !try_to_int64(&val64, cheat_vec[2], ...
835
C++
.cpp
26
30.230769
162
0.628892
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
5,584
simple_ringbuf.cpp
RPCS3_rpcs3/Utilities/simple_ringbuf.cpp
#include "Utilities/simple_ringbuf.h" simple_ringbuf::simple_ringbuf(u64 size) { set_buf_size(size); } simple_ringbuf::~simple_ringbuf() { rw_ptr.load(); // Sync } simple_ringbuf::simple_ringbuf(const simple_ringbuf& other) { ctr_state old = other.rw_ptr.load(); for (;;) { buf = other.buf; rw_ptr = old; ...
3,906
C++
.cpp
162
21.709877
70
0.650918
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,585
JITASM.cpp
RPCS3_rpcs3/Utilities/JITASM.cpp
#include "util/types.hpp" #include "util/sysinfo.hpp" #include "JIT.h" #include "StrFmt.h" #include "File.h" #include "util/logs.hpp" #include "util/vm.hpp" #include "util/asm.hpp" #include "util/v128.hpp" #include "util/simd.hpp" #ifdef __linux__ #include <unistd.h> #define CAN_OVERCOMMIT #endif LOG_CHANNEL(jit_log,...
20,404
C++
.cpp
759
24.291173
168
0.642101
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,587
File.cpp
RPCS3_rpcs3/Utilities/File.cpp
#include "File.h" #include "mutex.h" #include "StrFmt.h" #include "StrUtil.h" #include "Crypto/sha1.h" #include <span> #include <unordered_map> #include <algorithm> #include <cstring> #include <map> #include <iostream> #include "util/asm.hpp" #include "util/coro.hpp" using namespace std::literals::string_literals; ...
57,359
C++
.cpp
2,233
22.631885
216
0.654227
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
5,588
rXml.cpp
RPCS3_rpcs3/Utilities/rXml.cpp
#include "stdafx.h" #include "Utilities/rXml.h" rXmlNode::rXmlNode() { } rXmlNode::rXmlNode(const pugi::xml_node& node) { handle = node; } std::shared_ptr<rXmlNode> rXmlNode::GetChildren() { if (handle) { if (const pugi::xml_node child = handle.first_child()) { return std::make_shared<rXmlNode>(child); }...
1,603
C++
.cpp
90
15.511111
95
0.673128
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,589
Config.cpp
RPCS3_rpcs3/Utilities/Config.cpp
#include "stdafx.h" #include "Config.h" #include "util/types.hpp" #include "util/yaml.hpp" #include <charconv> LOG_CHANNEL(cfg_log, "CFG"); template <> void fmt_class_string<cfg::node>::format(std::string& out, u64 arg) { out += get_object(arg).to_string(); } namespace cfg { u32 _base::id_counter = 0; _base::_...
12,676
C++
.cpp
517
21.903288
144
0.629034
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
5,590
Thread.cpp
RPCS3_rpcs3/Utilities/Thread.cpp
#include "stdafx.h" #include "Emu/System.h" #include "Emu/Cell/SPUThread.h" #include "Emu/Cell/PPUThread.h" #include "Emu/Cell/lv2/sys_mmapper.h" #include "Emu/Cell/lv2/sys_event.h" #include "Emu/Cell/lv2/sys_process.h" #include "Emu/RSX/RSXThread.h" #include "Thread.h" #include "Utilities/JIT.h" #include <thread> #inc...
77,975
C++
.cpp
2,856
24.307073
266
0.656769
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
5,591
version.cpp
RPCS3_rpcs3/Utilities/version.cpp
#include "stdafx.h" #include "version.h" #include <regex> namespace utils { std::string to_string(version_type type) { switch (type) { case version_type::pre_alpha: return "Pre-Alpha"; case version_type::alpha: return "Alpha"; case version_type::beta: return "Beta"; case version_type::release_candidate:...
2,060
C++
.cpp
83
21.39759
105
0.585291
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
5,592
sema.cpp
RPCS3_rpcs3/Utilities/sema.cpp
#include "sema.h" #include "util/asm.hpp" void semaphore_base::imp_wait() { for (int i = 0; i < 10; i++) { busy_wait(); const u32 value = m_value.load(); if (value & c_value_mask && m_value.compare_and_swap_test(value, value - c_value)) { return; } } bool waits = false; while (true) { // Try ...
1,353
C++
.cpp
74
15.22973
84
0.59588
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,593
bin_patch.cpp
RPCS3_rpcs3/Utilities/bin_patch.cpp
#include "bin_patch.h" #include "ppu_patch.h" #include "File.h" #include "Config.h" #include "version.h" #include "Emu/IdManager.h" #include "Emu/Memory/vm.h" #include "Emu/System.h" #include "Emu/VFS.h" #include "util/types.hpp" #include "util/asm.hpp" #include <charconv> #include <regex> #include <vector> LOG_CHAN...
63,226
C++
.cpp
1,739
31.654974
306
0.651811
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,594
cond.cpp
RPCS3_rpcs3/Utilities/cond.cpp
#include "cond.h" #include "sync.h" // use constants, increase signal space void cond_variable::imp_wait(u32 _old, u64 _timeout) noexcept { // Not supposed to fail ensure(_old); // Wait with timeout m_value.wait(_old, atomic_wait_timeout{_timeout > max_timeout ? umax : _timeout * 1000}); // Cleanup m_value.at...
1,046
C++
.cpp
47
19.808511
101
0.634343
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
5,596
discord_register.h
RPCS3_rpcs3/3rdparty/discord-rpc/include/discord_register.h
#pragma once #if defined(DISCORD_DYNAMIC_LIB) #if defined(_WIN32) #if defined(DISCORD_BUILDING_SDK) #define DISCORD_EXPORT __declspec(dllexport) #else #define DISCORD_EXPORT __declspec(dllimport) #endif #else #define DISCORD_EXPORT __attribute__((visibility("default"))) #endif #else #define DISCORD_EXPORT #endif #ifd...
566
C++
.h
22
24.545455
94
0.803704
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,597
pine_server.h
RPCS3_rpcs3/3rdparty/pine/pine_server.h
// Based on https://github.com/PCSX2/pcsx2/blob/edeb0d7bd7258c58273cc4a88a9f9a823d71e48c/pcsx2/IPC.h // and https://github.com/PCSX2/pcsx2/blob/edeb0d7bd7258c58273cc4a88a9f9a823d71e48c/pcsx2/IPC.cpp // Relicensed as GPLv2 for use in RPCS3 with permission from copyright owner (Govanify). #pragma once // IPC uses a con...
17,742
C++
.h
576
26.467014
141
0.624671
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,598
user_settings.h
RPCS3_rpcs3/3rdparty/wolfssl/extra/win32/user_settings.h
#ifndef _WIN_USER_SETTINGS_H_ #define _WIN_USER_SETTINGS_H_ /* Verify this is Windows */ #ifndef _WIN32 #error This user_settings.h header is only designed for Windows #endif /* Configurations */ #define WOLFSSL_SYS_CA_CERTS #define WOLFSSL_DES_ECB #define HAVE_FFDHE_2048 #define TFM_TIMING_RESISTANT #define NO_DSA #...
2,164
C++
.h
83
24.963855
69
0.78861
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,599
options.h
RPCS3_rpcs3/3rdparty/curl/extra/wolfssl/options.h
/* options.h.in * * Copyright (C) 2006-2020 wolfSSL Inc. * * This file is part of wolfSSL. * * wolfSSL is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your op...
1,010
C++
.h
30
31.7
80
0.75567
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
true
true
false
false
false
false
false
false
5,603
ffx_fsr1.h
RPCS3_rpcs3/3rdparty/GPUOpen/include/ffx_fsr1.h
//_____________________________________________________________/\_______________________________________________________________ //============================================================================================================================== // // // AMD FidelityFX SUPER RESOLUTION [F...
60,310
C++
.h
1,198
48.060935
169
0.475394
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,605
ffx_a.h
RPCS3_rpcs3/3rdparty/GPUOpen/include/ffx_a.h
//============================================================================================================================== // // [A] SHADER PORTABILITY 1.20210629 // //====================================================================================================...
181,915
C++
.h
2,655
66.449341
187
0.396265
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,606
headless_application.h
RPCS3_rpcs3/rpcs3/headless_application.h
#pragma once #include <QCoreApplication> #include "main_application.h" #include "util/atomic.hpp" #include <functional> /** Headless RPCS3 Application Class * The main point of this class is to do application initialization and initialize callbacks. */ class headless_application : public QCoreApplication, public ...
818
C++
.h
27
28.407407
93
0.778489
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,607
main_application.h
RPCS3_rpcs3/rpcs3/main_application.h
#pragma once #include <string> #include <QWindow> struct EmuCallbacks; class main_application { public: virtual bool Init() = 0; static void InitializeEmulator(const std::string& user, bool show_gui); void SetActiveUser(const std::string& user) { m_active_user = user; } protected: virtual QThread* get_thr...
551
C++
.h
20
25.5
123
0.768199
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,608
stdafx.h
RPCS3_rpcs3/rpcs3/stdafx.h
#pragma once // No BOM and only basic ASCII in this header, or a neko will die #include "util/types.hpp" #include "util/atomic.hpp" #include "util/endian.hpp" #include "Utilities/Config.h" #include "Utilities/StrFmt.h" #include "Utilities/File.h" #include "util/logs.hpp" #include "util/shared_ptr.hpp" #include "util/t...
604
C++
.h
22
26.363636
78
0.774138
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,609
rpcs3_version.h
RPCS3_rpcs3/rpcs3/rpcs3_version.h
#pragma once #include <string> #include <Utilities/version.h> namespace rpcs3 { std::string_view get_branch(); std::string_view get_full_branch(); std::pair<std::string, std::string> get_commit_and_hash(); const ::utils::version& get_version(); std::string get_version_and_branch(); std::string get_verbose_versio...
377
C++
.h
14
25.285714
59
0.732044
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,610
module_verifier.hpp
RPCS3_rpcs3/rpcs3/module_verifier.hpp
#pragma once #ifdef _WIN32 #include <util/types.hpp> // Validates that system modules are properly installed // Only relevant for WIN32 class WIN32_module_verifier { void run_module_verification(); WIN32_module_verifier() = default; public: static void run(); }; #endif // _WIN32
306
C++
.h
13
20.538462
56
0.738516
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
5,612
ds3_pad_handler.h
RPCS3_rpcs3/rpcs3/Input/ds3_pad_handler.h
#pragma once #include "hid_pad_handler.h" #include <unordered_map> namespace reports { struct ds3_rumble { u8 padding = 0x00; u8 small_motor_duration = 0xFF; // 0xff means forever u8 small_motor_on = 0x00; // 0 or 1 (off/on) u8 large_motor_duration = 0xFF; // 0xff means forever u8 larg...
3,638
C++
.h
140
23.485714
182
0.705088
RPCS3/rpcs3
15,204
1,895
1,021
GPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false