summaryrefslogtreecommitdiff
path: root/src/console/ConsoleCommand.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-21 16:58:45 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-21 16:58:45 (GMT)
commitb7328e03acc683839ee84f3ea3eb12c9dfa8d8f1 (patch)
treeaa8b0954e0659c8ddfffed3ef3916191b8766624 /src/console/ConsoleCommand.h
parentfb6f36907f3fc2169916b72c572637ee07ec44d8 (diff)
downloadpowder-b7328e03acc683839ee84f3ea3eb12c9dfa8d8f1.zip
powder-b7328e03acc683839ee84f3ea3eb12c9dfa8d8f1.tar.gz
Remember Console history
Diffstat (limited to 'src/console/ConsoleCommand.h')
-rw-r--r--src/console/ConsoleCommand.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/console/ConsoleCommand.h b/src/console/ConsoleCommand.h
index f6f91a3..a40a688 100644
--- a/src/console/ConsoleCommand.h
+++ b/src/console/ConsoleCommand.h
@@ -19,6 +19,11 @@ public:
std::string Command;
int ReturnStatus;
std::string ReturnValue;
+
+ operator std::string() const
+ {
+ return Command;
+ }
};