Initial release layout

Moved files around to generate releases later on, but also to
separate the code into many different applications each with their
own purpose (patch server, game server, data storage, script compiler,
files library, and so on).
This commit is contained in:
Loïc Hoguin 2011-12-12 10:02:34 +01:00
parent 289ce855ad
commit ac0c3c551b
60 changed files with 2422 additions and 17 deletions

BIN
apps/egs/priv/egs_drv.so Executable file

Binary file not shown.

4
apps/egs/rebar.config Normal file
View File

@ -0,0 +1,4 @@
{deps, [
{ex_reloader, ".*", {git, "git://github.com/extend/ex_reloader.git", "HEAD"}},
{cowboy, ".*", {git, "git://github.com/extend/cowboy.git", "HEAD"}}
]}.

View File

@ -18,12 +18,12 @@
%% along with EGS. If not, see <http://www.gnu.org/licenses/>.
-module(egs_game_protocol).
-export([start_link/3, init/2]).
-export([start_link/4, init/2]).
-include("include/records.hrl").
-spec start_link(ssl:sslsocket(), module(), []) -> {ok, pid()}.
start_link(Socket, Transport, []) ->
-spec start_link(pid(), ssl:sslsocket(), module(), []) -> {ok, pid()}.
start_link(_ListenerPid, Socket, Transport, []) ->
Pid = spawn_link(?MODULE, init, [Socket, Transport]),
{ok, Pid}.

View File

@ -18,12 +18,12 @@
%% along with EGS. If not, see <http://www.gnu.org/licenses/>.
-module(egs_login_protocol).
-export([start_link/3, init/2]).
-export([start_link/4, init/2]).
-include("include/records.hrl").
-spec start_link(ssl:sslsocket(), module(), []) -> {ok, pid()}.
start_link(Socket, Transport, []) ->
-spec start_link(pid(), ssl:sslsocket(), module(), []) -> {ok, pid()}.
start_link(_ListenerPid, Socket, Transport, []) ->
Pid = spawn_link(?MODULE, init, [Socket, Transport]),
{ok, Pid}.

View File

@ -18,7 +18,7 @@
%% along with EGS. If not, see <http://www.gnu.org/licenses/>.
-module(egs_patch_protocol).
-export([start_link/3, init/2]).
-export([start_link/4, init/2]).
-define(TIMEOUT, 5000).
@ -33,8 +33,8 @@
-type cmd() :: 0..16#14.
-type cmd_size() :: 0..16#ffffffff.
-spec start_link(inet:socket(), module(), []) -> {ok, pid()}.
start_link(Socket, Transport, []) ->
-spec start_link(pid(), inet:socket(), module(), []) -> {ok, pid()}.
start_link(_ListenerPid, Socket, Transport, []) ->
Pid = spawn_link(?MODULE, init, [Socket, Transport]),
{ok, Pid}.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1 +0,0 @@
*

View File

@ -1 +0,0 @@
*

View File

@ -1 +0,0 @@
*

View File

@ -1 +0,0 @@
*

View File

@ -1,6 +1,5 @@
{deps, [
{ex_reloader, ".*", {git, "git://github.com/extend/ex_reloader.git", "HEAD"}},
{cowboy, ".*", {git, "git://github.com/extend/cowboy.git", "HEAD"}}
{sub_dirs, [
"apps/egs"
]}.
{dialyzer_opts, [src, {warnings, [
behaviours,

View File

@ -2,4 +2,4 @@
echo "EGS is free software available under the GNU GPL version 3"
echo "Copyright (C) 2010-2011 Loic Hoguin"
echo
erl -sname egs -pa ebin -pa deps/*/ebin -boot start_sasl -s ex_reloader -s egs
erl -sname egs -pa apps/*/ebin -pa deps/*/ebin -boot start_sasl -s ex_reloader -s egs