Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-03-2009, 01:33 AM
Cripp's Avatar
Cripp
Discordant
 
Join Date: Oct 2003
Location: The Shire
Posts: 474
Default World Perl10 fix

I noticed after I upgraded to perl10.. i couldn't use the world http management anymore.
It straight up crashes the world when I try and login.
This will fix this...

Code:
Index: EQWParser.cpp
===================================================================
--- EQWParser.cpp	(revision 395)
+++ EQWParser.cpp	(working copy)
@@ -75,20 +75,23 @@
 }
 
 void EQWParser::DoInit() {
-	
-	//arguments for interpreter start
-	const char *args[] = { "", "-w", "-W", "-e", "0;", NULL };
-	
-	
+	const char *argv_eqemu[] = { "",
+		"-w", "-W",
+		"-e", "0;", NULL };
+
+	int argc = 5;
+
+	char **argv = (char **)argv_eqemu;
+	char **env = { NULL };
+
+	PL_perl_destruct_level = 1;
+
 	perl_construct(my_perl);
-	
-	
-	if(perl_parse(my_perl, xs_init,
-		5,
-		(char **) args, NULL)) {
-		_log(WORLD__PERL_ERR, "Error: perl_parse failed!");
-		return;
-	}
+
+	PERL_SYS_INIT3(&argc, &argv, &env);
+
+	perl_parse(my_perl, xs_init, argc, argv, env);
+
 	perl_run(my_perl);
 	
 	//a little routine we use a lot.
__________________
Nug Blazers - ServerOP / founder
^^comming... later!

www.nugblazers.com
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 10:25 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3