@@ -97,6 +97,8 @@ public class LLMManagerStore
97
97
{
98
98
public bool downloadOnStart ;
99
99
public List < ModelEntry > modelEntries ;
100
+ public int debugMode ;
101
+ public bool fullLlamaLib ;
100
102
}
101
103
/// \endcond
102
104
@@ -324,6 +326,8 @@ public static void LoadFromDisk()
324
326
LLMManagerStore store = JsonUtility . FromJson < LLMManagerStore > ( File . ReadAllText ( LLMUnitySetup . LLMManagerPath ) ) ;
325
327
downloadOnStart = store . downloadOnStart ;
326
328
modelEntries = store . modelEntries ;
329
+ LLMUnitySetup . DebugMode = ( LLMUnitySetup . DebugModeType ) store . debugMode ;
330
+ LLMUnitySetup . FullLlamaLib = store . fullLlamaLib ;
327
331
}
328
332
329
333
#if UNITY_EDITOR
@@ -610,7 +614,11 @@ public static void SetLoraProgress(float progress)
610
614
/// </summary>
611
615
public static void Save ( )
612
616
{
613
- string json = JsonUtility . ToJson ( new LLMManagerStore { modelEntries = modelEntries , downloadOnStart = downloadOnStart } , true ) ;
617
+ string json = JsonUtility . ToJson ( new LLMManagerStore
618
+ {
619
+ modelEntries = modelEntries ,
620
+ downloadOnStart = downloadOnStart ,
621
+ } , true ) ;
614
622
PlayerPrefs . SetString ( LLMManagerPref , json ) ;
615
623
PlayerPrefs . Save ( ) ;
616
624
}
@@ -638,7 +646,13 @@ public static void SaveToDisk()
638
646
if ( ! modelEntry . includeInBuild ) continue ;
639
647
modelEntriesBuild . Add ( modelEntry . OnlyRequiredFields ( ) ) ;
640
648
}
641
- string json = JsonUtility . ToJson ( new LLMManagerStore { modelEntries = modelEntriesBuild , downloadOnStart = downloadOnStart } , true ) ;
649
+ string json = JsonUtility . ToJson ( new LLMManagerStore
650
+ {
651
+ modelEntries = modelEntriesBuild ,
652
+ downloadOnStart = downloadOnStart ,
653
+ debugMode = ( int ) LLMUnitySetup . DebugMode ,
654
+ fullLlamaLib = LLMUnitySetup . FullLlamaLib
655
+ } , true ) ;
642
656
File . WriteAllText ( LLMUnitySetup . LLMManagerPath , json ) ;
643
657
}
644
658
0 commit comments