Browse Source

tags/2021-05-28
jules 17 years ago
parent
commit
762a5bb0f9
3 changed files with 24 additions and 0 deletions
  1. +6
    -0
      build/linux/platform_specific_code/juce_linux_Files.cpp
  2. +6
    -0
      build/macosx/platform_specific_code/juce_mac_Files.cpp
  3. +12
    -0
      juce_amalgamated.cpp

+ 6
- 0
build/linux/platform_specific_code/juce_linux_Files.cpp View File

@@ -198,6 +198,12 @@ bool File::isOnHardDisk() const throw()
return true;
}
bool File::isOnRemovableDrive() const throw()
{
jassertfalse // xxx not implemented for linux!
return false;
}
bool File::isHidden() const throw()
{
return getFileName().startsWithChar (T('.'));


+ 6
- 0
build/macosx/platform_specific_code/juce_mac_Files.cpp View File

@@ -426,6 +426,12 @@ bool File::isOnHardDisk() const throw()
return ! (isOnCDRomDrive() || isFileOnDriveType (this, (const char**) nonHDTypes));
}

bool File::isOnRemovableDrive() const throw()
{
jassertfalse // xxx not implemented for mac!
return false;
}

static bool juce_isHiddenFile (const String& path) throw()
{
FSRef ref;


+ 12
- 0
juce_amalgamated.cpp View File

@@ -244318,6 +244318,12 @@ bool File::isOnHardDisk() const throw()
return true;
}

bool File::isOnRemovableDrive() const throw()
{
jassertfalse // xxx not implemented for linux!
return false;
}

bool File::isHidden() const throw()
{
return getFileName().startsWithChar (T('.'));
@@ -252245,6 +252251,12 @@ bool File::isOnHardDisk() const throw()
return ! (isOnCDRomDrive() || isFileOnDriveType (this, (const char**) nonHDTypes));
}

bool File::isOnRemovableDrive() const throw()
{
jassertfalse // xxx not implemented for mac!
return false;
}

static bool juce_isHiddenFile (const String& path) throw()
{
FSRef ref;


Loading…
Cancel
Save