mirror of
https://git.triforceproject.com/triforce/source
synced 2026-12-02 05:48:50 -04:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user