mirror of
https://git.sanhost.net/sanasol/hytale-f2p.git
synced 2026-02-25 22:31:46 -03:00
Add HYTALE_NOOP_TEST to test read/write without patching
Tests if our file read/write process itself causes corruption. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -577,6 +577,14 @@ class ClientPatcher {
|
||||
progressCallback('Patching domain references...', 50);
|
||||
}
|
||||
|
||||
// HYTALE_NOOP_TEST: Just read and write binary without any changes
|
||||
if (process.env.HYTALE_NOOP_TEST === '1') {
|
||||
console.log('NOOP TEST: Writing binary without modifications...');
|
||||
fs.writeFileSync(clientPath, data);
|
||||
this.markAsPatched(clientPath);
|
||||
return { success: true, patchCount: 0, noop: true };
|
||||
}
|
||||
|
||||
console.log('Applying domain patches (length-prefixed format)...');
|
||||
const { buffer: patchedData, count } = this.applyDomainPatches(data, newDomain);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user