Skip to content

Commit dd2a56b

Browse files
author
AJubrey
committed
[ADDED] just a quick default path based on platform
1 parent 51ea6a0 commit dd2a56b

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

Assets/FbxExporters/Editor/InstallIntegration.cs

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,8 +682,21 @@ private static bool GetIntegrationFolder(DCCIntegration dcc){
682682

683683
private static bool DecompressIntegrationZipFile(string zipPath, DCCIntegration dcc)
684684
{
685-
// prompt user to enter location to unzip file
686-
var unzipFolder = EditorUtility.OpenFolderPanel(string.Format("Select Location to Save {0} Integration", dcc.DccDisplayName),LastIntegrationSavePath,"");
685+
string unzipFolder;
686+
switch (Application.platform)
687+
{
688+
case RuntimePlatform.OSXEditor:
689+
unzipFolder = "/Applications/Autodesk";
690+
break;
691+
case RuntimePlatform.WindowsEditor:
692+
unzipFolder = "C:/Program Files/Autodesk";
693+
break;
694+
default:
695+
throw new System.NotImplementedException();
696+
}
697+
698+
// prompt user to enter location to unzip file IF THEY WANT TO BE PROMPTED/////
699+
unzipFolder = EditorUtility.OpenFolderPanel(string.Format("Select Location to Save {0} Integration", dcc.DccDisplayName),LastIntegrationSavePath,"");
687700
if (string.IsNullOrEmpty (unzipFolder)) {
688701
// user has cancelled, do nothing
689702
return false;

0 commit comments

Comments
 (0)