From 9658ef2c5bf4becdb8ab9473686d1726683510a1 Mon Sep 17 00:00:00 2001
From: Louis-Antoine <lamr@free.fr>
Date: Fri, 24 Jan 2020 17:51:20 +0100
Subject: [PATCH] Add .dat and .csv to whitelisted file extensions

---
 src/blua/liolib.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/blua/liolib.c b/src/blua/liolib.c
index 244c13d15b..4ef3b42742 100644
--- a/src/blua/liolib.c
+++ b/src/blua/liolib.c
@@ -36,11 +36,13 @@
 
 static const char *const fnames[] = {"input", "output"};
 static const char *whitelist[] = { // Allow scripters to write files of these types to SRB2's folder
-	".txt",
-	".sav2",
+	".bmp",
 	".cfg",
+	".csv",
+	".dat",
 	".png",
-	".bmp"
+	".sav2",
+	".txt",
 };
 
 
-- 
GitLab