Skip to content
This repository was archived by the owner on Dec 24, 2025. It is now read-only.

Commit 49dcdc5

Browse files
author
elias.bachaalany@gmail.com
committed
added idautils.IsBatchMode()
1 parent 960a670 commit 49dcdc5

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

python/idautils.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,14 @@ def ProcessUiActions(actions, flags=0):
750750
helper = __process_ui_actions_helper(actions, flags)
751751
return False if len(helper) < 1 else idaapi.execute_ui_requests((helper,))
752752

753+
# ----------------------------------------------------------------------------
754+
def IsBatchMode():
755+
"""
756+
Checks if batch mode is enabled
757+
758+
@return: True if batch mode is enabled and False otherwise
759+
"""
760+
return idaapi.cvar.batch != 0
753761

754762
# -----------------------------------------------------------------------
755763
class peutils_t(object):

0 commit comments

Comments
 (0)