Skip to content

Instantly share code, notes, and snippets.

#include <stdbool.h>
#include <stdio.h>
#include <malloc.h>
#include <string.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <3ds.h>
#include "common.h"
static const char* level_to_string(Result res) {
switch(R_LEVEL(res)) {
case RL_SUCCESS:
return "Success";
#remove libretro-common and commit:
rm -rf libretro-common
git add libretro-common
git commit
#add subtree:
git subtree add --prefix libretro-common https://github.com/libretro/libretro-common master --squash
#to update later:
git subtree pull --prefix libretro-common https://github.com/libretro/libretro-common master --squash
#define _POSIX_TIMEOUTS 1
#define _POSIX_THREADS 1
#define _GLIBCXX_HAS_GTHREADS 1
#define _GLIBCXX_GCC_GTHR_SINGLE_H 1
#define _UNIX98_THREAD_MUTEX_ATTRIBUTES 1
#include <errno.h>
#include <stdlib.h>
#include <pthread.h>
#include <wiiu_dbg.h>