parent
5c3ab1d1b9
commit
7daef79d2a
|
@ -167,21 +167,28 @@ Url::Url()
|
||||||
Url::Url(const std::string& str, CelestiaCore *core):
|
Url::Url(const std::string& str, CelestiaCore *core):
|
||||||
urlStr(str),
|
urlStr(str),
|
||||||
appCore(core),
|
appCore(core),
|
||||||
|
nbBodies(-1),
|
||||||
pauseState(false),
|
pauseState(false),
|
||||||
timeSource(UseUrlTime),
|
timeSource(UseUrlTime),
|
||||||
version(2)
|
version(2)
|
||||||
{
|
{
|
||||||
std::string::size_type pos, endPrevious;
|
|
||||||
std::vector<Selection> bodies;
|
|
||||||
Simulation *sim = appCore->getSimulation();
|
|
||||||
std::map<std::string, std::string> params = parseUrlParams(urlStr);
|
|
||||||
|
|
||||||
if (urlStr.substr(0, 6) != "cel://")
|
if (urlStr.substr(0, 6) != "cel://")
|
||||||
{
|
{
|
||||||
urlStr = "";
|
urlStr = "";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::map<std::string, std::string> params = parseUrlParams(urlStr);
|
||||||
|
if (params.empty())
|
||||||
|
{
|
||||||
|
urlStr = "";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string::size_type pos, endPrevious;
|
||||||
|
std::vector<Selection> bodies;
|
||||||
|
Simulation *sim = appCore->getSimulation();
|
||||||
|
|
||||||
// Version labelling of cel URLs was only added in Celestia 1.5, cel URL
|
// Version labelling of cel URLs was only added in Celestia 1.5, cel URL
|
||||||
// version 2. Assume any URL without a version is version 1.
|
// version 2. Assume any URL without a version is version 1.
|
||||||
if (params["ver"] != "")
|
if (params["ver"] != "")
|
||||||
|
|
Loading…
Reference in New Issue