Skip to content

Commit

Permalink
is test mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyjor committed Aug 11, 2024
1 parent 74bf308 commit 72b66e2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/editor/JulGameEditor/Editor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module Editor
include.(filter(contains(r".jl$"), readdir(joinpath(@__DIR__, "Utils"); join=true)))
include.(filter(contains(r".jl$"), readdir(joinpath(@__DIR__, "Windows"); join=true)))

function run(isTestMode::Bool=false)
function run(is_test_mode::Bool=false)
info = init_sdl_and_imgui()
window, renderer, ctx, io, clear_color = info[1], info[2], info[3], info[4], info[5]
startingSize = ImVec2(1920, 1080)
Expand Down Expand Up @@ -322,7 +322,7 @@ module Editor
end
CImGui.End()
catch e
log_exceptions("Entity Inspector Window Error:", latest_exceptions, e, isTestMode)
log_exceptions("Entity Inspector Window Error:", latest_exceptions, e, is_test_mode)
end

try
Expand Down Expand Up @@ -374,7 +374,7 @@ module Editor
end
CImGui.End()
catch e
log_exceptions("UI Inspector Window Error:", latest_exceptions, e, isTestMode)
log_exceptions("UI Inspector Window Error:", latest_exceptions, e, is_test_mode)
end

SDL2.SDL_SetRenderTarget(renderer, sceneTexture)
Expand Down Expand Up @@ -404,9 +404,9 @@ module Editor
#################################################

SDL2.SDL_RenderPresent(renderer);
if isTestMode && testFrameCount < testFrameLimit
if is_test_mode && testFrameCount < testFrameLimit
testFrameCount += 1
elseif isTestMode
elseif is_test_mode
quit = true
end
catch e
Expand Down

0 comments on commit 72b66e2

Please sign in to comment.