From d767217461f8cbe5f38eafa4167420e84b8df9af Mon Sep 17 00:00:00 2001 From: Chris Miles Date: Sun, 26 May 2024 15:14:06 -0500 Subject: [PATCH] [Perl] Linux /opt/eqemu-perl checks when using release binaries (#4346) --- zone/main.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/zone/main.cpp b/zone/main.cpp index 7c87427da..a34d75d74 100644 --- a/zone/main.cpp +++ b/zone/main.cpp @@ -446,6 +446,21 @@ int main(int argc, char **argv) auto perl_parser = new PerlembParser(); parse->RegisterQuestInterface(perl_parser, "pl"); +#ifdef __linux__ + std::string current_version = CURRENT_VERSION; + // running release binaries + if (!Strings::Contains(current_version, "-dev")) { + if (!fs::exists("/opt/eqemu-perl")) { + LogError("You are running release binaries without having the required eqemu version of perl compiled and installed on this system present at /opt/eqemu-perl"); + LogError("If you are running an old Linux install, you need to install the required perl version from the eqemu-perl"); + LogError("Instructions can be referenced at https://github.com/Akkadius/akk-stack/blob/master/containers/eqemu-server/Dockerfile#L92-L106"); + LogError("Press any key to continue"); + getchar(); + } + return 0; + } +#endif + /* Load Perl Event Export Settings */ parse->LoadPerlEventExportSettings(parse->perl_event_export_settings);