Closed VocalFan closed 6 months ago
As I pointed out in DMs, this seems to be caused by an incorrect conversion from &Path into UNICODE_STRING. I could fix it but it's probably best that someone with Windows does it so they can verify that it actually works.
As I pointed out in DMs, this seems to be caused by an incorrect conversion from &Path into UNICODE_STRING. I could fix it but it's probably best that someone with Windows does it so they can verify that it actually works.
We have unit tests enabled in the CI. It was designed for this kind of case so you can test your code on other platforms.
I didn't think of that, thanks.
As I pointed out in DMs, this seems to be caused by an incorrect conversion from &Path into UNICODE_STRING. I could fix it but it's probably best that someone with Windows does it so they can verify that it actually works.
We have unit tests enabled in the CI. It was designed for this kind of case so you can test your code on other platforms.
To be fair, this been for like a month... Just only an actual concern for me since we're past this on Linux-
If anybody wishes to try to correct this, I'll test it.
@ultimaweapon Tried Process Monitor...
It checks the game's param.sfo ^
But never accesses the system folder.
I did check before and after the UNICODE conversion.
Before: D:\\obSTORAGE\\dev_sys
After: D:\obSTORAGE\dev_sys
So it seems like it SHOULD try the path... But just errors?
Not a permission issue, just used fs::read_dir
to read the folder in a fresh rust project.
@ultimaweapon I figured it out. You have to append \\??\\
to the start of the path. \\??\\D:\obSTORAGE\dev_sys
According to microsoft documentation:
@ultimaweapon I figured it out. You have to append
\\??\\
to the start of the path.\\??\\D:\obSTORAGE\dev_sys
According to microsoft documentation:
Nice finding.
@ultimaweapon You can probably do a much less hacky implementation, if you do, I'll test and merge.
let mut path_str = String::from("\\??\\");
path_str.push_str(path.as_ref().to_str().unwrap());
let path = std::path::Path::new(&path_str);
Literally what I did lol
@ultimaweapon Alright, this is... Half done. We still need raw_mkdir. Which I just... Kinda gave up on doing myself.
That one should be a separated issue.
When trying to run a game, I immediately get this error:
Which this folder does exist, and was filled with the FTP wizard from my PS4: