aboutsummaryrefslogtreecommitdiffstats
path: root/games/golly/files/patch-gui-wx_wxhelp.cpp
blob: 4ec34bc656153051ce346810a71916b795202d75 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Set DATADIR url to Help pages

--- gui-wx/wxhelp.cpp.orig	2022-04-19 11:02:31 UTC
+++ gui-wx/wxhelp.cpp
@@ -168,7 +168,7 @@ long whenactive;              // when help window beca
 
 long whenactive;              // when help window became active (elapsed millisecs)
 
-const wxString helphome = _("Help/index.html");    // contents page
+const wxString helphome = _("%%DATADIR%%/Help/index.html");    // contents page
 wxString currhelp = helphome;                      // current help file
 const wxString lexicon_name = _("lexicon");        // name of lexicon layer
 
@@ -1322,7 +1322,7 @@ void ShowAboutBox()
 #ifdef __WXMAC__
     html->SetFontSizes(helpfontsize);
 #endif
-    html->CheckAndLoad(_("Help/about.html"));
+    html->CheckAndLoad(_("%%DATADIR%%/Help/about.html"));
     
     // avoid HtmlView::OnSize calling CheckAndLoad again
     html->canreload = false;