Skip to content

Instantly share code, notes, and snippets.

View XorTroll's full-sized avatar
💾
Playing around with C++ and homebrew

XorTroll XorTroll

💾
Playing around with C++ and homebrew
View GitHub Profile
@XorTroll
XorTroll / Main.cpp
Created December 13, 2019 23:34
RomFs issue test
#include <switch.h>
#include <malloc.h>
#include <cstdio>
#include <sys/stat.h>
#include <dirent.h>
#include <cstring>
#include <iomanip>
#include <algorithm>
#include <string>
@XorTroll
XorTroll / Example.cpp
Last active April 14, 2019 03:03
IPC C++ template-based system for libnx (ported Biosphere's system) -> IPC++
// IPC++ comparison against regular IPC
#include "IPC++.hpp"
// libnx based
Result fsOpenBisStorage(FsStorage* out, u32 PartitionId) {
IpcCommand c;
ipcInitialize(&c);
@XorTroll
XorTroll / EasyPrinting.h
Last active July 12, 2018 19:07
Easy C++ libnx printing functions/macros
/*
Easy C++ libnx printing functions/macros by XorTroll!
Be free to include this in your console homebrew app.
Examples:
- Print simple text (no color):
Print("text", CONSOLE_RESET);