From 27aba633d25d4a5fa883bf79ab0d1ccff8277657 Mon Sep 17 00:00:00 2001 From: Hendrik Mennen Date: Sun, 12 Nov 2023 22:34:58 +0100 Subject: [PATCH] demo --- demo/OneWare.Demo.Browser/WebDemoApp.cs | 9 +++++---- demo/OneWare.Demo/Assets/DemoFiles/DemoProject.fpgaproj | 7 ++++--- .../Services/NodeProviderService.cs | 5 ----- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/demo/OneWare.Demo.Browser/WebDemoApp.cs b/demo/OneWare.Demo.Browser/WebDemoApp.cs index 04ede427..79d9268f 100644 --- a/demo/OneWare.Demo.Browser/WebDemoApp.cs +++ b/demo/OneWare.Demo.Browser/WebDemoApp.cs @@ -20,6 +20,7 @@ public class WebDemoApp : DemoApp private static void CopyAvaloniaAssetIntoFolder(Uri asset, string location) { using var stream = AssetLoader.Open(asset); + Directory.CreateDirectory(Path.GetDirectoryName(location)!); using var writer = File.OpenWrite(location); stream.CopyTo(writer); } @@ -33,10 +34,10 @@ protected override async Task LoadContentAsync() Directory.CreateDirectory(testProj); CopyAvaloniaAssetIntoFolder(new Uri("avares://OneWare.Demo/Assets/DemoFiles/DemoProject.fpgaproj"), Path.Combine(testProj, "DemoProject.fpgaproj")); - CopyAvaloniaAssetIntoFolder(new Uri("avares://OneWare.Demo/Assets/DemoFiles/CppTest.cpp"), Path.Combine(testProj, "CppTest.cpp")); - CopyAvaloniaAssetIntoFolder(new Uri("avares://OneWare.Demo/Assets/DemoFiles/VhdlTest.vhd"), Path.Combine(testProj, "VhdlTest.vhd")); - CopyAvaloniaAssetIntoFolder(new Uri("avares://OneWare.Demo/Assets/DemoFiles/VerilogTest.v"), Path.Combine(testProj, "VerilogTest.v")); - CopyAvaloniaAssetIntoFolder(new Uri("avares://OneWare.Demo/Assets/DemoFiles/VcdTest.vcd"), Path.Combine(testProj, "VcdTest.vcd")); + CopyAvaloniaAssetIntoFolder(new Uri("avares://OneWare.Demo/Assets/DemoFiles/CppTest.cpp"), Path.Combine(testProj, "CPP", "CppTest.cpp")); + CopyAvaloniaAssetIntoFolder(new Uri("avares://OneWare.Demo/Assets/DemoFiles/VhdlTest.vhd"), Path.Combine(testProj, "VHDL", "VhdlTest.vhd")); + CopyAvaloniaAssetIntoFolder(new Uri("avares://OneWare.Demo/Assets/DemoFiles/VerilogTest.v"), Path.Combine(testProj, "Verilog", "VerilogTest.v")); + CopyAvaloniaAssetIntoFolder(new Uri("avares://OneWare.Demo/Assets/DemoFiles/VcdTest.vcd"), Path.Combine(testProj, "VCD", "VcdTest.vcd")); var dummy = await Container.Resolve().LoadProjectAsync(Path.Combine(testProj, "DemoProject.fpgaproj")); diff --git a/demo/OneWare.Demo/Assets/DemoFiles/DemoProject.fpgaproj b/demo/OneWare.Demo/Assets/DemoFiles/DemoProject.fpgaproj index b4af030f..fdc6c8c9 100644 --- a/demo/OneWare.Demo/Assets/DemoFiles/DemoProject.fpgaproj +++ b/demo/OneWare.Demo/Assets/DemoFiles/DemoProject.fpgaproj @@ -4,9 +4,10 @@ "*.vhdl", "*.v", "*.cpp", - "*.vcd", + "*.vcd" ], "Exclude": [ - "bin", - ] + "bin" + ], + "TopEntity": "VhdlTest.vhd" } \ No newline at end of file diff --git a/src/OneWare.UniversalFpgaProjectSystem/Services/NodeProviderService.cs b/src/OneWare.UniversalFpgaProjectSystem/Services/NodeProviderService.cs index 5f362b0e..5fd96154 100644 --- a/src/OneWare.UniversalFpgaProjectSystem/Services/NodeProviderService.cs +++ b/src/OneWare.UniversalFpgaProjectSystem/Services/NodeProviderService.cs @@ -3,11 +3,6 @@ public class NodeProviderService { private readonly Dictionary _providers = new(); - - public NodeProviderService() - { - Console.WriteLine("?"); - } public void RegisterNodeProvider(INodeProvider provider, params string[] extensions) {