From d5c32fc3f885a7b8f719c9f27dbba36e287222f0 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 13 Dec 2016 19:24:06 -0500 Subject: Bot now takes path to config file as argument That config file now also has to contain the paths to the verbly datafile, the forms file, the fonts directory, and the color palettes file. --- fractal.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fractal.cpp') diff --git a/fractal.cpp b/fractal.cpp index 145886a..a911177 100644 --- a/fractal.cpp +++ b/fractal.cpp @@ -508,7 +508,7 @@ int Fractal::load(const char* filename, Fractal& fractal) return 0; } -Fractal Fractal::random() +Fractal Fractal::random(std::string colorsfile) { Fractal fractal; @@ -577,10 +577,10 @@ Fractal Fractal::random() } std::vector colors; - std::ifstream colorfile("colors.txt"); + std::ifstream colorfile(colorsfile); if (!colorfile.is_open()) { - std::cout << "Could not find colors.txt" << std::endl; + std::cout << "Could not find colors file" << std::endl; exit(-1); } -- cgit 1.4.1