From 3fbe7783853848aeebd89181d9516f2f55301e2c Mon Sep 17 00:00:00 2001 From: "gergely.erdelyi" Date: Sat, 23 May 2009 15:33:03 +0000 Subject: [PATCH] init.py: Banner now includes if the plugin is a 64-bit build --- python/init.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/python/init.py b/python/init.py index 390ff09..c81483d 100644 --- a/python/init.py +++ b/python/init.py @@ -18,6 +18,8 @@ import warnings import _idaapi +__EA64__ = _idaapi.BADADDR == 0xFFFFFFFFFFFFFFFFL + # FIXME: Should fix the offending constant instead warnings.filterwarnings('ignore', category=FutureWarning) @@ -63,7 +65,11 @@ def runscript(script): def print_banner(): 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/" - 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/" linelen = max(len(version1), len(version2), len(version3), len(version4)) @@ -75,7 +81,6 @@ def print_banner(): print version4 print '-' * linelen - #----------------------------------------------------------- # Take over the standard text outputs #-----------------------------------------------------------