Skip to content

Instantly share code, notes, and snippets.

View Subv's full-sized avatar

Sebastian Valle Subv

  • Barranquilla, Colombia
View GitHub Profile
set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_SYSTEM_PROCESSOR aarch64)
set(CMAKE_EXE_LINKER_FLAGS_INIT "-march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE -ftls-model=local-exec -L/opt/devkitpro/portlibs/switch/lib -L/opt/devkitpro/libnx/lib -specs=/opt/devkitpro/libnx/switch.specs")
set(CMAKE_MODULE_LINKER_FLAGS_INIT "${CMAKE_EXE_LINKER_FLAGS_INIT}")
set(CMAKE_REQUIRED_LIBRARIES nx)
set(SWITCH_LIBNX TRUE)
SET(CMAKE_FIND_ROOT_PATH /opt/devkitpro/portlibs/switch/)
@Subv
Subv / RRO.EX2
Created September 1, 2018 22:08 — forked from FernandoS27/RRO.EX2
unsigned int approx(float f) {
float ax = fabs(f);
unsigned int extra = 1;
if (ax >= 128.f) {
ax = 129.f;
extra = 0;
}
double w;
float ax2 = modf(ax, &w);
unsigned int sign = (f < 0.0f) << 31;
diff --git a/src/core/file_sys/vfs_real.cpp b/src/core/file_sys/vfs_real.cpp
index 22c858e0..99deb579 100644
--- a/src/core/file_sys/vfs_real.cpp
+++ b/src/core/file_sys/vfs_real.cpp
@@ -1,7 +1,7 @@
// Copyright 2018 yuzu emulator team
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
-
+#pragma optimize("", off)
@Subv
Subv / .cpp
Last active July 7, 2018 20:13
citra HTTPC context draft
struct Proxy {
std::string url;
std::string username;
std::string password;
u16 port;
};
struct BasicAuth {
std::string username;
std::string password;
@Subv
Subv / install_master.sh
Last active May 31, 2018 14:21
Kubernetes Master node installer script.
#!/bin/bash
# First, install Docker.
echo "Adding Docker APT repository"
sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
sudo apt-get update
@Subv
Subv / Submig GPFifo Call 2
Created April 23, 2018 15:41
Puyo Puyo Tetris GPU Command list log yuzu emulator
[ 201.841446] Service.NVDRV <Warning> core\hle\service\nvdrv\devices\nvhost_gpu.cpp:SubmitGPFIFO:127: (STUBBED) called, gpfifo=1080ac108, num_entries=7, flags=104
[ 230.096599] HW.GPU <Warning> video_core\command_processor.cpp:ProcessCommandList:98: Processing command list
[ 230.097010] HW.GPU <Warning> video_core\command_processor.cpp:ProcessCommandList:106: Processing command (raw: 0x2001C00B) method 0xB mode 0x1 subchannel 0x6 argcount/inlinedata 0x1
[ 230.097119] HW.GPU <Warning> video_core\command_processor.cpp:WriteReg:36: Writing method 0xB on subchannel 0x6 value 0x80000000 remaining params 0
[ 230.097239] HW.GPU <Error> video_core\command_processor.cpp:WriteReg:70: Special buffer methods other than Bind are not implemented
[ 230.097329] HW.GPU <Warning> video_core\command_processor.cpp:ProcessCommandList:106: Processing command (raw: 0x2001C00B) method 0xB mode 0x1 subchannel 0x6 argcount/inlinedata 0x1
[ 230.097445] HW.GPU <Warning> video_core\command_processor.cpp:WriteReg:36: Writing method 0xB on
@Subv
Subv / mysql.yaml
Last active March 18, 2018 06:29
Kubernetes Deployments
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: mysql-deployment
spec:
selector:
matchLabels:
app: mysql
replicas: 1
template: # create pods using pod definition in this template
@Subv
Subv / .diff
Created February 25, 2018 13:53
diff --git a/src/core/hle/service/apt/apt.cpp b/src/core/hle/service/apt/apt.cpp
index 164c5bb6..3965dee5 100644
--- a/src/core/hle/service/apt/apt.cpp
+++ b/src/core/hle/service/apt/apt.cpp
@@ -79,8 +79,18 @@ struct AppletSlotData {
AppletAttributes attributes;
Kernel::SharedPtr<Kernel::Event> notification_event;
Kernel::SharedPtr<Kernel::Event> parameter_event;
+
+ void Reset() {
@Subv
Subv / .cpp
Created December 16, 2017 20:20
for (unsigned i = 0; i < command_buffer->number_commands; ++i) {
g_debugger.GXCommandProcessed((u8*)&command_buffer->commands[i]);
// Decode and execute command
ExecuteCommand(command_buffer->commands[i], thread_id);
// Indicates that command has completed
command_buffer->number_commands.Assign(command_buffer->number_commands - 1);
}
DVLE 0: byte offset to main: 0x00000444", original filename "DVLP"
Got 1 DVLE headers
Constant register info: b0 = false (raw: 0x00000000)
Constant register info: b1 = false (raw: 0x00010000)
Constant register info: b2 = true (raw: 0x00020000)
Constant register info: b3 = true (raw: 0x00030000)
Constant register info: b4 = true (raw: 0x00040000)
Constant register info: b5 = false (raw: 0x00050000)
Constant register info: b6 = false (raw: 0x00060000)
Constant register info: b7 = true (raw: 0x00070000)