Skip to content

Commit d04ce09

Browse files
mod config options actually work now
1 parent 3d051eb commit d04ce09

File tree

1 file changed

+4
-25
lines changed

1 file changed

+4
-25
lines changed

ExportResoniteToJson/ExportResoniteToJson.cs

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -25,31 +25,32 @@ public class ExportResoniteToJson : ResoniteMod
2525

2626
private static ModConfiguration Config;
2727

28-
28+
[AutoRegisterConfigKey]
2929
private static readonly ModConfigurationKey<bool> EXPORT_JSON = new ModConfigurationKey<bool>(
3030
"Export Json Type", "Enable exprting to Json file type. Changing this setting requires a game restart to apply.",
3131
() => true
3232
);
3333

34+
[AutoRegisterConfigKey]
3435
private static readonly ModConfigurationKey<bool> EXPORT_BSON = new ModConfigurationKey<bool>(
3536
"Export Bson Type", "Enable exprting to Bson file type. Changing this setting requires a game restart to apply.",
3637
() => false
3738
);
3839

40+
[AutoRegisterConfigKey]
3941
private static readonly ModConfigurationKey<bool> EXPORT_7ZBSON = new ModConfigurationKey<bool>(
4042
"Export 7zbon Type", "Enable exprting to 7zbon file type. Changing this setting requires a game restart to apply.",
4143
() => false
4244
);
4345

46+
[AutoRegisterConfigKey]
4447
private static readonly ModConfigurationKey<bool> EXPORT_LZ4BSON = new ModConfigurationKey<bool>(
4548
"Export LZ4BSON Type", "Enable exprting to LZ4BSON file type. Changing this setting requires a game restart to apply.",
4649
() => false
4750
);
4851

4952

5053

51-
52-
5354
// ------------------------------------------------------------------------------------------ //
5455
/* ========== Our Hook into the game ========== */
5556

@@ -247,7 +248,6 @@ public static bool IsSupportedFormat(ref bool __result, string file)
247248
return true; // call original function
248249
}
249250

250-
251251
public static bool Load_Prefix(ref DataTreeDictionary __result, string file, string ext = null)
252252
{
253253
if (ext == null)
@@ -270,31 +270,10 @@ public static bool Load_Prefix(ref DataTreeDictionary __result, string file, str
270270

271271

272272
}
273-
274-
275-
276-
277-
278-
279-
280-
281-
282-
283-
284-
285-
286-
287-
288-
289-
290-
291273

292274

293275

294276
}
295277

296278

297-
298-
299-
300279
}

0 commit comments

Comments
 (0)