make exec_from_file take l9660_file* instead of a filename

This commit is contained in:
2025-09-23 20:13:34 +03:00
parent f697fab390
commit 2019f87b14
4 changed files with 19 additions and 15 deletions
+1 -10
View File
@@ -135,17 +135,8 @@ void kmain(unsigned int magic, unsigned int info)
l9660_file* file = (l9660_file*)malloc(sizeof(l9660_file));
follow_path("/bin/bash.", file, dir);
//////////////
l9660_seek(file, L9660_SEEK_END, 0);
uint32_t file_size = l9660_tell(file);
debug_log("file_size: %X\n", file_size);
l9660_seek(file, L9660_SEEK_SET, 0);
free(file);
free(dir);
//////////////
exec_from_file("caller.", ".");
exec_from_file(file, ".");
while(1)
{