aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/Game.cpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-02-25 11:13:35 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-02-25 11:13:35 +0100
commit64dec753e7a6594a8b68f7978773e80353d8e869 (patch)
treece8b862fde15c51b8b981f1d628f0d43cc2bfdc7 /src/game_tab/Game.cpp
parent6f866f55ee39c5f92c600ab33e787f628b00c1a4 (diff)
Enable PGN save (slow for now so do not use it).
Diffstat (limited to 'src/game_tab/Game.cpp')
-rw-r--r--src/game_tab/Game.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game_tab/Game.cpp b/src/game_tab/Game.cpp
index b9181a9..2b2955a 100644
--- a/src/game_tab/Game.cpp
+++ b/src/game_tab/Game.cpp
@@ -139,5 +139,8 @@ std::string Game::GetPGN() {
}
pgn += moves->GetPGN();
}
+ pgn += " " + result;
return (pgn);
-} \ No newline at end of file
+}
+
+void Game::SetResult(std::string result) { this->result = result; }