mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-04-20 17:31:45 -04:00
post-abandonment : allow any key to be overridden by the user.
This commit is contained in:
parent
92d803717f
commit
3e26869672
@ -5,6 +5,7 @@ import exceptions
|
||||
from ctypes import c_char_p
|
||||
from libloader import load_library
|
||||
import paths
|
||||
import config
|
||||
#if application.snapshot == True:
|
||||
# if platform.architecture()[0][:2] == "32":
|
||||
# lib = load_library("snapshot_api_keys32", x86_path=paths.app_path("keys/lib"))
|
||||
@ -38,4 +39,9 @@ class Keyring(object):
|
||||
def get(self, func):
|
||||
if hasattr(application,func+"_override"):
|
||||
return getattr(application,func+'_override')
|
||||
try:
|
||||
if config.app != None and config.app['app-settings'][func+"_override"] != "":
|
||||
return config.app['app-settings'][func+"_override"]
|
||||
except KeyError:
|
||||
pass
|
||||
return getattr(self, "_call_method")("get_"+func)
|
||||
|
Loading…
x
Reference in New Issue
Block a user