From 1f58603725b3266dbf8584e664c64d7d6aeb3d0f Mon Sep 17 00:00:00 2001 From: Alee Date: Tue, 12 Feb 2019 19:45:04 -0500 Subject: Added the desktop, debug, file system and more --- Microbit.Kernel/BootChecker.cs | 33 +++++++++++++++++++++ Microbit.Kernel/Class1.cs | 31 -------------------- Microbit.Kernel/MicroFS.cs | 53 ++++++++++++++++++++++++++++++++++ Microbit.Kernel/Microbit.Kernel.csproj | 44 ++++++++++++++++------------ Microbit.Kernel/app.config | 11 +++++++ Microbit.Kernel/packages.config | 6 ++++ 6 files changed, 129 insertions(+), 49 deletions(-) create mode 100644 Microbit.Kernel/BootChecker.cs delete mode 100644 Microbit.Kernel/Class1.cs create mode 100644 Microbit.Kernel/MicroFS.cs create mode 100644 Microbit.Kernel/app.config create mode 100644 Microbit.Kernel/packages.config (limited to 'Microbit.Kernel') diff --git a/Microbit.Kernel/BootChecker.cs b/Microbit.Kernel/BootChecker.cs new file mode 100644 index 0000000..eb4fd2b --- /dev/null +++ b/Microbit.Kernel/BootChecker.cs @@ -0,0 +1,33 @@ +/*********************************************************************** + * + * Microbits + * Copyright (C) 2019 Alee14 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + ****************************************************************************/ +using System; +using System.IO; +using Newtonsoft.Json; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Microbit.Kernel +{ + public class BootChecker + { + } +} diff --git a/Microbit.Kernel/Class1.cs b/Microbit.Kernel/Class1.cs deleted file mode 100644 index f9716d9..0000000 --- a/Microbit.Kernel/Class1.cs +++ /dev/null @@ -1,31 +0,0 @@ -/*********************************************************************** - * - * Microbits - * Copyright (C) 2019 Alee14 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - ****************************************************************************/ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Microbit.Kernel -{ - public class Class1 - { - } -} diff --git a/Microbit.Kernel/MicroFS.cs b/Microbit.Kernel/MicroFS.cs new file mode 100644 index 0000000..44970b1 --- /dev/null +++ b/Microbit.Kernel/MicroFS.cs @@ -0,0 +1,53 @@ +/*********************************************************************** + * + * Microbits + * Copyright (C) 2019 Alee14 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + ****************************************************************************/ +using System; +using System.IO; +using Newtonsoft.Json; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Microbit.Kernel +{ + public class MicroFS + { + public static string MicrobitFolder + { + get + { + return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Microbit"); + } + } + public static string SystemFolder + { + get + { + return Path.Combine(MicrobitFolder, "System"); + + } + } + public static void CreateSystemFiles() + { + Directory.CreateDirectory(MicrobitFolder); + Directory.CreateDirectory(SystemFolder); + } + } +} diff --git a/Microbit.Kernel/Microbit.Kernel.csproj b/Microbit.Kernel/Microbit.Kernel.csproj index 0f5522a..71a8593 100644 --- a/Microbit.Kernel/Microbit.Kernel.csproj +++ b/Microbit.Kernel/Microbit.Kernel.csproj @@ -1,10 +1,10 @@ - + Debug AnyCPU - 1a1e1ee8-d7fc-4138-93dc-59aae17bf4fd + {1A1E1EE8-D7FC-4138-93DC-59AAE17BF4FD} Library Properties Microbit.Kernel @@ -31,24 +31,32 @@ 4 - - - - - - - - - - - - - - + + ..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll + + + + ..\packages\System.Collections.Immutable.1.5.0\lib\portable-net45+win8+wp8+wpa81\System.Collections.Immutable.dll + + + + ..\packages\System.Interactive.Async.3.2.0\lib\net45\System.Interactive.Async.dll + + + + + + + - + + + + + + - + \ No newline at end of file diff --git a/Microbit.Kernel/app.config b/Microbit.Kernel/app.config new file mode 100644 index 0000000..e936cc1 --- /dev/null +++ b/Microbit.Kernel/app.config @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Microbit.Kernel/packages.config b/Microbit.Kernel/packages.config new file mode 100644 index 0000000..1a5a8cb --- /dev/null +++ b/Microbit.Kernel/packages.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file -- cgit v1.2.3