mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 15:36:59 +08:00
Add: Submodule AlasFpyBridge (experimental)
This commit is contained in:
@@ -43,7 +43,7 @@ def filepath_args(filename='args', mod_name='alas'):
|
||||
if mod_name == 'alas':
|
||||
return f'./module/config/argument/{filename}.json'
|
||||
else:
|
||||
return os.path.join(filepath_mod(mod_name), f'./module/config/argument/{filename}.json')
|
||||
return os.path.join(get_mod_filepath(mod_name), f'./module/config/argument/{filename}.json')
|
||||
|
||||
|
||||
def filepath_argument(filename):
|
||||
@@ -54,7 +54,7 @@ def filepath_i18n(lang, mod_name='alas'):
|
||||
if mod_name == 'alas':
|
||||
return os.path.join('./module/config/i18n', f'{lang}.json')
|
||||
else:
|
||||
return os.path.join(filepath_mod(mod_name), './module/config/i18n', f'{lang}.json')
|
||||
return os.path.join(get_mod_filepath(mod_name), './module/config/i18n', f'{lang}.json')
|
||||
|
||||
|
||||
def filepath_config(filename, mod_name='alas'):
|
||||
@@ -173,7 +173,7 @@ def alas_template():
|
||||
if name == 'template' and extension == '.json':
|
||||
out.append(f'{name}-alas')
|
||||
|
||||
out.extend(mod_template())
|
||||
out.extend(list_mod_template())
|
||||
|
||||
return out
|
||||
|
||||
@@ -191,7 +191,7 @@ def alas_instance():
|
||||
if name != 'template' and extension == '.json' and mod_name == '':
|
||||
out.append(name)
|
||||
|
||||
out.extend(mod_instance())
|
||||
out.extend(list_mod_instance())
|
||||
|
||||
if not len(out):
|
||||
out = ['alas']
|
||||
|
||||
Reference in New Issue
Block a user