From a83ca166852de84d18b8105fe1547c529f16dfc0 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Fri, 29 Nov 2024 13:47:54 +0200 Subject: [PATCH] Updated GB_load_battery (markdown) --- GB_load_battery.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/GB_load_battery.md b/GB_load_battery.md index 44f76d1..6037549 100644 --- a/GB_load_battery.md +++ b/GB_load_battery.md @@ -6,8 +6,17 @@ In `gb.h` ## Description -TBD +Loads battery-backed information (e.g. battery-powered cartridge RAM or Real Time Clock information) from the file at `path` into the emulator instance. Return `0` on success and a positive value for `POSIX` failures`. ## Thread Safety `GB_load_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). + +## Notes + +This function does not considered truncated files as failures. SameBoy battery saves are compatible with most other emulators and vice versa. + +## See Also + +* [[GB_load_battery_from_buffer]] +* [[GB_save_battery]] \ No newline at end of file