Merge pull request #70 from ksherlock/host_fst_p8_fix

host fst fix when switching to prodos-8
This commit is contained in:
Dagen Brock 2019-04-08 06:25:35 -05:00 committed by GitHub
commit adc7e778a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -407,6 +407,10 @@ static char *get_path2(void) {
}
/*
* shutdown is called when switching to p8.
* startup is ONLY called during initial boot.
*/
static word32 fst_shutdown(void) {
@ -418,7 +422,7 @@ static word32 fst_shutdown(void) {
free_fd(head);
head = next;
}
host_shutdown();
//host_shutdown();
return 0;
}
@ -426,6 +430,8 @@ static word32 fst_startup(void) {
// if restart, close any previous files.
fst_shutdown();
host_shutdown();
memset(&cookies, 0, sizeof(cookies));
return host_startup();