gamecore/modules: remove some instance of hardcoded path
This commit is contained in:
parent
7534d28770
commit
610c65491c
2 changed files with 6 additions and 3 deletions
|
@ -1,4 +1,5 @@
|
||||||
local Font = require "core.modules.assets.fonts"
|
local cwd = (...):gsub('%.imagefonts$', '') .. "."
|
||||||
|
local Font = require(cwd.. "fonts")
|
||||||
local ImageFont = Font:extend()
|
local ImageFont = Font:extend()
|
||||||
|
|
||||||
function ImageFont:new(filename, extraspacing)
|
function ImageFont:new(filename, extraspacing)
|
||||||
|
|
|
@ -22,9 +22,11 @@
|
||||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
]]
|
]]
|
||||||
|
|
||||||
|
local cwd = (...):gsub('%.scenes$', '') .. "."
|
||||||
|
|
||||||
local Scene = Object:extend()
|
local Scene = Object:extend()
|
||||||
local Assets = require "core.modules.assets"
|
local Assets = require(cwd .. "assets")
|
||||||
local MenuSystem = require "core.modules.menusystem"
|
local MenuSystem = require(cwd .. "menusystem")
|
||||||
|
|
||||||
function Scene:new()
|
function Scene:new()
|
||||||
self.mouse = {}
|
self.mouse = {}
|
||||||
|
|
Loading…
Reference in a new issue