From c3579a3f8784ad49d081dc8347bbcadacc0829a2 Mon Sep 17 00:00:00 2001 From: zlago Date: Tue, 11 Feb 2025 13:36:04 +0100 Subject: add support for organya (.org) modules by porting https://github.com/alula/organya-js/ to c --- src/common/common.c | 2 ++ src/common/common.h | 1 + 2 files changed, 3 insertions(+) (limited to 'src/common') diff --git a/src/common/common.c b/src/common/common.c index 8628cd2..840df50 100644 --- a/src/common/common.c +++ b/src/common/common.c @@ -12,6 +12,8 @@ int (*file_ext(char *file))(struct blob *, struct userdata *) { return module_openmpt; } else if ((ext(".mid") && ext(".MID") && ext(".midi")) == 0) { return module_fluidsynth; + } else if ((ext(".org") && ext(".ORG")) == 0) { + return module_organya; } #undef ext return NULL; diff --git a/src/common/common.h b/src/common/common.h index 806212a..7089c17 100644 --- a/src/common/common.h +++ b/src/common/common.h @@ -5,3 +5,4 @@ struct blob load_file(char const *const name); int module_openmpt(struct blob *file, struct userdata *userdata); int module_fluidsynth(struct blob *file, struct userdata *userdata); +int module_organya(struct blob *file, struct userdata *userdata); -- cgit v1.2.3