Merge pull request #37 from ebbit1q/fix_compile

fix compile error
This commit is contained in:
GenevensiS
2025-04-14 15:38:38 +02:00
committed by GitHub
+1 -1
View File
@@ -31,7 +31,7 @@ bool Font::PreloadResourceFonts(String fontsDirectoryPath, bool recursive) {
#if wxUSE_PRIVATE_FONTS #if wxUSE_PRIVATE_FONTS
String pathSeparator(wxFileName::GetPathSeparator()); String pathSeparator(wxFileName::GetPathSeparator());
String appPath( wxFileName(wxStandardPaths::Get().GetExecutablePath()).GetPath() ); String appPath( wxFileName(wxStandardPaths::Get().GetExecutablePath()).GetPath() );
fontsDirectoryPath = appPath + pathSeparator + fontsDirectoryPath + (fontsDirectoryPath.EndsWith(pathSeparator) ? wxEmptyString : pathSeparator); fontsDirectoryPath = appPath + pathSeparator + fontsDirectoryPath + (fontsDirectoryPath.EndsWith(pathSeparator) ? "" : pathSeparator);
if (!wxDirExists(fontsDirectoryPath)) return false; if (!wxDirExists(fontsDirectoryPath)) return false;