summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorzlago2025-02-11 13:36:04 +0100
committerzlago2025-02-11 13:36:04 +0100
commitc3579a3f8784ad49d081dc8347bbcadacc0829a2 (patch)
tree1a2a91daaac17d95484f092f81cf5c4d0ebb1269 /src/common
parent4efa9f571e84cda3741e524fb21a3a22cdbc13fb (diff)
add support for organya (.org) modules
by porting https://github.com/alula/organya-js/ to c
Diffstat (limited to 'src/common')
-rw-r--r--src/common/common.c2
-rw-r--r--src/common/common.h1
2 files changed, 3 insertions, 0 deletions
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);