mirror of
https://github.com/cemu-project/idapython.git
synced 2024-11-28 03:54:18 +01:00
init.py: Banner now includes if the plugin is a 64-bit build
This commit is contained in:
parent
dec108c25b
commit
3fbe778385
@ -18,6 +18,8 @@ import warnings
|
|||||||
|
|
||||||
import _idaapi
|
import _idaapi
|
||||||
|
|
||||||
|
__EA64__ = _idaapi.BADADDR == 0xFFFFFFFFFFFFFFFFL
|
||||||
|
|
||||||
# FIXME: Should fix the offending constant instead
|
# FIXME: Should fix the offending constant instead
|
||||||
warnings.filterwarnings('ignore', category=FutureWarning)
|
warnings.filterwarnings('ignore', category=FutureWarning)
|
||||||
|
|
||||||
@ -63,7 +65,11 @@ def runscript(script):
|
|||||||
def print_banner():
|
def print_banner():
|
||||||
version1 = "Python interpreter version %d.%d.%d %s (serial %d)" % sys.version_info
|
version1 = "Python interpreter version %d.%d.%d %s (serial %d)" % sys.version_info
|
||||||
version2 = "Copyright (c) 1990-2009 Python Software Foundation - http://www.python.org/"
|
version2 = "Copyright (c) 1990-2009 Python Software Foundation - http://www.python.org/"
|
||||||
version3 = "IDAPython version %d.%d.%d %s (serial %d)" % IDAPYTHON_VERSION
|
if __EA64__:
|
||||||
|
version3 = "IDAPython 64-bit"
|
||||||
|
else:
|
||||||
|
version3 = "IDAPython"
|
||||||
|
version3 += " version %d.%d.%d %s (serial %d)" % IDAPYTHON_VERSION
|
||||||
version4 = "Copyright (c) 2004-2009 Gergely Erdelyi - http://d-dome.net/idapython/"
|
version4 = "Copyright (c) 2004-2009 Gergely Erdelyi - http://d-dome.net/idapython/"
|
||||||
linelen = max(len(version1), len(version2), len(version3), len(version4))
|
linelen = max(len(version1), len(version2), len(version3), len(version4))
|
||||||
|
|
||||||
@ -75,7 +81,6 @@ def print_banner():
|
|||||||
print version4
|
print version4
|
||||||
print '-' * linelen
|
print '-' * linelen
|
||||||
|
|
||||||
|
|
||||||
#-----------------------------------------------------------
|
#-----------------------------------------------------------
|
||||||
# Take over the standard text outputs
|
# Take over the standard text outputs
|
||||||
#-----------------------------------------------------------
|
#-----------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user