Skip to content

Commit

Permalink
Changed script path
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyjor committed Jul 19, 2023
1 parent 4ef46bc commit 173ac11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions editor/Editor/Editor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ module Editor

# create window
game = C_NULL #Entry.run(true)
window = glfwCreateWindow(1920, 1080, "Demo", C_NULL, C_NULL)
window = glfwCreateWindow(1920, 1080, "JulGame v0.0.2", C_NULL, C_NULL)
@assert window != C_NULL
glfwMakeContextCurrent(window)
glfwSwapInterval(1) # enable vsync
Expand Down Expand Up @@ -343,10 +343,10 @@ module Editor
@cstatic begin
CImGui.Begin("Play & Build")
entryPath = "$(joinpath(projectPath, "projectFiles", "src"))"
scriptPath = "$(joinpath(pwd(), "..", "Scripts", "RunScene.bat"))"
scriptPath = "$(joinpath(pwd(), "..", "EditorScripts", "RunScene.bat"))"

try
CImGui.Button("Play") && (Threads.@spawn Base.run(`cmd /c $scriptPath $entryPath`);)
CImGui.Button("Play") && (Threads.@spawn Base.run(`cmd /c $scriptPath $entryPath`); println("Running $scriptPath $entryPath"))
catch e
println(e)
end
Expand Down

0 comments on commit 173ac11

Please sign in to comment.