Merge pull request #68 from spark2k06/master

fix bootcore
This commit is contained in:
sorgelig
2019-03-21 05:17:34 +08:00
committed by GitHub
3 changed files with 7 additions and 10 deletions

View File

@@ -161,13 +161,7 @@ char *findCore(const char *name, char *coreName, int indent)
}
void bootcore_init(const char *path)
{
MiSTer_ini_parse();
if (cfg.bootcore[0] == '\0')
{
return;
}
{
char *auxpointer;
char auxstr[256];
char bootcore[256];

View File

@@ -31,7 +31,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "input.h"
#include "fpga_io.h"
#include "scheduler.h"
#include "bootcore.h"
const char *version = "$VER:HPS" VDATE;
@@ -65,8 +64,7 @@ int main(int argc, char *argv[])
exit(0);
}
FindStorage();
bootcore_init(argc > 1 ? argv[1] : "");
FindStorage();
user_io_init((argc > 1) ? argv[1] : "");
scheduler_init();

View File

@@ -24,6 +24,7 @@
#include "brightness.h"
#include "sxmlc.h"
#include "tzx2wav.h"
#include "bootcore.h"
#include "support.h"
@@ -501,6 +502,10 @@ void user_io_init(const char *path)
}
MiSTer_ini_parse();
if (cfg.bootcore[0] != '\0')
{
bootcore_init(path);
}
parse_video_mode();
FileLoadConfig("Volume.dat", &vol_att, 1);
vol_att &= 0x1F;