[Fix Red] openplugins -- import and export thru settings save / restore settings

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit 1c3e9c181e67a9c470ac07a4e4274e4cc127e8b5
Author: William Wilgus <[email protected]>
Date:   Thu Jan 22 11:19:44 2026 -0500

    [Fix Red] openplugins -- import and export thru settings save / restore settings
    
    Change-Id: Ief990b282459637a2f5974b46a6250a52b444cc0

diff --git a/apps/settings.c b/apps/settings.c
index 9713a482da..fea5e9d161 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -80,6 +80,7 @@
 #endif
 
 #ifndef __PCTOOL__
+#include "open_plugin.h"
 struct user_settings global_settings;
 struct system_status global_status;
 static uint32_t user_settings_crc;
@@ -417,11 +418,13 @@ bool settings_load_config(const char* file, bool apply)
 
         if (!string_to_cfg(name, value, &theme_changed))
         {
+#ifndef __PCTOOL__
             /* if we are here then name was not a valid setting */
             if (!strcmp(name, "openplugin"))
             {
                 open_plugin_import(value);
             }
+#endif
         }
     } /* while(...) */
 
@@ -640,12 +643,13 @@ static bool settings_write_config(const char* filename, int options)
 
         fdprintf(fd,"%s: %s\r\n",setting->cfg_name,value);
     } /* for(...) */
-
+#ifndef __PCTOOL__
     if (options == SETTINGS_SAVE_ALL)
     {
         /* add openplugin entries to the open settings file */
         open_plugin_export(fd);
     }
+#endif
     close(fd);
     return true;
 }
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.