We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c25e7b commit cc347b6Copy full SHA for cc347b6
1 file changed
tools/gltf_importer/src/writer.cpp
@@ -49,8 +49,10 @@ namespace {
49
};
50
51
std::string getRomPath(const std::string &path) {
52
- if(path.find("filesystem/") == 0) {
53
- return std::string("rom:/") + path.substr(11);
+ std::string basDir = "filesystem/";
+ auto fsPos = path.find(basDir);
54
+ if(fsPos != std::string::npos) {
55
+ return std::string("rom:/") + path.substr(fsPos + basDir.length());
56
}
57
return path;
58
0 commit comments