}
}
+ TexPathList.Add(::wxGetCwd());
+
#ifdef NO_GUI
if (InputFile.empty() || OutputFile.empty())
{
wxString path = TexPathList.FindValidPath(MacroFile);
if (!path.empty())
- ReadCustomMacros((wxChar *)path.c_str());
+ ReadCustomMacros(path);
#if wxUSE_STATUSBAR
wxString inStr(_T("In "));
wxString path = TexPathList.FindValidPath(MacroFile);
if (!path.empty())
- ReadCustomMacros((wxChar*)path.c_str());
+ ReadCustomMacros(path);
Go();
if (runTwice)
if (!s.empty() && wxFileExists(s))
{
MacroFile = copystring(s);
- ReadCustomMacros((wxChar *)s.c_str());
+ ReadCustomMacros(s);
ShowCustomMacros();
}
#endif // wxUSE_FILEDLG
frame->SetTitle(buf);
}
- wxStartTimer();
+ wxLongLong localTime = wxGetLocalTimeMillis();
#endif
// Find extension-less filename
wxString buf;
#ifndef NO_GUI
- long tim = wxGetElapsedTime();
- buf.Printf(_T("Finished PASS #%d in %ld seconds.\n"), passNumber, (long)(tim/1000.0));
+ wxLongLong elapsed = wxGetLocalTimeMillis() - localTime;
+ buf.Printf(_T("Finished PASS #%d in %ld seconds.\n"), passNumber, (long)(elapsed.GetLo()/1000.0));
OnInform((wxChar *)buf.c_str());
if (errorCount)