options: add the controller to the options manager

This commit is contained in:
Kazhnuz 2019-04-14 18:08:52 +02:00
parent 8fc48bc11a
commit cdf088e2a1

View file

@ -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()