File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121
2222class MineSweeperGUI (superGUI .Ui_MainWindow ):
2323 def __init__ (self , MainWindow , args ):
24- print (args )
2524 self .mainWindow = MainWindow
2625 self .checksum_guard = metaminesweeper_checksum .ChecksumGuard ()
27- if len (args ) == 3 :
28- print (args )
29- if args [1 ] == "-v" :
30- print (superGUI .version )
31- return
32- elif args [1 ] == "-t" :
33- if args [2 ][- 3 :] == "evf" :
34- video = ms .EvfVideo (args [2 ])
35- else :
36- print ("unknown" )
37- return
38- try :
39- video .parse_video ()
40- except :
41- print ("false" )
42- return
43-
44- if self .checksum_guard .\
45- valid_checksum (video .raw_data [:- 33 ], video .checksum ):
46- print ("true" )
47- return
48- else :
49- print ("false" )
50- return
51-
26+
5227 super (MineSweeperGUI , self ).__init__ (MainWindow , args )
5328
5429
Original file line number Diff line number Diff line change 1111from pathlib import Path
1212from gameScoreBoard import gameScoreBoardManager
1313import minesweeper_master as mm
14- import metaminesweeper_checksum
14+ # import metaminesweeper_checksum
1515from country_name import country_name
16- import ms_toollib as ms
1716
1817
1918version = "元3.1.11" .encode ( "UTF-8" )
You can’t perform that action at this time.
0 commit comments