This commit is contained in:
boreddevnl 2026-03-05 09:44:39 +01:00
parent 690413045d
commit 4b8fdde06d
7 changed files with 6 additions and 5 deletions

View file

@ -113,9 +113,10 @@ $(ISO_IMAGE): $(KERNEL_ELF) limine.conf limine-setup
# Copy README and WAD
@if [ -f README.md ]; then cp README.md $(ISO_DIR)/; fi
@if [ -f doom1.wad ]; then \
cp doom1.wad $(ISO_DIR)/; \
echo " module_path: boot():/doom1.wad" >> $(ISO_DIR)/limine.conf; \
@if [ -f $(SRC_DIR)/userland/doom/doom1.wad ]; then \
mkdir -p $(ISO_DIR)/Library/DOOM; \
cp $(SRC_DIR)/userland/doom/doom1.wad $(ISO_DIR)/Library/DOOM/; \
echo " module_path: boot():/Library/DOOM/doom1.wad" >> $(ISO_DIR)/limine.conf; \
fi
# Copy Wallpapers

Binary file not shown.

Binary file not shown.

View file

@ -13,4 +13,3 @@ backdrop: 000000
/BoredOS
protocol: limine
path: boot():/boredos.elf
module_path: boot():/doom1.wad

View file

@ -156,6 +156,7 @@ void kmain(void) {
fat32_mkdir("/Library/images");
fat32_mkdir("/Library/images/Wallpapers");
fat32_mkdir("/Library/Fonts");
fat32_mkdir("/Library/DOOM");
if (module_request.response == NULL) {
serial_write("[DEBUG] ERROR: Limine Module Response is NULL!\n");

View file

@ -121,7 +121,7 @@ int DG_GetKey(int* pressed, unsigned char* key) {
int main(int argc, char** argv) {
(void)argc;
(void)argv;
char* fake_argv[] = {"doom", "-iwad", "A:/doom1.wad"};
char* fake_argv[] = {"doom", "-iwad", "A:/Library/DOOM/doom1.wad"};
doomgeneric_Create(3, fake_argv);
while (1) {