1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-28 02:30:05 +00:00

Projucer: Fixed assertion in last commit when not on Windows

This commit is contained in:
ed 2017-05-12 12:47:26 +01:00
parent f50aaab946
commit c25727c64a

View file

@ -110,17 +110,17 @@ private:
File getFakeFile() const
{
#if JUCE_WINDOWS
if (FileHelpers::isAbsolutePath (path))
{
#if JUCE_WINDOWS
// This is a hack to convert unix-style absolute paths into valid absolute Windows paths to avoid hitting
// an assertion in File::parseAbsolutePath().
if (path.startsWithChar (L'/') || path.startsWithChar (L'$') || path.startsWithChar (L'~'))
return File (String ("C:\\") + FileHelpers::windowsStylePath (path.substring (1)));
#endif
return File (path);
}
#endif
// This method gets called very often, so we'll cache this directory.
static const File currentWorkingDirectory (File::getCurrentWorkingDirectory());