Exemplo n.º 1
0
    private void OnApplicationQuit()
    {
#if UNITY_STANDALONE_WIN
        try
        {
            DriveMapper.UnmapDrive(_driveLetter);
        }
        catch
        {
        }
#endif
    }
Exemplo n.º 2
0
    private string GetTempPath()
    {
#if UNITY_STANDALONE_WIN
        try
        {
            _driveLetter = DriveMapper.SafeMapDrive(Application.temporaryCachePath);
            return($"{_driveLetter}:");
        }
        catch (Win32Exception e)
        {
            Debug.Log("Mapping failed: " + e.Message);
            Debug.Log("Using long temp path. Long song names may not convert correctly due to path size.");
            return(Application.temporaryCachePath);
        }
#else
        return(Application.temporaryCachePath);
#endif
    }