diff --git a/package-lock.json b/package-lock.json index ae204e46..819facb7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6076,7 +6076,7 @@ }, "node_modules/meter-core": { "version": "0.0.0", - "resolved": "git+ssh://git@github.com/lost-ark-dev/meter-core.git#0cece354203d98c461fea81f6f8ab4690601d920", + "resolved": "git+ssh://git@github.com/lost-ark-dev/meter-core.git#42244ae3447c15cca26f645854f7bb59073e5eed", "dependencies": { "cap": "^0.2.1", "is-admin": "^3.0.0", @@ -13596,7 +13596,7 @@ "dev": true }, "meter-core": { - "version": "git+ssh://git@github.com/lost-ark-dev/meter-core.git#0cece354203d98c461fea81f6f8ab4690601d920", + "version": "git+ssh://git@github.com/lost-ark-dev/meter-core.git#42244ae3447c15cca26f645854f7bb59073e5eed", "from": "meter-core@github:lost-ark-dev/meter-core", "requires": { "cap": "^0.2.1", diff --git a/src-electron/log-parser/file-parser.ts b/src-electron/log-parser/file-parser.ts index 16b701a9..7763707c 100644 --- a/src-electron/log-parser/file-parser.ts +++ b/src-electron/log-parser/file-parser.ts @@ -8,13 +8,11 @@ import { mainFolder, parsedLogFolder } from "../util/directories"; import { ReplayLogger } from "meter-core/logger/logger"; import { Parser } from "meter-core/logger/parser"; import { MeterData } from "meter-core/data"; -import { GameState } from "meter-core/logger/data"; +import { GameState, PARSED_LOG_VERSION } from "meter-core/logger/data"; import { randomUUID } from "crypto"; dayjs.extend(customParseFormat); -const LOG_PARSER_VERSION = 15; - export async function parseLogs( event: IpcMainEvent, splitOnPhaseTransition: boolean, @@ -66,7 +64,7 @@ export async function parseLogs( if ( new Date(mainJson[filename].mtime).getTime() < new Date(logStats.mtime).getTime() || - mainJson[filename].logParserVersion < LOG_PARSER_VERSION + mainJson[filename].logParserVersion < PARSED_LOG_VERSION ) { shouldUnlink = true; } @@ -107,7 +105,7 @@ export async function parseLogs( } else { mainJson[filename] = { mtime: new Date(logStats.mtime), - logParserVersion: LOG_PARSER_VERSION, + logParserVersion: PARSED_LOG_VERSION, }; }