git-svn-id: https://spexeah.com:8443/svn/Asuro@612 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
+64
-123
File diff suppressed because it is too large
Load Diff
@@ -192,25 +192,33 @@ type
|
||||
var
|
||||
dirs : PLinkedListBase;
|
||||
dir : pchar;
|
||||
dirp : PDirectory;
|
||||
device : PStorage_Device;
|
||||
volume : PStorage_Volume;
|
||||
error : uint32;
|
||||
i : uint32;
|
||||
begin
|
||||
if paramCount(params) > 0 then begin
|
||||
dir := getParam(0, params);
|
||||
push_trace('ls');
|
||||
|
||||
//if paramCount(params) > 0 then begin
|
||||
//dir := getParam(0, params);
|
||||
|
||||
device:= PStorage_Device(LL_Get(storageDevices, 0));
|
||||
|
||||
volume:= PStorage_Volume(LL_Get(device^.volumes, 0));
|
||||
|
||||
error:= volume^.filesystem^.readDirCallback(volume, dir, dirs);
|
||||
dirs:= LL_New(sizeof(TDirectory));
|
||||
|
||||
if error <> 1 then console.writestringln('ERROR');
|
||||
error:= volume^.filesystem^.readDirCallback(volume, '', dirs);
|
||||
|
||||
for i:=0 to LL_Size(dirs) - 1 do begin
|
||||
//if error <> 1 then console.writestringln('ERROR');
|
||||
for i:=2 to LL_Size(dirs) - 1 do begin
|
||||
console.writestring(' ');
|
||||
console.writestringln(pchar( PDirectory(LL_Get(dirs, 0))^.filename ));
|
||||
dirp:= PDirectory(LL_Get(dirs, i));
|
||||
console.writestringlnWND(pchar(dirp^.fileName), getTerminalHWND);
|
||||
end;
|
||||
end;
|
||||
pop_trace();
|
||||
//end;
|
||||
end;
|
||||
|
||||
procedure volume_command(params : PParamList);
|
||||
|
||||
@@ -14,7 +14,7 @@ interface
|
||||
const
|
||||
KERNEL_VIRTUAL_BASE = $C0000000;
|
||||
KERNEL_PAGE_NUMBER = KERNEL_VIRTUAL_BASE SHR 22;
|
||||
BSOD_ENABLE = true;
|
||||
BSOD_ENABLE = false;
|
||||
TRACER_ENABLE = true;
|
||||
CONSOLE_SLOW_REDRAW = false; //Redraws the Window manager after every character, but slows performance.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user