From 00795eecdd05637d0dacf1ff15bb19a03d4079aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Tue, 25 Nov 2025 22:21:58 -0600 Subject: [PATCH] feat: sort --- packages/core/src/steam/steam.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/core/src/steam/steam.ts b/packages/core/src/steam/steam.ts index 18d63b44e..b6ef72cc9 100644 --- a/packages/core/src/steam/steam.ts +++ b/packages/core/src/steam/steam.ts @@ -1,5 +1,4 @@ import { writeFile } from "fs/promises"; -import { normalize } from "path"; import SteamUser, { EConnectionProtocol } from "steam-user"; interface SteamManifestFile { @@ -65,14 +64,14 @@ export class SteamVFS { ); }); - let str = ""; + const paths: string[] = []; for (const file of manifest.files) { - const path = normalize(file.filename); - str += `${path}\n`; + const path = file.filename.replaceAll("\\", "/"); + paths.push(path); this.manifest.set(path, file); } - writeFile("test.txt", str); + writeFile("test.txt", paths.sort().join("\n")); console.log(JSON.stringify(manifest.files[0], null, 2)); }