initialise app with a file path, for the functionality of loading different files from the terminal

This commit is contained in:
2025-08-26 15:56:52 +01:00
parent a98ca50cf5
commit dcd3c3117e
5 changed files with 36 additions and 14 deletions

View File

@@ -2,7 +2,7 @@ structure InitGlfw =
struct
open CML
fun init () =
fun init path () =
let
(* Set up GLFW. *)
val _ = Glfw.init ()
@@ -20,6 +20,7 @@ struct
, Constants.windowHeight
, Constants.initialWidthClickPoints
, Constants.initialHeightClickPoints
, path
)
val graphLines = GraphLines.generate initialModel
@@ -59,6 +60,6 @@ struct
()
end
fun main () =
(RunCML.doit (init, NONE); ())
fun main path =
(RunCML.doit (init path, NONE); ())
end