summaryrefslogtreecommitdiff
path: root/src/packets
diff options
context:
space:
mode:
authorTheMas3212 <mas3212@gmail.com>2025-02-02 17:34:27 +1100
committerTheMas3212 <mas3212@gmail.com>2025-02-02 17:34:27 +1100
commit981a5a2c7edecc2239dda1bc3321003f939a7450 (patch)
treee328af15169d75ead4ce262f1cae36a2be6ba6d4 /src/packets
parentacf7a79d0e6d3d09f4fc029d3eb35dd905d2b3ea (diff)
downloadtasd-js-981a5a2c7edecc2239dda1bc3321003f939a7450.tar.gz
tasd-js-981a5a2c7edecc2239dda1bc3321003f939a7450.zip
Apply and fix new eslint ruleset
Diffstat (limited to 'src/packets')
-rw-r--r--src/packets/general.ts6
-rw-r--r--src/packets/index.ts12
2 files changed, 9 insertions, 9 deletions
diff --git a/src/packets/general.ts b/src/packets/general.ts
index e3a3862..f6b00dc 100644
--- a/src/packets/general.ts
+++ b/src/packets/general.ts
@@ -456,8 +456,8 @@ export class GameIdentiferPacket implements TASDPacket {
return 2 + this.name.length + this.identifier.length;
}
static fromBuffer(buffer: Uint8Array) {
- const type = readUint8(buffer, 0)
- const base = readUint8(buffer, 1)
+ const type = readUint8(buffer, 0);
+ const base = readUint8(buffer, 1);
const nlen = readUint8(buffer, 2);
const name = readString(buffer, 3, nlen);
const identifier = buffer.subarray(3 + nlen);
@@ -565,7 +565,7 @@ export class PortControllerPacket implements TASDPacket {
return buildBuffer(g_keylen, this.key, payload);
}
toString() {
- return `PortController ${this.port}, 0x${this.type.toString(16).padStart(4, '0')}`;
+ return `PortController ${this.port}, 0x${this.type.toString(16).padStart(4, "0")}`;
}
static readonly CONTROLLER_TYPE = {
NES_STANDARD_CONTROLLER: 0x0101,
diff --git a/src/packets/index.ts b/src/packets/index.ts
index a8ae2bd..07d12fb 100644
--- a/src/packets/index.ts
+++ b/src/packets/index.ts
@@ -8,12 +8,12 @@ import * as genesis from "./genesis";
import * as input from "./input";
import * as extra from "./extra";
-export * as General from './general';
-export * as NES from './nes';
-export * as SNES from './snes';
-export * as Genesis from './genesis';
-export * as Input from './input';
-export * as Extra from './extra';
+export * as General from "./general";
+export * as NES from "./nes";
+export * as SNES from "./snes";
+export * as Genesis from "./genesis";
+export * as Input from "./input";
+export * as Extra from "./extra";
export function parse(type: number, buffer: Uint8Array): TASDPacket {
switch (type) {