summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-12-25 16:05:11 -0500
committerJune McEnroe <june@causal.agency>2018-12-25 16:05:11 -0500
commite40a2d2ec2cebb032fd1f5badb102445ab9384e6 (patch)
treef94fce9f75df38982a4a5637c3687db655f0a831
parentAdd AGPLv3 text (diff)
downloadplay-e40a2d2ec2cebb032fd1f5badb102445ab9384e6.tar.gz
play-e40a2d2ec2cebb032fd1f5badb102445ab9384e6.zip
Add AGPL notice on exit
-rw-r--r--play.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/play.c b/play.c
index b062a0f..707c6c7 100644
--- a/play.c
+++ b/play.c
@@ -148,6 +148,7 @@ static void draw(size_t new) {
 int main(void) {
 	struct Score new = { .date = time(NULL) };
 	new.score = play2048();
+
 	FILE *file = scoresOpen("2048.scores");
 	scoresRead(file);
 	size_t index = scoresInsert(new);
@@ -168,4 +169,9 @@ int main(void) {
 	curs_set(0);
 	getch();
 	endwin();
+
+	printf(
+		"This program is AGPLv3 Free Software!\n"
+		"Code is available from <https://code.causal.agency/june/play>.\n"
+	);
 }