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:
parent
f50aaab946
commit
c25727c64a
1 changed files with 2 additions and 2 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue