From 775b6861666af36d317fb577cf489e2c6377f878 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Fri, 14 Oct 2022 23:15:32 +0100 Subject: add tons of stuff --- unsorted/StaticParserGlue.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 unsorted/StaticParserGlue.c (limited to 'unsorted/StaticParserGlue.c') 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); +} -- cgit v1.2.3