#ifndef __COMMON_H
#define __COMMON_H
-#include "std/types.h"
-#include "std/draw.h"
-#include "std/fs.h"
-#include "std/memory.h"
-#include "std/abort.h"
-#include "std/unused.h"
+#include <std/unused.h>
+#include <std/abort.h>
-#include "firm/fcram.h"
-#include "firm/headers.h"
+#include <std/types.h>
-#include "patch_format.h"
-#include "config.h"
-#include "input.h"
-#include "patcher.h"
+#include <patch_format.h>
-#endif
+#include <std/memory.h>
+#include <std/fs.h>
+#include <std/draw.h>
+
+#include <firm/headers.h>
+#include <firm/fcram.h>
+#include <firm/decryptor.h>
+#include <firm/firm.h>
-#include
-<patch/emunand.h>
-#include
-<patch/patch_file.h>
-#include
-<std/memory.h>
-#include
-<std/draw.h>
-#include
-<std/abort.h>
-#include
-<std/types.h>
-#include
-<std/fs.h>
-#include
-<std/unused.h>
-#include
-<firm/decryptor.h>
-#include
-<firm/headers.h>
-#include
-<firm/firm.h>
-#include
-<firm/fcram.h>
-#include
-<screeninit.h>
-#include
-<interrupt.h>
-#include
-<config.h>
-#include
-<input.h>
-#include
-<interp.h>
-#include
-<patch_format.h>
-#include <common.h>
+#include <screeninit.h>
+#include <interrupt.h>
+#include <config.h>
+#include <input.h>
+#include <interp.h>
#include <patcher.h>
+
+#include <patch/patch_file.h>
+#include <patch/emunand.h>
+
+#endif
#include <stdint.h>
#include <stddef.h>
-#include "../std/unused.h"
-
extern void *fcram_temp;
// Space between most of the locations
#ifndef __FIRM_H
#include <stdint.h>
-#include "headers.h"
enum consoles
{
#ifndef __INTERP_H
#define __INTERP_H
-uint8_t *execb(char *filename, int cache);
-int exec_bytecode(uint8_t *bytecode, uint32_t len, int debug);
+int execb(char *filename, int build_cache);
+int exec_bytecode(uint8_t *bytecode, uint32_t len, uint8_t* stack, uint32_t stack_size, uint16_t ver, int debug);
#endif
#include <stdint.h>
// Build patch into CFW instead of as module.
-#include "../std/unused.h"
-#include "../std/memory.h"
-#include "../firm/firm.h"
-#include "../firm/fcram.h"
-#include "../config.h"
-#include "../common.h"
-#include "../interp.h"
-
#define PATCH(name) int patch_##name()
#endif
screen_bottom
};
-#include "unused.h"
-
_UNUSED static struct framebuffers
{
uint8_t *top_left;
#ifndef __STD_FS_H
#define __STD_FS_H
-#include "types.h"
-#include "memory.h"
#include <ctr9/io.h>
#define MAX_FILES_OPEN 64