Triforce v0.9.1

The 16 GB update: idle memory unlocked and handed back to Windows while playing, empty pages under freed locks returned, and a page-file check at launch that warns before a too-small page file can crash the game.
This commit is contained in:
ruckus7382sfgsgdf
2026-12-01 17:47:00 -06:00
parent 822ee913bc
commit dad28e2d4b
11 changed files with 802 additions and 7 deletions

View File

@@ -2341,10 +2341,12 @@ HLE(_ZN2nn5audio16AppendWaveBufferEPNS0_9VoiceTypeEPKNS0_10WaveBufferE) {
FILE *f = fopen(path, "wb");
if (f) {
fwrite(v->coefs, 1, 32, f);
hos_guest_touch(w.buffer, (uint64_t)w.size); /* ((Triforce, 11-21, MEM-09) fwrite hands it to the kernel) */
void hos_guest_kio_begin(uint64_t addr, uint64_t size), hos_guest_kio_end(void);
hos_guest_kio_begin(w.buffer, (uint64_t)w.size); /* ((Triforce, 11-21, MEM-09; 12-01) fwrite hands it to the kernel) */
const int io = hos_guest_io_begin(GP(w.buffer), (uint64_t)w.size); /* (Triforce: rx_backend.c) */
fwrite(GP(w.buffer), 1, (size_t)w.size, f);
hos_guest_io_end(io);
hos_guest_kio_end();
fclose(f);
}
}