6 Commits
Author SHA1 Message Date
Emi Midnight 87661cf871 check for both null AND undefined in stream writer (#44)
This fixes IDZ support when minime is run using a newer LTS version of
node js.
(Streams use null for the error argument now for write and end
callbacks)
2024-03-19 11:59:08 +01:00
Tau d6d98aa561 v016 2021-02-04 17:03:11 -05:00
Tau 2c78e6646a Fix trailing comma in SQL 2021-02-04 17:02:23 -05:00
Tau 0f8010ae8d v015 2021-02-04 16:47:21 -05:00
Tau cb5db5e55f idz: Drop idz_team_auto_uq constraint 2021-02-04 16:41:42 -05:00
b166fe48b91eb09f279b79a4ecf57b2f8f0d3705 a99503a86d idz: Fix team message encoding 2021-02-04 16:32:03 -05:00
5 changed files with 25 additions and 5 deletions
+8
View File
@@ -1,5 +1,13 @@
# CHANGELOG
## v016
- IDZ: Fix SQL syntax error (Tau)
## v015
- IDZ: Team fixes (BemaniWitch)
## v014
- IDZ: Add support for Initial D v2.1 (BemaniWitch)
+1 -2
View File
@@ -241,8 +241,7 @@ create table "idz_team_auto" (
references "idz_team"("id")
on delete cascade,
"serial_no" integer not null,
"name_idx" integer not null,
constraint "idz_team_auto_uq" unique ("serial_no", "name_idx")
"name_idx" integer not null
);
create table "idz_team_member" (
@@ -0,0 +1,13 @@
create table "new_idz_team_auto" (
"id" integer primary key not null
references "idz_team"("id")
on delete cascade,
"serial_no" integer not null,
"name_idx" integer not null
);
insert into "new_idz_team_auto"
select "id", "serial_no", "name_idx" from "idz_team_auto";
drop table "idz_team_auto";
alter table "new_idz_team_auto" rename to "idz_team_auto";
+2 -2
View File
@@ -33,7 +33,7 @@ function _team1(
const accessTime = (profile.accessTime.getTime() / 1000) | 0;
buf.writeInt32LE(profile.aimeId, base + 0x0000);
writeSjisStr(buf, 0x0004, 0x0018, profile.name);
writeSjisStr(buf, base + 0x0004, base + 0x0018, profile.name);
buf.writeInt32LE(profile.lv, base + 0x0018);
buf.writeInt32LE(0, base + 0x0024); // Month points, TODO
buf.writeUInt32LE(accessTime, base + 0x0034);
@@ -85,7 +85,7 @@ function _team2(
const accessTime = (profile.accessTime.getTime() / 1000) | 0;
buf.writeInt32LE(profile.aimeId, base + 0x0000);
writeSjisStr(buf, 0x0004, 0x0018, profile.name);
writeSjisStr(buf, base + 0x0004, base + 0x0018, profile.name);
buf.writeInt32LE(profile.lv, base + 0x0018);
buf.writeInt32LE(0, base + 0x0024); // Month points, TODO
buf.writeUInt32LE(accessTime, base + 0x0034);
+1 -1
View File
@@ -14,7 +14,7 @@ export default function makeWriter(stm: Writable) {
stm.write(buf, error => {
busy = false;
if (error !== undefined) {
if (error !== null && error !== undefined) {
reject(error);
} else {
resolve();