X-Git-Url: https://git.ucc.asn.au/?p=tpg%2Facess2.git;a=blobdiff_plain;f=KernelLand%2FKernel%2Fdrv%2Fvterm.c;fp=KernelLand%2FKernel%2Fdrv%2Fvterm.c;h=71c4d4a8fc8e93d34cb622689317111adc3e22bd;hp=2ae38ee894c602430190a667d7f050eaca3f6578;hb=51ab5f489bc356940c95cc936fd0508e8f07ea97;hpb=5e32640df489bbd3066ce78cac5fd4c11366286d diff --git a/KernelLand/Kernel/drv/vterm.c b/KernelLand/Kernel/drv/vterm.c index 2ae38ee8..71c4d4a8 100644 --- a/KernelLand/Kernel/drv/vterm.c +++ b/KernelLand/Kernel/drv/vterm.c @@ -40,7 +40,7 @@ Uint64 VT_Write(tVFS_Node *Node, Uint64 Offset, Uint64 Length, const void *Buffe // === CONSTANTS === // === GLOBALS === -MODULE_DEFINE(0, VERSION, VTerm, VT_Install, NULL, DEFAULT_INPUT, NULL); +MODULE_DEFINE(0, VERSION, VTerm, VT_Install, NULL, NULL); tVFS_NodeType gVT_RootNodeType = { .TypeName = "VTerm Root", .ReadDir = VT_ReadDir, @@ -136,6 +136,9 @@ int VT_Install(char **Arguments) if(!gsVT_InputDevice) gsVT_InputDevice = (char*)DEFAULT_INPUT; else if( Module_EnsureLoaded( gsVT_InputDevice ) ) gsVT_InputDevice = (char*)DEFAULT_INPUT; + if( Module_EnsureLoaded( gsVT_OutputDevice ) ) { + Log_Error("VTerm", "Fallback input '%s' is not avaliable, input will not be avaliable", DEFAULT_INPUT); + } // Create device paths {