Look for MiSTer.ini in the root folder first.
This commit is contained in:
1
cfg.c
1
cfg.c
@@ -39,6 +39,7 @@ const ini_var_t ini_vars[] = {
|
||||
|
||||
// mist ini config
|
||||
const ini_cfg_t ini_cfg = {
|
||||
"MiSTer.ini",
|
||||
CONFIG_DIR"/MiSTer.ini",
|
||||
ini_sections,
|
||||
ini_vars,
|
||||
|
||||
10
ini_parser.c
10
ini_parser.c
@@ -196,11 +196,13 @@ void ini_parse(const ini_cfg_t* cfg)
|
||||
memset(&ini_file, 0, sizeof(ini_file));
|
||||
if (!FileOpen(&ini_file, cfg->filename))
|
||||
{
|
||||
ini_parser_debugf("Can't open file %s !", cfg->filename);
|
||||
return;
|
||||
if (!FileOpen(&ini_file, cfg->filename_alt))
|
||||
{
|
||||
return;
|
||||
}
|
||||
else ini_parser_debugf("Opened file %s with size %d bytes.", cfg->filename_alt, ini_file.size);
|
||||
}
|
||||
|
||||
ini_parser_debugf("Opened file %s with size %d bytes.", cfg->filename, ini_file.size);
|
||||
else ini_parser_debugf("Opened file %s with size %d bytes.", cfg->filename, ini_file.size);
|
||||
|
||||
ini_pt = 0;
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ typedef struct {
|
||||
|
||||
typedef struct {
|
||||
const char* filename;
|
||||
const char* filename_alt;
|
||||
const ini_section_t* sections;
|
||||
const ini_var_t* vars;
|
||||
int nsections;
|
||||
|
||||
4
main.c
4
main.c
@@ -57,7 +57,9 @@ int main(int argc, char *argv[])
|
||||
DISKLED_OFF;
|
||||
|
||||
printf("\nMinimig by Dennis van Weeren");
|
||||
printf("\nARM Controller by Jakub Bednarski\n\n");
|
||||
printf("\nARM Controller by Jakub Bednarski");
|
||||
printf("\nMiSTer code by Sorgelig\n\n");
|
||||
|
||||
printf("Version %s\n\n", version + 5);
|
||||
|
||||
if (!is_fpga_ready(1))
|
||||
|
||||
Reference in New Issue
Block a user