SPS_Emu.lpr 830 B

123456789101112131415161718192021222324252627282930313233
  1. program SPS_Emu;
  2. {$mode objfpc}{$H+}
  3. uses
  4. {$IFDEF UNIX}{$IFDEF UseCThreads}
  5. cthreads,
  6. {$ENDIF}{$ENDIF}
  7. Interfaces, // this includes the LCL widgetset
  8. Forms, sdposeriallaz, uGUI, uSPS, uTextUi, uSelectCom, MCSLSU, MCSAbout,
  9. uiMicrobit;
  10. {$R *.res}
  11. var path : string;
  12. code : integer;
  13. begin
  14. path := ParamStr(0);
  15. RequireDerivedFormResource := True;
  16. Application.Scaled:=True;
  17. Application.Initialize;
  18. MCSLSU.LSUSetDebug(false);
  19. code := MCSLSU.LSUInit(path, NOR_Mode, GetLNGCode);
  20. if code = R_LNG_Not_Supp then
  21. code := MCSLSU.LSUInit(path, NOR_Mode, 44);
  22. Application.CreateForm(TForm1, Form1);
  23. Application.CreateForm(TForm2, Form2);
  24. Application.CreateForm(TfrmSelectCom, frmSelectCom);
  25. Application.CreateForm(TfMicrobit, fMicrobit);
  26. Application.Run;
  27. end.