You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
465 B
Plaintext
14 lines
465 B
Plaintext
2 years ago
|
import NNG.GameServer.Server
|
||
|
import NNG.NNG
|
||
|
|
||
|
def System.FilePath.parent! (fp : System.FilePath) : System.FilePath :=
|
||
|
match fp.parent with
|
||
|
| some path => path
|
||
|
| none => panic! "Couldn't find parent folder"
|
||
|
|
||
|
unsafe def main : IO Unit := do
|
||
|
let build_folder := (← IO.appPath).parent!.parent!
|
||
|
let paths : List System.FilePath := [build_folder/"lib",
|
||
|
(← Lean.findSysroot) / "lib" / "lean"]
|
||
|
Server.runGame `NNG paths
|