#pragma once #include "ticapi.h" #include "ext/file_dialog.h" typedef struct { void (*setClipboardText)(const char* text); bool (*hasClipboardText)(); char* (*getClipboardText)(); u64 (*getPerformanceCounter)(); u64 (*getPerformanceFrequency)(); void* (*getUrlRequest)(const char* url, s32* size); void (*fileDialogLoad)(file_dialog_load_callback callback, void* data); void (*fileDialogSave)(file_dialog_save_callback callback, const char* name, const u8* buffer, size_t size, void* data, u32 mode); void (*goFullscreen)(); void (*showMessageBox)(const char* title, const char* message); void (*setWindowTitle)(const char* title); void (*openSystemPath)(const char* path); } System; typedef struct { tic_mem* tic; bool quit; void (*tick)(void* pixels); void (*exit)(); void (*close)(); void (*updateProject)(); } Studio; TIC80_API Studio* studioInit(s32 argc, char **argv, s32 samplerate, const char* appFolder, System* system);