Strip the prefix correctly.

PiperOrigin-RevId: 855297807
Change-Id: Ic182f64c451077386fdba8bfe34e8da6364b9f60
This commit is contained in:
Haroon Qureshi
2026-01-12 10:58:27 -08:00
committed by Copybara-Service
parent 7e45bbb51c
commit 071cb83fe7
+2 -1
View File
@@ -33,7 +33,8 @@ ABSL_FLAG(int, window_height, 720, "Window height");
ABSL_FLAG(std::string, model_file, "", "MuJoCo model file.");
std::string Resolve(std::string_view path) {
return std::string("assets/") + std::string(path);
std::string_view subpath = path.substr(path.find(':') + 1);
return std::string("assets/") + std::string(subpath);
}
class FileResource {