From 4c3364fc928a9cff8a353b60d569c3b5dde2d39d Mon Sep 17 00:00:00 2001 From: libccy Date: Sat, 24 Feb 2018 11:16:26 +0800 Subject: [PATCH] d --- game/game.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/game/game.js b/game/game.js index 92f4488ec..6ec1139fc 100644 --- a/game/game.js +++ b/game/game.js @@ -5759,6 +5759,15 @@ }, init:{ init:function(){ + if(typeof __dirname==='string'&&__dirname.length){ + var dirsplit=__dirname.split('/'); + for(var i=0;i