summaryrefslogtreecommitdiff
path: root/unsorted/StaticParserGlue.c
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2022-10-14 23:15:32 +0100
committerAsh Wolf <ninji@wuffs.org>2022-10-14 23:15:32 +0100
commit775b6861666af36d317fb577cf489e2c6377f878 (patch)
tree2ae8c829eb861c85a6e2b5acf42f51919a0d78f2 /unsorted/StaticParserGlue.c
parentb8df05413a4e8b299de07b915cddce73a3bb16e3 (diff)
downloadMWCC-775b6861666af36d317fb577cf489e2c6377f878.tar.gz
MWCC-775b6861666af36d317fb577cf489e2c6377f878.zip
add tons of stuff
Diffstat (limited to '')
-rw-r--r--unsorted/StaticParserGlue.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/unsorted/StaticParserGlue.c b/unsorted/StaticParserGlue.c
new file mode 100644
index 0000000..4673c27
--- /dev/null
+++ b/unsorted/StaticParserGlue.c
@@ -0,0 +1,28 @@
+#include "mwcc_decomp.h"
+
+static BasePluginCallbacks cb = {
+ parser_main,
+ CWParser_GetDropInFlags,
+ CWParser_GetDisplayName,
+ CWParser_GetDropInName,
+ CWParser_GetPanelList,
+ NULL,
+ NULL,
+ CWParser_GetVersionInfo,
+ NULL
+};
+
+static ParserPluginCallbacks pr_cb = {
+ Parser_SupportsPlugin,
+ Parser_SupportsPanels
+};
+
+int RegisterStaticParserPlugins() {
+ return RegisterStaticParserPlugin(&cb, &pr_cb);
+}
+
+#include "ParserErrors.r"
+
+int RegisterStaticParserResources() {
+ return RegisterResource("Parser Strings", 12010, STR12010);
+}