* Temporary work around for broken pty/iconv-lite encoding with doors

This commit is contained in:
Bryan Ashby
2015-11-26 21:27:57 -07:00
parent 15cf37c55c
commit c7a6e6fd29
3 changed files with 14 additions and 8 deletions

View File

@@ -140,10 +140,13 @@ function AbracadabraModule(options) {
args : this.config.args,
};
// :TODO: this system should probably be generic
for(var i = 0; i < exeInfo.args.length; ++i) {
exeInfo.args[i] = exeInfo.args[i].replace(/\{dropfile\}/g, self.dropFile.fileName);
exeInfo.args[i] = exeInfo.args[i].replace(/\{node\}/g, self.client.node.toString());
exeInfo.args[i] = exeInfo.args[i].format( {
dropFile : self.dropFile.fileName,
node : self.client.node.toString(),
socket : self.client.output._handle.fd.toString(), // ugg!
});
}
var doorInstance = new door.Door(this.client, exeInfo);

View File

@@ -617,7 +617,7 @@
}
/*
The 'abracadabra' module's config.args accepts the following format objects:
{dropfile} - Path to generated dropfile
{dropFile} - Path to generated dropfile
{node} - Node number
*/
doorPimpWars: {
@@ -628,7 +628,7 @@
dropFileType: DORINFO
cmd: /usr/bin/dosemu
args: [
"-quiet", "-f", "/home/nuskooler/DOS/X/LORD/dosemu.conf", "X:\\PW\\START.BAT {dropfile} {node}"
"-quiet", "-f", "/home/nuskooler/DOS/X/LORD/dosemu.conf", "X:\\PW\\START.BAT {dropFile} {node}"
],
nodeMax: 1
tooManyArt: DOORMANY