blob: 002fd92c425a5914fdf1d8ac3d70e54258c6ab73 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <pland.h>
#include <canyo/file.h>
void main() {
fs_handle f = fs_open("sys/startup.rc");
if (!f) {
vga_printsz("Couldn't open sys/startup.rc\n");
return;
}
uint8_t line_buffer[128];
while (read_line(f, 128, line_buffer))
plef_run(line_buffer);
fs_close(f);
}
|