From cdf088e2a14cea27dea7bdbff8ee6500ed65a38a Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sun, 14 Apr 2019 18:08:52 +0200 Subject: [PATCH] options: add the controller to the options manager --- gamecore/options.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gamecore/options.lua b/gamecore/options.lua index 0db97b6..39a8cd1 100644 --- a/gamecore/options.lua +++ b/gamecore/options.lua @@ -32,10 +32,11 @@ local TRANSLATION_PATH = "datas/languages/" -- INIT FUNCTIONS -- Initialize and configure the game options -function OptionsManager:new() +function OptionsManager:new(controller) -- We begin by creating an empty data table before reading the data. self.data = {} self:read() + self.controller = controller end function OptionsManager:reset()