Skip to content

Commit

Permalink
Little changes
Browse files Browse the repository at this point in the history
  • Loading branch information
PratyushKing committed Jul 3, 2023
1 parent b8d2521 commit 59acfa4
Show file tree
Hide file tree
Showing 19 changed files with 79 additions and 27 deletions.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file added FalconOS/.vs/FalconOS/v17/.suo
Binary file not shown.
37 changes: 37 additions & 0 deletions FalconOS/FalconOS/Shell.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ public void exec(string cmd)
}
else if (cmd.StartsWith("cd"))
{
if (cmd.StartsWith("cd ..."))
{
data.currentDir = "0:\\";
}
if (Directory.Exists(cmd.Replace("cd ", data.currentDir + "\\")))
{
data.currentDir += cmd.Replace("cd ", "") + "\\";
Expand Down Expand Up @@ -191,6 +195,39 @@ public void exec(string cmd)
Console.WriteLine("ERROR: Invalid File. [Use: cat <file>]");
}
}
} else if (cmd.StartsWith("ver"))
{
Console.ForegroundColor = ConsoleColor.DarkCyan;
Console.Write(this.os + " ");
Console.ResetColor();
Console.WriteLine(this.ver);
} else if (cmd.StartsWith("falcp"))
{
if (cmd.StartsWith("falcp "))
{
if (cmd.StartsWith("falcp --help") || cmd.StartsWith("falcp -h"))
{
Console.WriteLine("FalCompile [falcp] v0.5");
Console.WriteLine("FalCompile is a FalVM compiler to compile .fal files to .fex [Falcon Executable]");
Console.WriteLine("Uses:\n falcp <file> (to get a <file>.fex file that is compiled)\n falcp --help/-h (to get this prompt)");
} else if (cmd.EndsWith(".fa"))
{
string[] program;
if (File.Exists(cmd.Replace("falcp ", "")))
{
program = File.ReadAllLines(cmd.Replace("falcp ", data.currentDir));
} else
{
log.programPrint("falcp", "ERROR: File doesn't exist.");
}
}
}
else
{
Console.WriteLine("FalCompile [falcp] v0.5");
Console.WriteLine("FalCompile is a FalVM compiler to compile .fal files to .fex [Falcon Executable]");
Console.WriteLine("Uses:\n falcp <file>.fa (to get a <file>.fex file that is compiled)\n falcp --help/-h (to get this prompt)");
}
}
else
{
Expand Down
11 changes: 10 additions & 1 deletion FalconOS/FalconOS/log.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,20 @@ public static void print(string topic, string message)
{
Console.ForegroundColor = ConsoleColor.Cyan;
Console.Write("[ " + topic + " ] ");
Console.ForegroundColor = ConsoleColor.White;
Console.ResetColor();
Console.WriteLine(message);
return;
}

public static void programPrint(string program, string message)
{
Console.ForegroundColor = ConsoleColor.Cyan;
Console.Write(program);
Console.ResetColor();
Console.WriteLine(": " + message);
return;
}

public static void drawTitleBar(string title, ConsoleColor back = ConsoleColor.DarkCyan, ConsoleColor fore = ConsoleColor.Black)
{
Console.BackgroundColor = back; Console.ForegroundColor = fore;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = FalconOS
build_property.ProjectDir = C:\Users\praty\Downloads\FalconOS-main\FalconOS\FalconOS\
build_property.ProjectDir = E:\Git Repos\FalconOS\FalconOS\FalconOS\
Binary file modified FalconOS/FalconOS/obj/Debug/net6.0/FalconOS.assets.cache
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c68c09791d50eedf2c086f5ef4bca002e52c29e6
8a8c32934682b6fcfa56928777e8d54e020ca670
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,15 @@ C:\Users\praty\Downloads\FalconOS-main\FalconOS\FalconOS\obj\Debug\net6.0\Falcon
C:\Users\praty\Downloads\FalconOS-main\FalconOS\FalconOS\obj\Debug\net6.0\refint\FalconOS.dll
C:\Users\praty\Downloads\FalconOS-main\FalconOS\FalconOS\obj\Debug\net6.0\FalconOS.pdb
C:\Users\praty\Downloads\FalconOS-main\FalconOS\FalconOS\obj\Debug\net6.0\ref\FalconOS.dll
E:\Git Repos\FalconOS\FalconOS\FalconOS\bin\Debug\net6.0\FalconOS.deps.json
E:\Git Repos\FalconOS\FalconOS\FalconOS\bin\Debug\net6.0\FalconOS.dll
E:\Git Repos\FalconOS\FalconOS\FalconOS\bin\Debug\net6.0\FalconOS.pdb
E:\Git Repos\FalconOS\FalconOS\FalconOS\obj\Debug\net6.0\FalconOS.csproj.AssemblyReference.cache
E:\Git Repos\FalconOS\FalconOS\FalconOS\obj\Debug\net6.0\FalconOS.GeneratedMSBuildEditorConfig.editorconfig
E:\Git Repos\FalconOS\FalconOS\FalconOS\obj\Debug\net6.0\FalconOS.AssemblyInfoInputs.cache
E:\Git Repos\FalconOS\FalconOS\FalconOS\obj\Debug\net6.0\FalconOS.AssemblyInfo.cs
E:\Git Repos\FalconOS\FalconOS\FalconOS\obj\Debug\net6.0\FalconOS.csproj.CoreCompileInputs.cache
E:\Git Repos\FalconOS\FalconOS\FalconOS\obj\Debug\net6.0\FalconOS.dll
E:\Git Repos\FalconOS\FalconOS\FalconOS\obj\Debug\net6.0\refint\FalconOS.dll
E:\Git Repos\FalconOS\FalconOS\FalconOS\obj\Debug\net6.0\FalconOS.pdb
E:\Git Repos\FalconOS\FalconOS\FalconOS\obj\Debug\net6.0\ref\FalconOS.dll
Binary file modified FalconOS/FalconOS/obj/Debug/net6.0/FalconOS.dll
Binary file not shown.
Binary file modified FalconOS/FalconOS/obj/Debug/net6.0/FalconOS.pdb
Binary file not shown.
Binary file modified FalconOS/FalconOS/obj/Debug/net6.0/ref/FalconOS.dll
Binary file not shown.
Binary file modified FalconOS/FalconOS/obj/Debug/net6.0/refint/FalconOS.dll
Binary file not shown.
16 changes: 6 additions & 10 deletions FalconOS/FalconOS/obj/FalconOS.csproj.nuget.dgspec.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
{
"format": 1,
"restore": {
"C:\\Users\\praty\\Downloads\\FalconOS-main\\FalconOS\\FalconOS\\FalconOS.csproj": {}
"E:\\Git Repos\\FalconOS\\FalconOS\\FalconOS\\FalconOS.csproj": {}
},
"projects": {
"C:\\Users\\praty\\Downloads\\FalconOS-main\\FalconOS\\FalconOS\\FalconOS.csproj": {
"E:\\Git Repos\\FalconOS\\FalconOS\\FalconOS\\FalconOS.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\praty\\Downloads\\FalconOS-main\\FalconOS\\FalconOS\\FalconOS.csproj",
"projectUniqueName": "E:\\Git Repos\\FalconOS\\FalconOS\\FalconOS\\FalconOS.csproj",
"projectName": "FalconOS",
"projectPath": "C:\\Users\\praty\\Downloads\\FalconOS-main\\FalconOS\\FalconOS\\FalconOS.csproj",
"projectPath": "E:\\Git Repos\\FalconOS\\FalconOS\\FalconOS\\FalconOS.csproj",
"packagesPath": "C:\\Users\\praty\\.nuget\\packages\\",
"outputPath": "C:\\Users\\praty\\Downloads\\FalconOS-main\\FalconOS\\FalconOS\\obj\\",
"outputPath": "E:\\Git Repos\\FalconOS\\FalconOS\\FalconOS\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\praty\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
Expand Down Expand Up @@ -83,7 +79,7 @@
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.302\\RuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.304\\RuntimeIdentifierGraph.json"
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions FalconOS/FalconOS/obj/FalconOS.csproj.nuget.g.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\praty\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\praty\.nuget\packages\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.6.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\praty\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)cosmos.build\0.1.0-localbuild20221121055958\build\Cosmos.Build.props" Condition="Exists('$(NuGetPackageRoot)cosmos.build\0.1.0-localbuild20221121055958\build\Cosmos.Build.props')" />
Expand Down
15 changes: 5 additions & 10 deletions FalconOS/FalconOS/obj/project.assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -533,24 +533,19 @@
]
},
"packageFolders": {
"C:\\Users\\praty\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
"C:\\Users\\praty\\.nuget\\packages\\": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\praty\\Downloads\\FalconOS-main\\FalconOS\\FalconOS\\FalconOS.csproj",
"projectUniqueName": "E:\\Git Repos\\FalconOS\\FalconOS\\FalconOS\\FalconOS.csproj",
"projectName": "FalconOS",
"projectPath": "C:\\Users\\praty\\Downloads\\FalconOS-main\\FalconOS\\FalconOS\\FalconOS.csproj",
"projectPath": "E:\\Git Repos\\FalconOS\\FalconOS\\FalconOS\\FalconOS.csproj",
"packagesPath": "C:\\Users\\praty\\.nuget\\packages\\",
"outputPath": "C:\\Users\\praty\\Downloads\\FalconOS-main\\FalconOS\\FalconOS\\obj\\",
"outputPath": "E:\\Git Repos\\FalconOS\\FalconOS\\FalconOS\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\praty\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
Expand Down Expand Up @@ -615,7 +610,7 @@
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.302\\RuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.304\\RuntimeIdentifierGraph.json"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions FalconOS/FalconOS/obj/project.nuget.cache
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"version": 2,
"dgSpecHash": "0t6lyyBu02OYldxPknFHJ/08eZphJiIfnP1olIQUOeJcTwwyHAtebYNhaqXZJ+yXtl1m6e9S14sg+JDh5vRnZQ==",
"dgSpecHash": "3GGGht0OxLAdx5dSDOV6lLaYzbsfp3Y55AOC+D/n/XyyH9jXEa2/ruKirRzeLu0OGgrWANFeJ/VTdPVcnyXVMQ==",
"success": true,
"projectFilePath": "C:\\Users\\praty\\Downloads\\FalconOS-main\\FalconOS\\FalconOS\\FalconOS.csproj",
"projectFilePath": "E:\\Git Repos\\FalconOS\\FalconOS\\FalconOS\\FalconOS.csproj",
"expectedPackageFiles": [
"C:\\Users\\praty\\.nuget\\packages\\cosmos.build\\0.1.0-localbuild20221121055958\\cosmos.build.0.1.0-localbuild20221121055958.nupkg.sha512",
"C:\\Users\\praty\\.nuget\\packages\\cosmos.common\\0.1.0-localbuild20221121060004\\cosmos.common.0.1.0-localbuild20221121060004.nupkg.sha512",
Expand Down

0 comments on commit 59acfa4

Please sign in to comment.