Skip to content

Commit

Permalink
fix: Confirma run tests & closes immediately after start instead of l…
Browse files Browse the repository at this point in the history
…aunching the game
  • Loading branch information
MASSHUU12 committed Aug 20, 2024
1 parent 9846644 commit e3d943c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file.

## [Unreleased]

### Fixed

- `NullReferenceException` when there is not GDScript tests.
- Confirma run tests and closes immediately after start instead of launching the game.

## [0.8.0-beta 2024-08-18]

### Added
Expand Down
10 changes: 5 additions & 5 deletions addons/confirma/src/scenes/confirma_autoload/ConfirmaAutoload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ public override void _Ready()
return;
}

if (!Props.RunTests && !Engine.IsEditorHint())
{
GetTree().Quit();
}

Props.Autoload = this;
SetupGlobals();

Expand Down Expand Up @@ -184,6 +179,11 @@ private static string ParseArgumentContent(string argument)

private void ChangeScene()
{
if (!Props.RunTests)
{
return;
}

_ = GetTree().CallDeferred("change_scene_to_file", "uid://cq76c14wl2ti3");

if (!Engine.IsEditorHint())
Expand Down

0 comments on commit e3d943c

Please sign in to comment.