Removed "DorianTech" from mod.info. Also don't crash, when broken SVR.JS config is loaded.
This commit is contained in:
parent
dfe13d711e
commit
d9056a9f78
3 changed files with 8 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +0,0 @@
|
|||
commit.sh
|
8
index.js
8
index.js
|
@ -13,7 +13,13 @@ try {
|
|||
} catch (ex) {
|
||||
// Can't determine version
|
||||
}
|
||||
var configJSONS = JSON.parse(fs.readFileSync(__dirname + "/../../../config.json")); // Read configuration JSON
|
||||
var configJSONS = {};
|
||||
try {
|
||||
configJSONS = JSON.parse(fs.readFileSync(__dirname + "/../../../config.json")); // Read configuration JSON
|
||||
} catch(ex) {
|
||||
//RedBrick will not care about configJSONS in SVR.JS 3.x and newer
|
||||
//SVR.JS 2.x and older will fail to start with broken configuration file anyway...
|
||||
}
|
||||
|
||||
var exttointerpreteruser = {};
|
||||
var scriptExts = [];
|
||||
|
|
2
mod.info
2
mod.info
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"name": "DorianTech RedBrick CGI engine for SVR.JS",
|
||||
"name": "RedBrick CGI engine for SVR.JS",
|
||||
"version": "Nightly-GitMain"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue