diff options
author | zlago | 2025-02-11 13:36:04 +0100 |
---|---|---|
committer | zlago | 2025-02-11 13:36:04 +0100 |
commit | c3579a3f8784ad49d081dc8347bbcadacc0829a2 (patch) | |
tree | 1a2a91daaac17d95484f092f81cf5c4d0ebb1269 /src/common | |
parent | 4efa9f571e84cda3741e524fb21a3a22cdbc13fb (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.c | 2 | ||||
-rw-r--r-- | src/common/common.h | 1 |
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); |