Hi. I have a question.
How can i load routines from other files, like if they were dlls?
In windows is using LoadLibrary(...) and GetProcAddress(....).
In KOS how can i make something like this?
Loading external modules..
-
- Insane DCEmu
- Posts: 147
- https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
- Joined: Thu Dec 30, 2004 7:12 pm
- Has thanked: 0
- Been thanked: 0
- Contact:
Loading external modules..
Check the BioGB emulator any help me get it much better!!
http://www.geocities.com/instructivus
http://www.geocities.com/instructivus
-
- DC Developer
- Posts: 9951
- Joined: Sun Dec 30, 2001 9:02 am
- Has thanked: 0
- Been thanked: 1 time
I don't think you really can. KOS used to have the ability to do that, but I think it may have decayed a bit.
Some of the code still seems to be there (have a look at kos/kernel/fs/elf.c, for example), but I don't know how well it'd work. It looks like you should be able to use the elf_load function to load an ELF file into memory, but I don't really know what you could do with it once you've loaded it.
Some of the code still seems to be there (have a look at kos/kernel/fs/elf.c, for example), but I don't know how well it'd work. It looks like you should be able to use the elf_load function to load an ELF file into memory, but I don't really know what you could do with it once you've loaded it.
-
- Insane DCEmu
- Posts: 147
- Joined: Thu Dec 30, 2004 7:12 pm
- Has thanked: 0
- Been thanked: 0
- Contact:
I will try them, and see how htey work.
Check the BioGB emulator any help me get it much better!!
http://www.geocities.com/instructivus
http://www.geocities.com/instructivus