diff --git a/SourceGen/HelpAccess.cs b/SourceGen/HelpAccess.cs index 3c5ad48..2e7c192 100644 --- a/SourceGen/HelpAccess.cs +++ b/SourceGen/HelpAccess.cs @@ -84,6 +84,17 @@ namespace SourceGen { string helpFilePath = Path.Combine(RuntimeDataAccess.GetDirectory(), HELP_DIR, fileName); + if (!File.Exists(helpFilePath)) { + // Alternate path, used during development. If it also doesn't exist, leave + // the original path intact so the error message is useful. + string altPath = Path.Combine(RuntimeDataAccess.GetDirectory() + + "\\..\\..\\docs\\sgmanual", + fileName); + altPath = Path.GetFullPath(altPath); // normalize + if (File.Exists(altPath)) { + helpFilePath = altPath; + } + } string url = "file://" + helpFilePath; //url = url.Replace("#", "%23"); Debug.WriteLine("Requesting help URL: " + url); diff --git a/docs/sgmanual/index.html b/docs/sgmanual/index.html index 5c1d9c3..139c156 100644 --- a/docs/sgmanual/index.html +++ b/docs/sgmanual/index.html @@ -18,6 +18,16 @@ and 65816 code. The official web site is

If you want to get up to speed quickly, start with the tutorials.

+ +

Contents