gamecore/modules: remove some instance of hardcoded path

This commit is contained in:
Kazhnuz 2019-03-16 14:56:46 +01:00
parent 7534d28770
commit 610c65491c
2 changed files with 6 additions and 3 deletions

View file

@ -1,4 +1,5 @@
local Font = require "core.modules.assets.fonts"
local cwd = (...):gsub('%.imagefonts$', '') .. "."
local Font = require(cwd.. "fonts")
local ImageFont = Font:extend()
function ImageFont:new(filename, extraspacing)

View file

@ -22,9 +22,11 @@
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
]]
local cwd = (...):gsub('%.scenes$', '') .. "."
local Scene = Object:extend()
local Assets = require "core.modules.assets"
local MenuSystem = require "core.modules.menusystem"
local Assets = require(cwd .. "assets")
local MenuSystem = require(cwd .. "menusystem")
function Scene:new()
self.mouse = {}