mirror of
https://github.com/captain-amygdala/pistorm.git
synced 2026-01-26 20:02:22 +00:00
Fixes to allow a314 configuration on non default paths
This commit is contained in:
@@ -17,7 +17,11 @@ logging.basicConfig(format = '%(levelname)s, %(asctime)s, %(name)s, line %(linen
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.setLevel(logging.INFO)
|
||||
|
||||
CONFIG_FILE_PATH = 'a314/files_pi/a314fs.conf'
|
||||
try:
|
||||
idx = sys.argv.index('-conf-file')
|
||||
CONFIG_FILE_PATH = sys.argv[idx + 1]
|
||||
except (ValueError, IndexError):
|
||||
CONFIG_FILE_PATH = 'a314/files_pi/a314fs.conf'
|
||||
|
||||
SHARED_DIRECTORY = 'data/a314shared'
|
||||
METAFILE_EXTENSION = ':a314'
|
||||
|
||||
@@ -449,7 +449,7 @@ void setvar_amiga(struct emulator_config *cfg, char *var, char *val) {
|
||||
a314_emulation_enabled = 1;
|
||||
}
|
||||
}
|
||||
if CHKVAR("a314conf") {
|
||||
if CHKVAR("a314_conf") {
|
||||
if (val && strlen(val) != 0) {
|
||||
a314_set_config_file(val);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user