in reply to Re: Code Flow
in thread Code Flow
It's for my friend's program.
Gamespy was a 3rd party that enabled people to play games multiplayer.
Gamespy shuts down and does not exist anymore but abandoning players and their game.
My friend wrote in perl code that would allow players to play unreal tournament game and found out some other games would function too.
The program has a main folder with 5 other folders which contain a number of files in them, and a start file.
#!/usr/bin/perl package MasterServer; use strict; use warnings; use Cwd 'abs_path'; our $ROOT; BEGIN { ($ROOT = abs_path $0) =~ s{/util/masterserver\.pl$}{}; } use lib $ROOT.'/lib'; use MasterServer; our %S; require "$ROOT/data/masterserver-config.pl"; #add %C from config.pl to OBJ $MasterServer::OBJ->{$_} = $S{$_} for (keys %S); # load MasterServer core libs MasterServer::load_recursive('MasterServer::Core', 'MasterServer::UDP', 'MasterServer::TCP', 'MasterServer::Util'); # Run the MasterServer process MasterServer::run();
I can trace that out but I know there has to be a quicker way.
That is also the mean frame of the code.
I'm hoping to trace the whole program, from the maim to the sub-routines
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Code Flow
by haukex (Archbishop) on Feb 09, 2020 at 11:36 UTC | |
|
Re^3: Code Flow
by bliako (Abbot) on Feb 09, 2020 at 11:49 UTC |