Skip to content

Commit

Permalink
demo
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikMennen committed Nov 12, 2023
1 parent 0c9a828 commit 27aba63
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
9 changes: 5 additions & 4 deletions demo/OneWare.Demo.Browser/WebDemoApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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<UniversalFpgaProjectManager>().LoadProjectAsync(Path.Combine(testProj, "DemoProject.fpgaproj"));

Expand Down
7 changes: 4 additions & 3 deletions demo/OneWare.Demo/Assets/DemoFiles/DemoProject.fpgaproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
"*.vhdl",
"*.v",
"*.cpp",
"*.vcd",
"*.vcd"
],
"Exclude": [
"bin",
]
"bin"
],
"TopEntity": "VhdlTest.vhd"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
public class NodeProviderService
{
private readonly Dictionary<string, INodeProvider> _providers = new();

public NodeProviderService()
{
Console.WriteLine("?");
}

public void RegisterNodeProvider(INodeProvider provider, params string[] extensions)
{
Expand Down

0 comments on commit 27aba63

Please sign in to comment.