Mentions légales du service

Skip to content
Snippets Groups Projects
Commit ae39c0af authored by bkerbl's avatar bkerbl
Browse files

Short path for remote

parent 4775060e
No related branches found
No related tags found
1 merge request!40core/utils: fix installDirectory method in linux
...@@ -123,6 +123,9 @@ int main(int ac, char** av) { ...@@ -123,6 +123,9 @@ int main(int ac, char** av) {
RemoteAppArgs myArgs; RemoteAppArgs myArgs;
myArgs.displayHelpIfRequired(); myArgs.displayHelpIfRequired();
if(!myArgs.dataset_path.isInit() && myArgs.pathShort.isInit())
myArgs.dataset_path = myArgs.pathShort.get();
const bool doVSync = !myArgs.vsync; const bool doVSync = !myArgs.vsync;
// rendering size // rendering size
uint rendering_width = myArgs.rendering_size.get()[0]; uint rendering_width = myArgs.rendering_size.get()[0];
......
...@@ -42,6 +42,7 @@ namespace sibr { ...@@ -42,6 +42,7 @@ namespace sibr {
/// Arguments for all ULR applications. /// Arguments for all ULR applications.
struct RemoteAppArgs : struct RemoteAppArgs :
virtual BasicIBRAppArgs { virtual BasicIBRAppArgs {
RequiredArg<std::string> pathShort = {"s", "path to the dataset root"};
Arg<bool> loadImages = { "load_images", "Whether or not to load images for scene overview" }; Arg<bool> loadImages = { "load_images", "Whether or not to load images for scene overview" };
Arg<std::string> ip = { "ip", "127.0.0.1", "Target IP to connect to (default localhost)"}; Arg<std::string> ip = { "ip", "127.0.0.1", "Target IP to connect to (default localhost)"};
Arg<uint> port = { "port", 6009, "Port to use for connection" }; Arg<uint> port = { "port", 6009, "Port to use for connection" };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment