Skip to content

Commit

Permalink
[atari][fuji] add lobby to insert boot device.
Browse files Browse the repository at this point in the history
  • Loading branch information
tschak909 committed Jul 7, 2023
1 parent a132cc8 commit c45f138
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/device/sio/fuji.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
#include "fnSystem.h"
#include "fnConfig.h"
#include "fsFlash.h"
#include "fnFsSPIFFS.h"
#include "fnFsTNFS.h"
#include "fnWiFi.h"

#include "led.h"
Expand Down Expand Up @@ -1602,6 +1604,15 @@ void sioFuji::insert_boot_device(uint8_t d)
fBoot = fsFlash.file_open(mount_all_atr);
_bootDisk.mount(fBoot, mount_all_atr, 0);
break;
case 2:
Debug_printf("Mounting lobby server\n");
if (fnTNFS.start("tnfs.fujinet.online"))
{
Debug_printf("opening lobby.\n");
fBoot = fnTNFS.file_open("/ATARI/_lobby.xex");
_bootDisk.mount(fBoot,"/ATARI/_lobby.xex",0);
}
break;
}

_bootDisk.is_config_device = true;
Expand Down

0 comments on commit c45f138

Please sign in to comment.