Commit 1a54902c authored by mercury233's avatar mercury233

update data path

parent 0367dd27
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
var sqlite3 = require('sqlite3').verbose(); var sqlite3 = require('sqlite3').verbose();
var fs = require('fs'); var fs = require('fs');
var config = require('./config.deckstats.json'); //{ "deckpath": "../decks", "dbfile": "cards.cdb" } var config = require('./config.deckstats.json'); //{ "deckpath": "../decks", "dbfile": "cards.cdb" }
var constants = require('./constants.json'); var constants = require('./data/constants.json');
var ALL_MAIN_CARDS={}; var ALL_MAIN_CARDS={};
var ALL_SIDE_CARDS={}; var ALL_SIDE_CARDS={};
......
...@@ -16,7 +16,7 @@ var url = require('url'); ...@@ -16,7 +16,7 @@ var url = require('url');
var moment = require('moment'); var moment = require('moment');
moment.locale('zh-cn'); moment.locale('zh-cn');
var constants = require('./constants.json'); var constants = require('./data/constants.json');
var nconf = require('nconf'); var nconf = require('nconf');
nconf.file('./config.user.json'); nconf.file('./config.user.json');
......
...@@ -4,13 +4,13 @@ _.mixin(_.str.exports()) ...@@ -4,13 +4,13 @@ _.mixin(_.str.exports())
Struct = require('./struct.js').Struct Struct = require('./struct.js').Struct
i18ns = require './i18n.json' i18ns = require './data/i18n.json'
#常量/类型声明 #常量/类型声明
structs_declaration = require './structs.json' #结构体声明 structs_declaration = require './data/structs.json' #结构体声明
typedefs = require './typedefs.json' #类型声明 typedefs = require './data/typedefs.json' #类型声明
@proto_structs = require './proto_structs.json' #消息与结构体的对应,未完成,对着duelclient.cpp加 @proto_structs = require './data/proto_structs.json' #消息与结构体的对应,未完成,对着duelclient.cpp加
@constants = require './constants.json' #network.h里定义的常量 @constants = require './data/constants.json' #network.h里定义的常量
#结构体定义 #结构体定义
@structs = {} @structs = {}
......
...@@ -10,15 +10,15 @@ ...@@ -10,15 +10,15 @@
Struct = require('./struct.js').Struct; Struct = require('./struct.js').Struct;
i18ns = require('./i18n.json'); i18ns = require('./data/i18n.json');
structs_declaration = require('./structs.json'); structs_declaration = require('./data/structs.json');
typedefs = require('./typedefs.json'); typedefs = require('./data/typedefs.json');
this.proto_structs = require('./proto_structs.json'); this.proto_structs = require('./data/proto_structs.json');
this.constants = require('./constants.json'); this.constants = require('./data/constants.json');
this.structs = {}; this.structs = {};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment