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.
lean4game/server/Main.lean

14 lines
465 B
Plaintext

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