Core additions since initial commit: - Platform-split MIDI (midi_linux.c / midi_windows.c) - Patch system: save/load/scan, subdirectory navigation, favourites - Config system: last MIDI device and CC mappings persisted to disk - Custom embedded pixel font and sprite sheet (no loose asset files at runtime) - Window icon embedded at runtime (SetWindowIcon) and in Windows .exe (windres) - chdirToExeDir() in platform.c so double-click launch finds patches/ correctly - About screen accessible from Master panel UI polish: - TITLE_BAR_H constant (20 px) — sprite buttons now fit inside title bars - All title bar text, button overlay text, and close/active labels vertically centred - Full-screen dim overlay computed from camera transform (no more partial coverage) - Patch browser: folder navigation, breadcrumb title, 256-slot limit lifted Build: - Makefile auto-discovers sources; embeds sprites/font/icon via xxd rules - Windows cross-compile: make PLATFORM=windows (mingw-w64 + windres) - windows.h isolated in platform.c to avoid Rectangle/CloseWindow conflicts with raylib.h - WIN_RES uses lazy = assignment so OBJ_DIR expands correctly for windres output path Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
600 B
C
20 lines
600 B
C
#ifndef PATCH_H
|
|
#define PATCH_H
|
|
|
|
#include "synth.h"
|
|
|
|
#define PATCH_NAME_LEN 64
|
|
#define PATCH_MAX_FILES 256
|
|
#define PATCH_MAX_DIRS 64
|
|
|
|
int patchSave(Synth *s, const char *path);
|
|
int patchLoad(Synth *s, const char *path);
|
|
int patchScanFiles(char (*files)[PATCH_NAME_LEN], int maxFiles);
|
|
int patchScanDir(const char *relPath,
|
|
char (*files)[PATCH_NAME_LEN], int maxFiles,
|
|
char (*dirs)[PATCH_NAME_LEN], int maxDirs, int *outDirCount);
|
|
int patchLoadFavs(char (*favs)[PATCH_NAME_LEN], int maxFavs);
|
|
int patchSaveFavs(char (*favs)[PATCH_NAME_LEN], int favCount);
|
|
|
|
#endif
|