mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-04 22:06:06 +02:00
change path method
This commit is contained in:
+3
-1
@@ -3,7 +3,9 @@
|
|||||||
// This work is licensed under the terms of the MIT license.
|
// This work is licensed under the terms of the MIT license.
|
||||||
// For a copy, see <https://opensource.org/licenses/MIT>.
|
// For a copy, see <https://opensource.org/licenses/MIT>.
|
||||||
|
|
||||||
|
using System;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
using System.IO;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using CefSharp;
|
using CefSharp;
|
||||||
@@ -35,7 +37,7 @@ namespace VRCX
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
// Application.StartupPath + "/html/index.html"
|
// Application.StartupPath + "/html/index.html"
|
||||||
Browser = new ChromiumWebBrowser(Application.StartupPath + "/html/index.html")
|
Browser = new ChromiumWebBrowser(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "html/index.html"))
|
||||||
{
|
{
|
||||||
BrowserSettings =
|
BrowserSettings =
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
// This work is licensed under the terms of the MIT license.
|
// This work is licensed under the terms of the MIT license.
|
||||||
// For a copy, see <https://opensource.org/licenses/MIT>.
|
// For a copy, see <https://opensource.org/licenses/MIT>.
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using CefSharp;
|
using CefSharp;
|
||||||
using CefSharp.WinForms;
|
using CefSharp.WinForms;
|
||||||
@@ -20,7 +22,7 @@ namespace VRCX
|
|||||||
Instance = this;
|
Instance = this;
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
//
|
//
|
||||||
Browser1 = new ChromiumWebBrowser(Application.StartupPath + "/html/vr.html?1")
|
Browser1 = new ChromiumWebBrowser(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "html/vr.html?1"))
|
||||||
{
|
{
|
||||||
BrowserSettings =
|
BrowserSettings =
|
||||||
{
|
{
|
||||||
@@ -29,7 +31,7 @@ namespace VRCX
|
|||||||
},
|
},
|
||||||
Dock = DockStyle.Fill,
|
Dock = DockStyle.Fill,
|
||||||
};
|
};
|
||||||
Browser2 = new ChromiumWebBrowser(Application.StartupPath + "/html/vr.html?2")
|
Browser2 = new ChromiumWebBrowser(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "html/vr.html?2"))
|
||||||
{
|
{
|
||||||
BrowserSettings =
|
BrowserSettings =
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user