From 86752763c8c09a8f71285f55b8cf8a6e10d8cc8d Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 22 Apr 2005 21:30:07 +0000 Subject: add a comment regarding an odd hack svn-id: r17758 --- backends/dc/dcmain.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'backends') diff --git a/backends/dc/dcmain.cpp b/backends/dc/dcmain.cpp index 2068e2f51e..d925be0747 100644 --- a/backends/dc/dcmain.cpp +++ b/backends/dc/dcmain.cpp @@ -223,8 +223,17 @@ int DCLauncherDialog::runModal() if(!selectGame(argv[2], argv[1], icon)) exit(0); + FIXME: This is an evil hack: _detector.parseCommandLine(argc, argv); + But doing it properly isn't that hard, actually: + + // Set the game path. + ConfMan.set("path", the_desired_path, kTransientDomain); + + // Set the target. + _detector.setTarget(target_name); + return 0; } -- cgit v1.2.3