MCPcopy Create free account
hub / github.com/BabylonJS/BabylonNative / GetUrlFromPath

Function GetUrlFromPath

Apps/Playground/Win32/App.cpp:45–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 }
44
45 std::string GetUrlFromPath(const std::filesystem::path& path)
46 {
47 char url[1024];
48 DWORD length = ARRAYSIZE(url);
49 HRESULT hr = UrlCreateFromPathA(path.u8string().data(), url, &length, 0);
50 if (FAILED(hr))
51 {
52 throw std::exception("Failed to create url from path", hr);
53 }
54
55 return {url};
56 }
57
58 std::vector<std::string> GetCommandLineArguments()
59 {

Callers 1

RefreshBabylonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected