mirror of
https://wiilab.wiimart.org/wiimart/SWF-Checker
synced 2025-09-04 04:21:12 +02:00
update SWFChecker.py
This commit is contained in:
parent
440f6c633d
commit
a5bfbdb521
@ -1,15 +1,16 @@
|
|||||||
import os
|
import os
|
||||||
import zlib
|
import zlib
|
||||||
from sys import platform, version
|
from sys import version, exit
|
||||||
|
import platform
|
||||||
|
|
||||||
platf = platform
|
platf = platform.system()
|
||||||
if platf == "linux" or "linux2" or "darwin":
|
if platf == "Windows":
|
||||||
|
os.system("title SWF Checker v2.3")
|
||||||
|
os.system("clear")
|
||||||
|
else:
|
||||||
os.system("clear")
|
os.system("clear")
|
||||||
elif platf == "win32":
|
|
||||||
os.system("title SWF Checker v2.1")
|
|
||||||
os.system("cls")
|
|
||||||
|
|
||||||
print(f"SWF Version Checker v2.1\nPython {version}")
|
print(f"SWF Version Checker v2.3\nPython {version}")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
swf = input("SWF Filename: ").strip()
|
swf = input("SWF Filename: ").strip()
|
||||||
@ -57,13 +58,10 @@ def CheckSWF(swf):
|
|||||||
if doact_idx != -1 and not result_isas3:
|
if doact_idx != -1 and not result_isas3:
|
||||||
result_isas3 = False
|
result_isas3 = False
|
||||||
|
|
||||||
if flashver < 9:
|
if flashver >= 9:
|
||||||
if result_isas3:
|
isas3 = result_isas3 # AS3 support is based on external result
|
||||||
isas3 = True
|
|
||||||
else:
|
|
||||||
isas3 = False
|
|
||||||
else:
|
else:
|
||||||
isas3 = result_isas3
|
isas3 = False # AS3 does not exist before Flash Player 9
|
||||||
|
|
||||||
asver = "ActionScript 3.0 (incompatible)" if isas3 else "ActionScript 1.0/2.0 (compatible)"
|
asver = "ActionScript 3.0 (incompatible)" if isas3 else "ActionScript 1.0/2.0 (compatible)"
|
||||||
return flashver, asver, obj
|
return flashver, asver, obj
|
||||||
@ -109,3 +107,10 @@ if flashver is not None:
|
|||||||
print("WARNING: The given SWF might overlap/clip on the Wii.")
|
print("WARNING: The given SWF might overlap/clip on the Wii.")
|
||||||
else:
|
else:
|
||||||
print("The SWF should NOT overlap and/or clip on the Wii.")
|
print("The SWF should NOT overlap and/or clip on the Wii.")
|
||||||
|
|
||||||
|
if platf == "Windows":
|
||||||
|
os.system("pause")
|
||||||
|
exit()
|
||||||
|
else:
|
||||||
|
os.system("/bin/bash -c 'read -s -n 1 -p \"Press any key to exit.\"'")
|
||||||
|
exit()
|
Loading…
x
Reference in New Issue
Block a user