git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated build system to remove `install` from `all`
[tpg/acess2.git]
/
Kernel
/
modules.c
diff --git
a/Kernel/modules.c
b/Kernel/modules.c
index
eec5020
..
44c4cb5
100644
(file)
--- a/
Kernel/modules.c
+++ b/
Kernel/modules.c
@@
-98,9
+98,13
@@
int Modules_LoadBuiltins()
gKernelModules[i].Name,
gKernelModules[i].Version>>8, gKernelModules[i].Version & 0xFF
);
gKernelModules[i].Name,
gKernelModules[i].Version>>8, gKernelModules[i].Version & 0xFF
);
- gKernelModules[i].Init(NULL);
+ if( gKernelModules[i].Init(NULL) == 0 ) {
+ Log("Loading Failed, all modules that depend on this will also fail");
+ baIsLoaded[i] = -1;
+ }
// Mark as loaded
// Mark as loaded
- baIsLoaded[i] = 1;
+ else
+ baIsLoaded[i] = 1;
numToInit --;
}
}
numToInit --;
}
}
@@
-116,7
+120,7
@@
int Module_LoadMem(void *Buffer, Uint Length, char *ArgString)
{
char path[VFS_MEMPATH_SIZE];
{
char path[VFS_MEMPATH_SIZE];
- VFS_GetMemPath(
Buffer, Length, pa
th);
+ VFS_GetMemPath(
path, Buffer, Leng
th);
return Module_LoadFile( path, ArgString );
}
return Module_LoadFile( path, ArgString );
}
UCC
git Repository :: git.ucc.asn.au