diff --git a/.hemtt/hooks/post_build/set_is_dev.rhai b/.hemtt/hooks/post_build/set_is_dev.rhai new file mode 100644 index 0000000..fefaabe --- /dev/null +++ b/.hemtt/hooks/post_build/set_is_dev.rhai @@ -0,0 +1,18 @@ +// Read the current contents of the mod.cpp +// file from the project source + +if (HEMTT.is_release()) { + let macro_path = HEMTT_VFS + .join("addons") + .join("Streamator") + .join("macros.hpp"); + let macro_hpp = macro_path + .open_file() + .read(); + + macro_hpp.replace("// #define ISDEV", "#define ISDEV"); + + macro_path + .create_file() + .write(macro_hpp); +} \ No newline at end of file diff --git a/.hemtt/hooks/pre_build/set_is_dev.rhai b/.hemtt/hooks/pre_build/set_is_dev.rhai new file mode 100644 index 0000000..aa88216 --- /dev/null +++ b/.hemtt/hooks/pre_build/set_is_dev.rhai @@ -0,0 +1,18 @@ +// Read the current contents of the mod.cpp +// file from the project source + +if (HEMTT.is_release()) { + let macro_path = HEMTT_VFS + .join("addons") + .join("Streamator") + .join("macros.hpp"); + let macro_hpp = macro_path + .open_file() + .read(); + + macro_hpp.replace("#define ISDEV", "// #define ISDEV"); + + macro_path + .create_file() + .write(macro_hpp); +} \ No newline at end of file