GodMode9/source/utils/scripting.h
d0k3 5f0ab648aa Scripting: Live preview for scripts
This commit also adds limited syntax highlighting for scripts
2017-09-06 00:46:01 +02:00

14 lines
410 B
C

#pragma once
#include "common.h"
#define VAR_BUFFER_SIZE (72 * 1024) // enough for exactly 256 vars
#define SCRIPT_EXT "gm9"
#define SCRIPT_MAX_SIZE (SCRIPT_BUFFER_SIZE-VAR_BUFFER_SIZE-1)
bool ValidateText(const char* text, u32 size);
bool MemTextViewer(const char* text, u32 len, bool as_script);
bool FileTextViewer(const char* path, bool as_script);
bool ExecuteGM9Script(const char* path_script);