Skip to content

Commit a2f514a

Browse files
committed
。。。
1 parent 5d69c6f commit a2f514a

2 files changed

Lines changed: 2 additions & 28 deletions

File tree

src/mineSweeperGUI.py

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,34 +21,9 @@
2121

2222
class 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

src/superGUI.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111
from pathlib import Path
1212
from gameScoreBoard import gameScoreBoardManager
1313
import minesweeper_master as mm
14-
import metaminesweeper_checksum
14+
# import metaminesweeper_checksum
1515
from country_name import country_name
16-
import ms_toollib as ms
1716

1817

1918
version = "元3.1.11".encode( "UTF-8" )

0 commit comments

Comments
 (0)