1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-12 18:42:36 +01:00

Fix #16988: AppImage version does not show changelog (#24878)

This commit is contained in:
Michał Janiszewski
2025-08-04 14:19:25 +02:00
committed by GitHub
parent 583517fc9c
commit 38cdd71216
2 changed files with 7 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
0.4.26 (in development) 0.4.26 (in development)
------------------------------------------------------------------------ ------------------------------------------------------------------------
- Fix: [#16988] AppImage version does not show changelog.
0.4.25 (2025-08-03) 0.4.25 (2025-08-03)
------------------------------------------------------------------------ ------------------------------------------------------------------------

View File

@@ -102,7 +102,11 @@ namespace OpenRCT2::Platform
std::string GetDocsPath() std::string GetDocsPath()
{ {
static const utf8* searchLocations[] = { std::string relative = Path::GetDirectory(Platform::GetCurrentExecutablePath());
relative = Path::Combine(relative, u8"../share/doc/openrct2");
const utf8* searchLocations[] = {
// First try the directory relative to the executable
relative.c_str(),
"./doc", "./doc",
"/usr/share/doc/openrct2", "/usr/share/doc/openrct2",
DOCDIR, DOCDIR,
@@ -112,6 +116,7 @@ namespace OpenRCT2::Platform
LOG_VERBOSE("Looking for OpenRCT2 doc path at %s", searchLocation); LOG_VERBOSE("Looking for OpenRCT2 doc path at %s", searchLocation);
if (Path::DirectoryExists(searchLocation)) if (Path::DirectoryExists(searchLocation))
{ {
LOG_VERBOSE("Found OpenRCT2 doc path at %s", searchLocation);
return searchLocation; return searchLocation;
} }
} }