Use win1252 character encoding for samp (1.0.48) Fixes #99
This commit is contained in:
parent
0487c7c20d
commit
8b3126e430
|
@ -1,5 +1,7 @@
|
|||
const Iconv = require('iconv-lite'),
|
||||
Long = require('long');
|
||||
Long = require('long'),
|
||||
Core = require('../protocols/core'),
|
||||
Buffer = require('buffer');
|
||||
|
||||
function readUInt64BE(buffer,offset) {
|
||||
const high = buffer.readUInt32BE(offset);
|
||||
|
@ -13,6 +15,10 @@ function readUInt64LE(buffer,offset) {
|
|||
}
|
||||
|
||||
class Reader {
|
||||
/**
|
||||
* @param {Core} query
|
||||
* @param {Buffer} buffer
|
||||
**/
|
||||
constructor(query,buffer) {
|
||||
this.query = query;
|
||||
this.buffer = buffer;
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
],
|
||||
"main": "lib/index.js",
|
||||
"author": "Michael Morrison",
|
||||
"version": "1.0.47",
|
||||
"version": "1.0.48",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sonicsnes/node-gamedig.git"
|
||||
|
|
|
@ -130,6 +130,8 @@ class Core extends EventEmitter {
|
|||
]);
|
||||
}
|
||||
|
||||
run() {}
|
||||
|
||||
parseDns(host,c) {
|
||||
const resolveStandard = (host,c) => {
|
||||
if(this.debug) console.log("Standard DNS Lookup: " + host);
|
||||
|
|
|
@ -1,6 +1,12 @@
|
|||
const async = require('async');
|
||||
const async = require('async'),
|
||||
Core = require('./core');
|
||||
|
||||
class Samp extends Core {
|
||||
constructor() {
|
||||
super();
|
||||
this.encoding = 'win1252';
|
||||
}
|
||||
|
||||
class Samp extends require('./core') {
|
||||
run(state) {
|
||||
async.series([
|
||||
(c) => {
|
||||
|
|
Loading…
Reference in New Issue