mirror of
https://github.com/decompals/wibo.git
synced 2025-12-16 00:17:04 +00:00
Everything needed to run simple Rust programs (#40)
* Everything needed to run simple Rust programs * Add IsDBCSLeadByte implementation * Address PR comments
This commit is contained in:
@@ -15,6 +15,11 @@ namespace files {
|
||||
std::string str = inStr;
|
||||
std::replace(str.begin(), str.end(), '\\', '/');
|
||||
|
||||
// Remove "//?/" prefix
|
||||
if (str.rfind("//?/", 0) == 0) {
|
||||
str.erase(0, 4);
|
||||
}
|
||||
|
||||
// Remove the drive letter
|
||||
if (str.rfind("z:/", 0) == 0 || str.rfind("Z:/", 0) == 0) {
|
||||
str.erase(0, 2);
|
||||
|
||||
Reference in New Issue
Block a user