wchar_t dir[512];
MultiByteToWideChar (CP_UTF8, 0, directory_containing_executable().string().c_str(), -1, dir, sizeof(dir));
- SetCurrentDirectory (dir);
STARTUPINFO startup_info;
ZeroMemory (&startup_info, sizeof (startup_info));
PROCESS_INFORMATION process_info;
ZeroMemory (&process_info, sizeof (process_info));
- if (!CreateProcess (0, command, 0, 0, TRUE, CREATE_NO_WINDOW, 0, 0, &startup_info, &process_info)) {
+ if (!CreateProcess (0, command, 0, 0, TRUE, CREATE_NO_WINDOW, 0, dir, &startup_info, &process_info)) {
LOG_ERROR_NC (N_("ffprobe call failed (could not CreateProcess)"));
return;
}
boost::filesystem::path
-shared_path ()
+resources_path ()
{
return directory_containing_executable().parent_path();
}
+boost::filesystem::path
+xsd_path ()
+{
+ return directory_containing_executable().parent_path() / "xsd";
+}
+
+
+boost::filesystem::path
+tags_path ()
+{
+ return directory_containing_executable().parent_path() / "tags";
+}
+
+
boost::filesystem::path
openssl_path ()
{
&geom, sizeof(geom), &returned, 0
);
- LOG_DISK("Having a looky through %1 locked volumes", locked_volumes.size());
+ LOG_DISK("Having a look through %1 locked volumes", locked_volumes.size());
bool locked = false;
for (vector<pair<HANDLE, string> >::const_iterator i = locked_volumes.begin(); i != locked_volumes.end(); ++i) {
if (i->second == physical_drive) {