yaze 0.2.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
file_dialog.h
Go to the documentation of this file.
1#ifndef YAZE_APP_CORE_PLATFORM_FILE_DIALOG_H
2#define YAZE_APP_CORE_PLATFORM_FILE_DIALOG_H
3
4#include <string>
5#include <vector>
6
7namespace yaze {
8namespace core {
9
11 public:
16 static std::string ShowOpenFileDialog();
17
22 static std::string ShowOpenFolderDialog();
23 static std::vector<std::string> GetSubdirectoriesInFolder(
24 const std::string &folder_path);
25 static std::vector<std::string> GetFilesInFolder(
26 const std::string &folder_path);
27};
28
34
36
37std::string GetFileExtension(const std::string &filename);
38std::string GetFileName(const std::string &filename);
39std::string LoadFile(const std::string &filename);
40std::string LoadConfigFile(const std::string &filename);
41std::string GetConfigDirectory(Platform platform);
42
43void SaveFile(const std::string &filename, const std::string &data,
44 Platform platform);
45
46} // namespace core
47} // namespace yaze
48
49#endif // YAZE_APP_CORE_PLATFORM_FILE_DIALOG_H
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.
Definition controller.cc:18