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

Function GetUrlFromPath

Apps/ValidationTests/Win32/App.cpp:51–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

InitializeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected