Skip to content

Instantly share code, notes, and snippets.

View hax0kartik's full-sized avatar

Kartik hax0kartik

View GitHub Profile
@hax0kartik
hax0kartik / main.c
Last active April 7, 2018 03:05
Code to get the pointers required for firmlaunchhax
#include <3ds.h>
#include <stdio.h>
#include "csvc.h"
#define PA_PTR(addr) (void *)((u32)(addr) | 1 << 31)
int main()
{
gfxInitDefault();
consoleInit(GFX_TOP, NULL);
#include <3ds.h>
#include <stdio.h>
#include <string.h>
#include <wchar.h>
static Handle frdHandle;
static int frdRefCount;
static Handle s_terminate;