diff options
Diffstat (limited to 'ShiftOS/ShiftOS/SystemContext.cs')
| -rw-r--r-- | ShiftOS/ShiftOS/SystemContext.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ShiftOS/ShiftOS/SystemContext.cs b/ShiftOS/ShiftOS/SystemContext.cs index 2dc70da..13c7561 100644 --- a/ShiftOS/ShiftOS/SystemContext.cs +++ b/ShiftOS/ShiftOS/SystemContext.cs @@ -10,8 +10,15 @@ namespace ShiftOS public class SystemContext : IDisposable { private Desktop _desktop = null; + private SkinContext _skinContext = null; private int _codepoints = 0; + private void LoadCurrentSkin() + { + // TODO: Load it from a filesystem of some sort. + _skinContext = new SkinContext(); + } + public void Dispose() { _desktop = null; @@ -22,16 +29,27 @@ namespace ShiftOS return this._codepoints; } + public SkinContext GetSkinContext() + { + return this._skinContext; + } + public void Initialize() { // We can't initialize the game twice. if (_desktop != null) throw new InvalidOperationException("ShiftOS is already initialized."); + Console.WriteLine("Bootstrapping WinForms..."); + // Set up WinForms to run normally. Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); + Console.WriteLine("Loading current skin..."); + this.LoadCurrentSkin(); + + Console.WriteLine("Loading desktop..."); using (_desktop = new Desktop(this)) { // Run Windows Forms. |
