Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
87661cf871 | ||
|
|
d6d98aa561 | ||
|
|
2c78e6646a | ||
|
|
0f8010ae8d | ||
|
|
cb5db5e55f | ||
|
|
a99503a86d |
@@ -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
@@ -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";
|
||||
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user