Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] UnityHubNative doesn't retain any setting. #23

Closed
LucaFagnoni opened this issue Nov 23, 2022 · 2 comments
Closed

[BUG] UnityHubNative doesn't retain any setting. #23

LucaFagnoni opened this issue Nov 23, 2022 · 2 comments
Labels
bug Something isn't working completed
Milestone

Comments

@LucaFagnoni
Copy link
Contributor

LucaFagnoni commented Nov 23, 2022

UnityHubNatve version used is 1.5
Anytime I close and reopen the application no project, installed editor version or install search path is retained.
Both Unity Hub and UnityHubnative are installed in my D:/ drive, my pc is running Windows 11 Home 21H2 build 22000.1281.

@Ravbug
Copy link
Owner

Ravbug commented Nov 27, 2022

Are your projects stored on your boot drive or a different drive?

If you want to see exactly why it's not loading the data, you can set a breakpoint in interface_derived.cpp:194 and then step through.

@Ravbug Ravbug added the bug Something isn't working label Nov 27, 2022
@Ravbug Ravbug added this to the 1.51 milestone Nov 27, 2022
@LucaFagnoni
Copy link
Contributor Author

LucaFagnoni commented Nov 27, 2022

The projects are stored in D: also (not boot drive)

I found that datapath returns an invalid path : L"\Users\Luca\AppData\Roaming\UnityHubNative\projects.txt"
image

I patched it like this and it doesn't fail the file check: L"C:\Users\Luca\AppData\Roaming\UnityHubNative\projects.txt"
image
image

The problem now is that apparently the application can't write to 'Roaming' folder (I created the projects.txt file myself for testing)
Once built everything works fine and the settings are saved correctly.

Ravbug added a commit that referenced this issue Nov 28, 2022
(#23) Fix Windows settings path, Fix VS2022 build error
@Ravbug Ravbug closed this as completed Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working completed
Projects
None yet
Development

No branches or pull requests

2 participants