예제 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="location"></param>
        /// <returns></returns>
        private static string BaseDirectoryPath(OSXDataLocation location)
        {
            string path = "";

            switch (location)
            {
            case OSXDataLocation.GameFolder:
                path = Application.dataPath + "/";
                break;

            case OSXDataLocation.LocalApplicationData:
                path = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "/";
                break;

            case OSXDataLocation.MyDocuments:
                path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "/";
                break;

            case OSXDataLocation.MyGames:
                path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "/My Games/";
                break;
            }

            return("");
        }
예제 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="location"></param>
 private void CheckDirectories(OSXDataLocation location)
 {
 }
예제 #3
0
 /// <summary>
 /// Get absolute path to OSX data location, including game name and child folder
 /// </summary>
 /// <param name="location">Location to find <seealso cref="OSXDataLocation"/></param>
 /// <param name="GameFolderName">Name of the games folder</param>
 /// <param name="folder">Folder to find <seealso cref="Folders"/></param>
 /// <returns>Path to location</returns>
 public static string GetFolderPath(OSXDataLocation location, string GameFolderName, Folders folder)
 {
     return(BaseDirectoryPath(location) + GameFolderName + "/" + folder.ToString() + "/");
 }
예제 #4
0
 /// <summary>
 /// Get absolute path to OSX data location
 /// </summary>
 /// <param name="location">Location to find <seealso cref="OSXDataLocation"/></param>
 /// <returns>Path to location</returns>
 public static string GetDirectoryPath(OSXDataLocation location)
 {
     return(BaseDirectoryPath(location));
 }