mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-03-29 18:06:52 +00:00
* ExampleBrowser.cs: Correctly use the assembly location to locate
the Source directory.
This commit is contained in:
parent
3ec54fce34
commit
28a6600619
|
@ -443,6 +443,8 @@ namespace Examples
|
||||||
// Tries to detect the path that contains the source for the examples.
|
// Tries to detect the path that contains the source for the examples.
|
||||||
static string FindSourcePath(string guess)
|
static string FindSourcePath(string guess)
|
||||||
{
|
{
|
||||||
|
guess = Path.GetDirectoryName(guess);
|
||||||
|
|
||||||
// Typically, our working directory is either "[opentk]/Binaries/OpenTK/[config]" or "[opentk]".
|
// Typically, our working directory is either "[opentk]/Binaries/OpenTK/[config]" or "[opentk]".
|
||||||
// The desired source path is "[opentk]/Source/Examples/[ExampleCategory]"
|
// The desired source path is "[opentk]/Source/Examples/[ExampleCategory]"
|
||||||
if (CheckPath(ref guess))
|
if (CheckPath(ref guess))
|
||||||
|
|
Loading…
Reference in a new issue