mirror of https://github.com/odrling/Aegisub
Set ?dictionary to the correct thing on OS X. Closes #1766.
This commit is contained in:
parent
882e6894ff
commit
056a775751
|
@ -45,14 +45,15 @@ void Path::FillPlatformSpecificPaths() {
|
||||||
SetToken("?user", home/".aegisub");
|
SetToken("?user", home/".aegisub");
|
||||||
SetToken("?local", home/".aegisub");
|
SetToken("?local", home/".aegisub");
|
||||||
SetToken("?data", P_DATA);
|
SetToken("?data", P_DATA);
|
||||||
|
SetToken("?dictionary", "/usr/share/hunspell");
|
||||||
#else
|
#else
|
||||||
agi::fs::path app_support = agi::util::GetApplicationSupportDirectory();
|
agi::fs::path app_support = agi::util::GetApplicationSupportDirectory();
|
||||||
SetToken("?user", app_support/"Aegisub");
|
SetToken("?user", app_support/"Aegisub");
|
||||||
SetToken("?local", app_support/"Aegisub");
|
SetToken("?local", app_support/"Aegisub");
|
||||||
SetToken("?data", agi::util::GetBundleSharedSupportDirectory());
|
SetToken("?data", agi::util::GetBundleSharedSupportDirectory());
|
||||||
|
SetToken("?dictionary", agi::util::GetBundleSharedSupportDirectory() + "/dictionaries");
|
||||||
#endif
|
#endif
|
||||||
SetToken("?temp", boost::filesystem::temp_directory_path());
|
SetToken("?temp", boost::filesystem::temp_directory_path());
|
||||||
SetToken("?dictionary", "/usr/share/hunspell");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue