From 2a19c79cab09f4fdb36c5d927ac78dae3022683f Mon Sep 17 00:00:00 2001 From: Philip Minakov Date: Sat, 8 Jun 2024 22:22:26 +0400 Subject: [PATCH] Add swi function int ShowScreenSaverCodeProtection(); --- swilib/include/swilib/idle.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/swilib/include/swilib/idle.h b/swilib/include/swilib/idle.h index 12acd74c..7f8f79bc 100644 --- a/swilib/include/swilib/idle.h +++ b/swilib/include/swilib/idle.h @@ -71,6 +71,14 @@ __swi_begin(0x09C) void CloseScreensaver() __swi_end(0x09C, CloseScreensaver, ()); +/** + * Open screensaver code protection + * @return CSM_ID + * */ +__swi_begin(0x3D0) +int ShowScreenSaverCodeProtection() +__swi_end(0x3D0, ShowScreenSaverCodeProtection, ()) + /** * Get screensaver CSM. * @return pointer to the screensaver CSM