18 lines
581 B
Lua
18 lines
581 B
Lua
|
require "api.platform"
|
||
|
|
||
|
local FileSys = require "api.platform.filesys_impl"
|
||
|
|
||
|
if os.name() == Platform.WINDOWS then
|
||
|
require "api.platform.win.filesys"
|
||
|
elseif os.name() == Platform.LINUX then
|
||
|
require "api.platform.linux.filesys"
|
||
|
elseif os.name() == Platform.MACOS then
|
||
|
game.Log("MacOS specific implementation missing, loading linux filesys module", game.LOGGER_WARNING)
|
||
|
require "api.platform.linux.filesys"
|
||
|
else
|
||
|
game.Log("OS Platform not recognized, loading linux filesys module", game.LOGGER_WARNING)
|
||
|
require "api.platform.linux.filesys"
|
||
|
end
|
||
|
|
||
|
return FileSys
|