-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Possible fix for both callbacks and the threading issue
- Loading branch information
1 parent
8fb94a1
commit 7a1d323
Showing
3 changed files
with
112 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using JetBrains.Annotations; | ||
using SpaceWarp.API.Configuration; | ||
|
||
namespace SpaceWarp.UI.API.UI.Settings; | ||
|
||
[PublicAPI] | ||
public static class SettingsMenu | ||
{ | ||
/// <summary> | ||
/// Contains a list of all the registered config files | ||
/// </summary> | ||
public static Dictionary<string, IConfigFile> RegisteredConfigFiles = new(); | ||
|
||
/// <summary> | ||
/// Register a manually created config file for the settings menu | ||
/// </summary> | ||
/// <param name="section">The section name for the config file</param> | ||
/// <param name="file">The file itself</param> | ||
public static void RegisterConfigFile(string section, IConfigFile file) | ||
{ | ||
RegisteredConfigFiles[section] = file; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters