mirror of
https://github.com/Freaku17/BombSquad-Mods-byFreaku
synced 2025-11-11 19:15:58 +00:00
Update terminal.py for 1.7.33+ support
This commit is contained in:
parent
de86c6da62
commit
ce894b0a64
1 changed files with 4 additions and 4 deletions
|
|
@ -81,7 +81,7 @@ import bascenev1 as bs
|
||||||
import bauiv1 as bui
|
import bauiv1 as bui
|
||||||
from efro.log import LogLevel
|
from efro.log import LogLevel
|
||||||
from bauiv1lib.fileselector import FileSelectorWindow
|
from bauiv1lib.fileselector import FileSelectorWindow
|
||||||
folder = _babase.app.python_directory_user + "/console/"
|
folder = _babase.app.env.python_directory_user + "/console/"
|
||||||
log_post = folder + 'logs.txt'
|
log_post = folder + 'logs.txt'
|
||||||
config_post = folder + 'config.txt'
|
config_post = folder + 'config.txt'
|
||||||
|
|
||||||
|
|
@ -113,7 +113,7 @@ def make_sys_wordaround(path):
|
||||||
# Luckily we are still able to write files.
|
# Luckily we are still able to write files.
|
||||||
# So as a "workaround" we create a zip of in-game folders and unzip them :D
|
# So as a "workaround" we create a zip of in-game folders and unzip them :D
|
||||||
from shutil import make_archive, unpack_archive, rmtree
|
from shutil import make_archive, unpack_archive, rmtree
|
||||||
sys_zip = make_archive(folder+'sys_zip', 'zip', _babase.app.python_directory_app)
|
sys_zip = make_archive(folder+'sys_zip', 'zip', _babase.app.env.python_directory_app)
|
||||||
unpack_archive(sys_zip, path)
|
unpack_archive(sys_zip, path)
|
||||||
os.remove(sys_zip)
|
os.remove(sys_zip)
|
||||||
|
|
||||||
|
|
@ -157,7 +157,7 @@ class get_logs(babase.Plugin):
|
||||||
class get_config(babase.Plugin):
|
class get_config(babase.Plugin):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
make_folder()
|
make_folder()
|
||||||
configs = babase.app.config_file_path
|
configs = babase.app.env.config_file_path
|
||||||
with open(configs) as f:
|
with open(configs) as f:
|
||||||
make_config(f.read())
|
make_config(f.read())
|
||||||
f.close()
|
f.close()
|
||||||
|
|
@ -169,7 +169,7 @@ class system_scripts(babase.Plugin):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def show_settings_ui(self, source_widget):
|
def show_settings_ui(self, source_widget):
|
||||||
path = _babase.app.python_directory_user +'/sys/'+_babase.app.version
|
path = _babase.app.env.python_directory_user +'/sys/'+_babase.app.env.version
|
||||||
if not os.path.exists(path):
|
if not os.path.exists(path):
|
||||||
# Old method:
|
# Old method:
|
||||||
# import babase.modutils as utils
|
# import babase.modutils as utils
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue