2023-03-28 09:53:23 +02:00
|
|
|
#include "types.h"
|
|
|
|
#include <stdio.h>
|
2023-03-28 10:37:24 +02:00
|
|
|
#include <corecrt_malloc.h>
|
2023-03-28 16:36:19 +02:00
|
|
|
#include "Loader/Elf.h"
|
2023-03-28 09:53:23 +02:00
|
|
|
|
|
|
|
#pragma warning(disable:4996)
|
|
|
|
|
|
|
|
|
2023-03-28 10:37:24 +02:00
|
|
|
|
2023-03-28 09:53:23 +02:00
|
|
|
|
|
|
|
|
|
|
|
int main(int argc, char* argv[])
|
|
|
|
{
|
2023-03-28 18:21:34 +02:00
|
|
|
const char* const path = argv[1]; //argument 1 is the path of self file to boot
|
2023-03-28 16:36:19 +02:00
|
|
|
Elf* elf = new Elf;
|
|
|
|
elf->Open(path);
|
|
|
|
|
2023-03-28 09:53:23 +02:00
|
|
|
}
|