summaryrefslogtreecommitdiff
path: root/FreeFileSync/Source/RealTimeSync/application.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'FreeFileSync/Source/RealTimeSync/application.cpp')
-rw-r--r--FreeFileSync/Source/RealTimeSync/application.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/FreeFileSync/Source/RealTimeSync/application.cpp b/FreeFileSync/Source/RealTimeSync/application.cpp
index 873d1d54..785c93fc 100644
--- a/FreeFileSync/Source/RealTimeSync/application.cpp
+++ b/FreeFileSync/Source/RealTimeSync/application.cpp
@@ -47,13 +47,13 @@ bool Application::OnInit()
std::cerr << utfTo<std::string>(titleFmt + SPACED_DASH + msg) << '\n';
};
- try { imageResourcesInit(fff::getResourceDirPf() + Zstr("Icons.zip")); }
+ try { imageResourcesInit(appendPath(fff::getResourceDirPath(), Zstr("Icons.zip"))); }
catch (const FileError& e) { logInitError(e.toString()); }
//errors are not really critical in this context
//GTK should already have been initialized by wxWidgets (see \src\gtk\app.cpp:wxApp::Initialize)
#if GTK_MAJOR_VERSION == 2
- ::gtk_rc_parse((fff::getResourceDirPf() + "Gtk2Styles.rc").c_str());
+ ::gtk_rc_parse(appendPath(fff::getResourceDirPath(), "Gtk2Styles.rc").c_str());
//fix hang on Ubuntu 19.10 (see FFS's application.cpp)
g_vfs_get_default(); //returns unowned GVfs*
@@ -115,7 +115,7 @@ bool Application::OnInit()
try
{
- fff::localizationInit(fff::getResourceDirPf() + Zstr("Languages.zip")); //throw FileError
+ fff::localizationInit(appendPath(fff::getResourceDirPath(), Zstr("Languages.zip"))); //throw FileError
fff::setLanguage(getProgramLanguage()); //throw FileError
}
catch (const FileError& e) { logInitError(e.toString()); }
bgstack15