From f18bc02ee3977143a50033e267bf299924791498 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Fri, 29 Nov 2024 14:03:03 +0200 Subject: [PATCH] Updated GB_save_battery (markdown) --- GB_save_battery.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/GB_save_battery.md b/GB_save_battery.md index fcdecf9..42ca702 100644 --- a/GB_save_battery.md +++ b/GB_save_battery.md @@ -6,8 +6,13 @@ In `gb.h` ## Description -TBD +Saves battery-backed information (e.g. battery-powered cartridge RAM or Real Time Clock information) from the emulator instance into the file at `path`. Returns `0` on success and a positive `errno` value on POSIX failures. Will do nothing and return `0` if the currently loaded ROM has no battery-backed information. ## Thread Safety `GB_save_battery` must not be called if the instance is being run in another thread, but may be called from the current one (via a callback). + +## See Also + +* [[GB_load_battery]] +* [[GB_save_battery_to_buffer]] \ No newline at end of file