* ExampleBrowser.cs: Correctly use the assembly location to locate
the Source directory.
This commit is contained in:
parent
3ec54fce34
commit
28a6600619
1 changed files with 2 additions and 0 deletions
|
@ -443,6 +443,8 @@ namespace Examples
|
|||
// Tries to detect the path that contains the source for the examples.
|
||||
static string FindSourcePath(string guess)
|
||||
{
|
||||
guess = Path.GetDirectoryName(guess);
|
||||
|
||||
// Typically, our working directory is either "[opentk]/Binaries/OpenTK/[config]" or "[opentk]".
|
||||
// The desired source path is "[opentk]/Source/Examples/[ExampleCategory]"
|
||||
if (CheckPath(ref guess))
|
||||
|
|
Loading…
Reference in a new issue