1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 22:34:33 +01:00

Allow scripting to be compile-disabled

This commit is contained in:
Ted John
2020-02-23 12:55:48 +00:00
parent 34078124cd
commit bac91cd563
17 changed files with 167 additions and 66 deletions

View File

@@ -7,7 +7,9 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include "CustomMenu.h"
#ifdef __ENABLE_SCRIPTING__
# include "CustomMenu.h"
namespace OpenRCT2::Scripting
{
@@ -34,3 +36,5 @@ namespace OpenRCT2::Scripting
scriptEngine.SubscribeToPluginStoppedEvent([](std::shared_ptr<Plugin> plugin) -> void { RemoveMenuItems(plugin); });
}
} // namespace OpenRCT2::Scripting
#endif