aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/diceparser.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2015-05-22 00:05:05 +0200
committerRenaud G <renaud@rolisteam.org>2015-05-22 00:05:05 +0200
commit8742b3b8669f85df3c15196f0a51f43d932c0c93 (patch)
tree1e8ff896e357efed25aeab817aed0b3e7baabce3 /diceparser.cpp
parentc8c9bffb2b439b95d5061d639ebecec07271ae01 (diff)
parent88e5130bd86992819a036ef982733b5ee344d656 (diff)
downloadOneRoll-8742b3b8669f85df3c15196f0a51f43d932c0c93.tar.gz
OneRoll-8742b3b8669f85df3c15196f0a51f43d932c0c93.zip
Merge branch 'master' of github.com:obiwankennedy/DiceParser
Diffstat (limited to 'diceparser.cpp')
-rw-r--r--diceparser.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/diceparser.cpp b/diceparser.cpp
index f8f82d6..570c96b 100644
--- a/diceparser.cpp
+++ b/diceparser.cpp
@@ -593,7 +593,10 @@ bool DiceParser::readCommand(QString& str,ExecutionNode* & node)
{
if(str=="help")
{
- node = new HelpNode();
+ HelpNode* help = new HelpNode();
+ help->setHelpPath(m_helpPath);
+ node = help;
+
}
else if(str=="la")
{
@@ -929,7 +932,8 @@ void DiceParser::writeDownDotTree(QString filepath)
QTextStream in(&file);
in << str;
}
-
- //qDebug()<< str;
-
+}
+void DiceParser::setPathToHelp(QString l)
+{
+ m_helpPath = l;
}