git-svn-id: https://spexeah.com:8443/svn/Asuro@612 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
1 parent
d709244a3a
commit
58bf1ae93d
3 files changed
+79
-130
No files matched your search
+63
-122
File diff suppressed because it is too large.
Load diff
@@ -192,25 +192,33 @@ type
|
|||||||
var
|
var
|
||||||
dirs : PLinkedListBase;
|
dirs : PLinkedListBase;
|
||||||
dir : pchar;
|
dir : pchar;
|
||||||
|
dirp : PDirectory;
|
||||||
device : PStorage_Device;
|
device : PStorage_Device;
|
||||||
volume : PStorage_Volume;
|
volume : PStorage_Volume;
|
||||||
error : uint32;
|
error : uint32;
|
||||||
i : uint32;
|
i : uint32;
|
||||||
begin
|
begin
|
||||||
if paramCount(params) > 0 then begin
|
push_trace('ls');
|
||||||
dir := getParam(0, params);
|
|
||||||
|
//if paramCount(params) > 0 then begin
|
||||||
|
//dir := getParam(0, params);
|
||||||
|
|
||||||
device:= PStorage_Device(LL_Get(storageDevices, 0));
|
device:= PStorage_Device(LL_Get(storageDevices, 0));
|
||||||
|
|
||||||
volume:= PStorage_Volume(LL_Get(device^.volumes, 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.writestring(' ');
|
||||||
console.writestringln(pchar( PDirectory(LL_Get(dirs, 0))^.filename ));
|
dirp:= PDirectory(LL_Get(dirs, i));
|
||||||
end;
|
console.writestringlnWND(pchar(dirp^.fileName), getTerminalHWND);
|
||||||
end;
|
end;
|
||||||
|
pop_trace();
|
||||||
|
//end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure volume_command(params : PParamList);
|
procedure volume_command(params : PParamList);
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ interface
|
|||||||
const
|
const
|
||||||
KERNEL_VIRTUAL_BASE = $C0000000;
|
KERNEL_VIRTUAL_BASE = $C0000000;
|
||||||
KERNEL_PAGE_NUMBER = KERNEL_VIRTUAL_BASE SHR 22;
|
KERNEL_PAGE_NUMBER = KERNEL_VIRTUAL_BASE SHR 22;
|
||||||
BSOD_ENABLE = true;
|
BSOD_ENABLE = false;
|
||||||
TRACER_ENABLE = true;
|
TRACER_ENABLE = true;
|
||||||
CONSOLE_SLOW_REDRAW = false; //Redraws the Window manager after every character, but slows performance.
|
CONSOLE_SLOW_REDRAW = false; //Redraws the Window manager after every character, but slows performance.
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user