make exec_from_file take l9660_file* instead of a filename
This commit is contained in:
+1
-10
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user