1 // This file is part of VSTGUI. It is subject to the license terms 2 // in the LICENSE file found in the top-level directory of this 3 // distribution and at http://github.com/steinbergmedia/vstgui/LICENSE 4 5 #pragma once 6 7 #include "../../../include/icommondirectories.h" 8 9 //------------------------------------------------------------------------ 10 namespace VSTGUI { 11 namespace Standalone { 12 namespace Platform { 13 namespace Win32 { 14 15 //------------------------------------------------------------------------ 16 class CommonDirectories : public ICommonDirectories 17 { 18 public: 19 CommonDirectories (); 20 21 Optional<UTF8String> get (CommonDirectoryLocation location, const UTF8String& subDir, 22 bool create = false) const override; 23 24 void setAppResourcePath (const UTF8String& path); 25 26 private: 27 Optional<UTF8String> getLocalAppDataPath (const UTF8String& dir, const UTF8String& subDir, 28 bool create) const; 29 Optional<UTF8String> getAppPath () const; 30 31 UTF8String localAppDataPath; 32 UTF8String appResourcePath; 33 }; 34 35 //------------------------------------------------------------------------ 36 } // Win32 37 } // Platform 38 } // Standalone 39 } // VSTGUI 40