CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
Path: blob/master/UWP/UWPHelpers/StorageManager.h
Views: 1401
// Copyright (c) 2023- PPSSPP Project.12// This program is free software: you can redistribute it and/or modify3// it under the terms of the GNU General Public License as published by4// the Free Software Foundation, version 2.0 or later versions.56// This program is distributed in the hope that it will be useful,7// but WITHOUT ANY WARRANTY; without even the implied warranty of8// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9// GNU General Public License 2.0 for more details.1011// A copy of the GPL 2.0 should have been included with the program.12// If not, see http://www.gnu.org/licenses/1314// Official git repository and contact information can be found at15// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.1617#pragma once1819#include <list>20#include <set>21#include <string>2223#include "Common/File/DirListing.h"24#include "StoragePickers.h"2526// Locations27std::string GetPSPFolder(); // Where main data is, default is app data28std::string GetInstallationFolder();29std::string GetLocalFolder();30std::string GetTempFolder();31std::string GetTempFile(std::string name);32std::string GetPicturesFolder(); // Requires 'picturesLibrary' capability33std::string GetVideosFolder(); // Requires 'videosLibrary' capability34std::string GetDocumentsFolder(); // Requires 'documentsLibrary' capability35std::string GetMusicFolder(); // Requires 'musicLibrary' capability36std::string GetPreviewPath(std::string path);37bool isLocalState(std::string path);3839// Management40// `GetFileStreamFromApp` Will use Windows UWP API, use it instead of fopen..etc41FILE* GetFileStreamFromApp(std::string path, const char* mode);4243// 'driveName' like C:44bool CheckDriveAccess(std::string driveName);45bool GetFakeFolders(Path path, std::vector<File::FileInfo>* files, const char* filter, std::set<std::string> filters);46bool IsRootForAccessibleItems(std::string path);4748// Helpers49bool OpenFile(std::string path);50bool OpenFolder(std::string path);51std::string ResolvePathUWP(std::string path);52bool GetDriveFreeSpace(Path path, int64_t& space);5354// Log helpers55std::string GetLogFile();565758