options: add the controller to the options manager
This commit is contained in:
parent
8fc48bc11a
commit
cdf088e2a1
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue