Skip to content

Instantly share code, notes, and snippets.

View Subv's full-sized avatar

Sebastian Valle Subv

  • Barranquilla, Colombia
View GitHub Profile
@Subv
Subv / gist:5262431f4d4721ca4d97
Created November 23, 2014 02:18
3DS Region Codes Citra PR Updater
codes = {}
File.readlines("output.txt").each do |line|
data = line.split(" ")
id = data[1]
str = data[3]
codes[id] = [str.to_i().to_s(16)].pack("H*").reverse
end
codes.sort_by { |code, str| code.to_i }.each do |code, str|
puts "Code " + code + " String " + str
@Subv
Subv / gist:3e0cefdd3e267ce883a5
Created December 3, 2014 03:01
010 Editor Nintendo 3DS CIA Template
//--------------------------------------
//--- 010 Editor v5.0 Binary Template
//
// File: 3DSCIATemplate.bt
// Author: Subv
// Revision: 0.1
// Purpose: Parsing .CIA files for the Nintendo 3DS
//--------------------------------------
struct CIAFile
{
@Subv
Subv / gist:64c55aacc2f9e57b25d9
Last active August 29, 2015 14:10
3DS Error Codes extractor
#!/usr/bin/python2
# Convert 3DS errors to readable format
# plutooo
import sys
descs = {
0: 'Success',
2: 'Invalid memory permissions (kernel)',
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp
index 06de6af..ee82319 100644
--- a/src/video_core/renderer_opengl/renderer_opengl.cpp
+++ b/src/video_core/renderer_opengl/renderer_opengl.cpp
@@ -211,6 +211,9 @@ void RendererOpenGL::DrawScreens() {
DrawSingleScreenRotated(textures[0], top_x, 0,
(float)VideoCore::kScreenTopWidth, (float)VideoCore::kScreenTopHeight);
+
+ glFlush();
@Subv
Subv / gist:e98f5e2947fd25f86329
Last active August 29, 2015 14:11
HWTests patch
diff --git a/source/tests/fs/fs_sdmc.cpp b/source/tests/fs/fs_sdmc.cpp
index 6ecb27a..26326b5 100644
--- a/source/tests/fs/fs_sdmc.cpp
+++ b/source/tests/fs/fs_sdmc.cpp
@@ -1,5 +1,7 @@
#include <memory>
+#include <string.h>
#include <3ds.h>
+#include "output.h"
diff --git a/src/core/hle/service/soc_u.cpp b/src/core/hle/service/soc_u.cpp
index 4a96f71..18696be 100644
--- a/src/core/hle/service/soc_u.cpp
+++ b/src/core/hle/service/soc_u.cpp
@@ -8,10 +8,6 @@
#include <winsock2.h>
#include <ws2tcpip.h>
#include <unordered_map>
-
-#define WSAEAGAIN WSAEWOULDBLOCK
diff --git a/src/citra_qt/debugger/graphics_framebuffer.cpp b/src/citra_qt/debugger/graphics_framebuffer.cpp
index 93d7ac3..c21376f 100644
--- a/src/citra_qt/debugger/graphics_framebuffer.cpp
+++ b/src/citra_qt/debugger/graphics_framebuffer.cpp
@@ -242,6 +242,42 @@ void GraphicsFramebufferWidget::OnUpdate()
break;
}
+ case Format::RGB565:
+ {
diff --git a/src/core/hle/service/cfg_u.cpp b/src/core/hle/service/cfg_u.cpp
index 2e9d7bf..6c2323a 100644
--- a/src/core/hle/service/cfg_u.cpp
+++ b/src/core/hle/service/cfg_u.cpp
@@ -2,7 +2,9 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
+#include "common/file_util.h"
#include "common/log.h"
diff --git a/externals/boost b/externals/boost
--- a/externals/boost
+++ b/externals/boost
@@ -1 +1 @@
-Subproject commit 97052c28acb141dbf3c5e14114af99045344b695
+Subproject commit 97052c28acb141dbf3c5e14114af99045344b695-dirty
diff --git a/externals/nihstro b/externals/nihstro
index fc71f86..0a8b4d2 160000
--- a/externals/nihstro
+++ b/externals/nihstro
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index 872df2d..dd31fb5 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -11,6 +11,7 @@
#include "common/thread_queue_list.h"
#include "core/core.h"
+#include "core/core_timing.h"
#include "core/hle/hle.h"