Skip to content

Commit c45f138

Browse files
committed
[atari][fuji] add lobby to insert boot device.
1 parent a132cc8 commit c45f138

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/device/sio/fuji.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
#include "fnSystem.h"
1313
#include "fnConfig.h"
1414
#include "fsFlash.h"
15+
#include "fnFsSPIFFS.h"
16+
#include "fnFsTNFS.h"
1517
#include "fnWiFi.h"
1618

1719
#include "led.h"
@@ -1602,6 +1604,15 @@ void sioFuji::insert_boot_device(uint8_t d)
16021604
fBoot = fsFlash.file_open(mount_all_atr);
16031605
_bootDisk.mount(fBoot, mount_all_atr, 0);
16041606
break;
1607+
case 2:
1608+
Debug_printf("Mounting lobby server\n");
1609+
if (fnTNFS.start("tnfs.fujinet.online"))
1610+
{
1611+
Debug_printf("opening lobby.\n");
1612+
fBoot = fnTNFS.file_open("/ATARI/_lobby.xex");
1613+
_bootDisk.mount(fBoot,"/ATARI/_lobby.xex",0);
1614+
}
1615+
break;
16051616
}
16061617

16071618
_bootDisk.is_config_device = true;

0 commit comments

Comments
 (0)