From f05f27c2a6c4794972dcf1b1e0e91d7d5e4242f2 Mon Sep 17 00:00:00 2001 From: SisMaker <1713699517@qq.com> Date: Fri, 16 May 2025 18:26:04 +0800 Subject: [PATCH] =?UTF-8?q?ft:=20=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/vm.args | 3 +-- src/center.erl | 2 +- start_center.sh | 2 +- start_game.bat | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/config/vm.args b/config/vm.args index a2a46bf..145e899 100644 --- a/config/vm.args +++ b/config/vm.args @@ -3,5 +3,4 @@ -pa ./dep/ebin -pa ./dep/ebin/debug_cmd -pa ./config -+A 64 --s main start \ No newline at end of file ++A 64 \ No newline at end of file diff --git a/src/center.erl b/src/center.erl index 29418b4..fe38962 100644 --- a/src/center.erl +++ b/src/center.erl @@ -23,7 +23,7 @@ doStartApp(MFAOrApp) -> end. start(_StartType, _StartArgs) -> - game_master_sup:start_link(["127.0.0.1", "9110"]). + game_center_sup:start_link(["127.0.0.1", "9110"]). stop(_State) -> ok. diff --git a/start_center.sh b/start_center.sh index 84be673..faa70a4 100644 --- a/start_center.sh +++ b/start_center.sh @@ -1 +1 @@ -erl -name center@127.0.0.1 -args_file "./config/vm.args" -config "./config/cls.config" \ No newline at end of file +erl -name center@127.0.0.1 -args_file "./config/vm.args" -config "./config/cls.config" -s center start \ No newline at end of file diff --git a/start_game.bat b/start_game.bat index 1decd79..8cd4d20 100644 --- a/start_game.bat +++ b/start_game.bat @@ -1 +1 @@ -erl -name game@127.0.0.1 -args_file "./config/vm.args" -config "./config/gsrv.config" \ No newline at end of file +erl -name game@127.0.0.1 -args_file "./config/vm.args" -config "./config/gsrv.config" -s main start \ No newline at end of file