* Update to encode()/decode() direct calls for iconv-lite

* Overrite font (to not use!) when showing pause prompts - they should use the current set by menu/art
This commit is contained in:
Bryan Ashby 2015-11-01 13:32:52 -07:00
parent ba4f407c90
commit 46088a9f02
5 changed files with 22 additions and 15 deletions

View file

@ -280,16 +280,22 @@ function displayThemedPause(options, cb) {
promptConfig = promptJson.prompts.pause;
callback(_.isObject(promptConfig) ? null : new Error('Invalid prompt config block!'));
} else {
callback(new Error('Missing standard \'pause\' prompt'))
callback(new Error('Missing standard \'pause\' prompt'));
}
}
});
},
function displayPausePrompt(callback) {
//
// Override .font so it doesn't change from current setting
//
var dispOptions = promptConfig.options;
dispOptions.font = 'not_really_a_font!';
displayThemedAsset(
promptConfig.art,
options.client,
promptConfig.options,
dispOptions,
function displayed(err, artData) {
artInfo = artData;
callback(err);