Minor fixes, beginning work on configuration system.
This commit is contained in:
6
app/assets/js/constants.js
Normal file
6
app/assets/js/constants.js
Normal file
@@ -0,0 +1,6 @@
|
||||
const path = require('path')
|
||||
const ConfigManager = require('./configmanager')
|
||||
|
||||
//TODO: Resolve game directory based on windows, linux, or mac..
|
||||
exports.GAME_DIRECTORY = path.join(__dirname, '..', '..', '..', 'target', 'test', 'mcfiles')
|
||||
exports.DEFAULT_CONFIG = new ConfigManager(path.join(exports.GAME_DIRECTORY, 'config.yml'))
|
||||
Reference in New Issue
Block a user