* ExampleBrowser.cs: Correctly use the assembly location to locate

the Source directory.
This commit is contained in:
the_fiddler 2010-11-24 18:11:01 +00:00
parent 3ec54fce34
commit 28a6600619

View file

@ -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))