# HG changeset patch # User Teemu Piippo # Date 1433691079 -10800 # Node ID 5e4bd3b212ce267c89829652176e4e9afe1db3ae # Parent 5dc8b48f80b3746c5e91230629ddd83c5d031dc9 Fixed the demo not loading properly when the user is prompted for the binary path diff -r 5dc8b48f80b3 -r 5e4bd3b212ce launcher/demo.cpp --- a/launcher/demo.cpp Sun Jun 07 18:11:06 2015 +0300 +++ b/launcher/demo.cpp Sun Jun 07 18:31:19 2015 +0300 @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -165,6 +166,10 @@ uint8 connectionType; }; +// +// ------------------------------------------------------------------------------------------------- +// + struct DemoHeaders { uint8 length; @@ -174,6 +179,10 @@ uint8 wads; }; +// +// ------------------------------------------------------------------------------------------------- +// + int launchDemo (QString path) { QFile f (path); @@ -302,6 +311,9 @@ if (not prompt->exec()) return 1; + + version = findVersion (zanversion); + assert (not version.name.isNull()); } QString iwadpath;