File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 88import scripts .utils as u
99from components .btn import Button
1010from components .block import Block
11+ from scripts .updates .updater import checkForUpdates
1112
1213def main ():
1314 pygame .init ()
1415 pygame .mixer .init ()
1516 cfg .DISPLAYSURF = pygame .display .set_mode ((cfg .WIN_WIDTH , cfg .WIN_HEIGHT ))
1617 cfg .FPSCLOCK = pygame .time .Clock ()
1718 pygame .display .set_caption ("Sudoku" )
18- pygame .display .set_icon (cfg .ASSETS [7 ])
19+ pygame .display .set_icon (pygame .image .load ('./assets/icons/logo.ico' ))
20+
21+ if checkForUpdates () == "UPDATE_SUCESS" : u .close ()
1922
2023 cfg .FONT_CFG = [
2124 pygame .font .Font ("./assets/font/YatraOne-Regular.ttf" , 20 ),
@@ -408,4 +411,4 @@ def scoreTable():
408411 cfg .manager .addState ("exit" , u .close )
409412
410413 cfg .manager .changeState ("menu" )
411- main ()
414+ main ()
You can’t perform that action at this time.
0 commit comments