From bc49794c6eadb46416c2a75d855227cc8ed4943e Mon Sep 17 00:00:00 2001 From: zakk4223 Date: Tue, 13 Jan 2026 09:18:57 -0500 Subject: [PATCH] Initialize empty n64 save file with all 0xFF instead of zero (fixes some game hangs) (#1085) --- support/n64/n64.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/n64/n64.cpp b/support/n64/n64.cpp index 7eed2b6..f53afac 100644 --- a/support/n64/n64.cpp +++ b/support/n64/n64.cpp @@ -412,7 +412,7 @@ struct N64SaveFile { } auto sz = this->get_size(); - memset(save_file_buf, 0, sz); + memset(save_file_buf, 0xFF, sz); bool found_old_data = false; if (sz && FileExists(old_path, 0)) {