change to /usr/share/wx/version
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1087,6 +1087,18 @@ const wxChar *wxGetInstallPrefix()
|
||||
#endif
|
||||
}
|
||||
|
||||
wxString wxGetDataDir()
|
||||
{
|
||||
wxString format = wxGetInstallPrefix();
|
||||
format << wxFILE_SEP_PATH
|
||||
<< wxT("share") << wxFILE_SEP_PATH
|
||||
<< wxT("wx") << wxFILE_SEP_PATH
|
||||
<< wxT("%i.%i");
|
||||
wxString dir;
|
||||
dir.Printf(format.c_str(), wxMAJOR_VERSION, wxMINOR_VERSION);
|
||||
return dir;
|
||||
}
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// network and user id functions
|
||||
|
Reference in New Issue
Block a user