TappyTux: fix crashes.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9805 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
lazarus-bart 2025-08-07 20:58:38 +00:00
parent e1145052a1
commit 343225dcd3
4 changed files with 5 additions and 2 deletions

View File

@ -130,6 +130,8 @@ procedure TformConfig.FormCreate(Sender: TObject);
var
i: Integer;
begin
//we access the formTappyTuxGame form for updating translations, but this form isn't created yet.
formTappyTuxGame := TformTappyTuxGame.Create(Application);
TranslateUI();
// Initialize modules

View File

@ -170,7 +170,8 @@ begin
CreateQuestion;
end;
startupSound.Play;
if Assigned(startupSound) then
startupSound.Play;
end;
procedure TTappyWords.CreateQuestion();

View File

@ -16,7 +16,7 @@ begin
RequireDerivedFormResource := True;
Application.Initialize;
Application.CreateForm(TformConfig, formConfig);
Application.CreateForm(TformTappyTuxGame, formTappyTuxGame);
//Application.CreateForm(TformTappyTuxGame, formTappyTuxGame);
Application.Run;
end.

Binary file not shown.