Skip to content

Comments

Use proper API to get path to MyDocuments#1

Open
erik-smit wants to merge 2 commits intoSquidGodDev:mainfrom
erik-smit:main
Open

Use proper API to get path to MyDocuments#1
erik-smit wants to merge 2 commits intoSquidGodDev:mainfrom
erik-smit:main

Conversation

@erik-smit
Copy link

The original code fails for me because my My Documents is located in OneDrive and also it's not in English.

Maybe putting the SDK in the OneDrive My Documents is not ideal, but it's the default in the installer.
Also, use cd to check if the SDK is reachable.

PS C:\Users\erikl> cd $env:PLAYDATE_SDK_PATH
cd : Cannot find path 'C:\Users\erikl\Documents\PlaydateSDK' because it does not exist.
At line:1 char:1
+ cd $env:PLAYDATE_SDK_PATH
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\erikl\Documents\PlaydateSDK:String) [Set-Location], ItemNotFou
   ndException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand

The original code fails for me because my My Documents is located in OneDrive and also it's not in English.

Maybe putting the SDK in the OneDrive My Documents is not ideal, but it's the default in the installer.
Also, use cd to check if the SDK is reachable.

```
PS C:\Users\erikl> cd $env:PLAYDATE_SDK_PATH
cd : Cannot find path 'C:\Users\erikl\Documents\PlaydateSDK' because it does not exist.
At line:1 char:1
+ cd $env:PLAYDATE_SDK_PATH
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\erikl\Documents\PlaydateSDK:String) [Set-Location], ItemNotFou
   ndException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant