Skip to content

Conversation

@qizhihangqitingting
Copy link

I change C:\Program Files\WindowsApps into %WindowsApps%, and made such changes

I also find it can only be compile using #include "Register.hpp" instead of #include <Register.hpp>

@qizhihangqitingting
Copy link
Author

@nepnep39

std::wstring consolestring = console;

return console;
if (consolestring.find(L"Program Files\\WindowsApp") != std::wstring::npos) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the string is too long, the icon will be broken

consolestring.erase(0, 8);
consolestring = L"%Users%" + consolestring;
}
return consolestring;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shorten the consolestring, so we us that instead of console

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