-
Notifications
You must be signed in to change notification settings - Fork 10
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
switch: have savefiles specific to each user #2
Conversation
Like skyrim.
Maybe move |
Yeah, I figure I'll just move the whole thing with usernames to startup. For the c strings, I guess I'll just make username a c++ string then to assign the profile username I'll just do
(I'm not very proficient with how c does strings, I just use c++'s strings most of the time) |
Should be good now. |
Builds now. |
Probably doesn't really work because I didn't do the RC checks (like in the example) and what not. |
It works, although I'm going to change it a little bit. |
Now that I think about it, it could be a bad idea because usernames can contain UTF-8 and I have no idea if that's handled correctly in the fs driver. |
I think boost has built in support for UTF8? |
Boost might, however |
Does libnx's functions return it in utf8? |
Yes. I have obtained the error message it crashes with and it seems to indicate that
|
It's actually possible to create a folder with Cyrillic in the name, but not Japanese. Wonder why. |
For now I think a band-aid fix would be to detect if the username is non ASCII, and if it is just use the fall back. |
Maybe you might get a result with messing around with the locales?
|
Nah, it seems to be a bug with fs. It just doesn't deal with certain character ranges apparently. |
Like skyrim.
(I haven't even tested out or compiled these changes, so they are probably horribly unsafe and won't compile)