1#ifndef YAZE_APP_CORE_PLATFORM_FILE_DIALOG_H
2#define YAZE_APP_CORE_PLATFORM_FILE_DIALOG_H
24 const std::string &folder_path);
26 const std::string &folder_path);
38std::string
GetFileName(
const std::string &filename);
39std::string
LoadFile(
const std::string &filename);
43void SaveFile(
const std::string &filename,
const std::string &data,
static std::vector< std::string > GetFilesInFolder(const std::string &folder_path)
static std::string ShowOpenFileDialog()
ShowOpenFileDialog opens a file dialog and returns the selected filepath.
static std::string ShowOpenFolderDialog()
ShowOpenFolderDialog opens a file dialog and returns the selected folder path.
static std::vector< std::string > GetSubdirectoriesInFolder(const std::string &folder_path)
std::string GetBundleResourcePath()
GetBundleResourcePath returns the path to the bundle resource directory. Specific to MacOS.
std::string LoadFile(const std::string &filename)
std::string GetConfigDirectory(Platform platform)
std::string LoadConfigFile(const std::string &filename)
void SaveFile(const std::string &filename, const std::string &contents, Platform platform)
std::string GetFileName(const std::string &filename)
std::string GetFileExtension(const std::string &filename)
Main namespace for the application.