forked from KolibriOS/kolibrios
TmpDisk: save only disks that are exists, use system.ini
git-svn-id: svn://kolibrios.org@7356 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
512a176c2e
commit
6928eaa581
@ -4,10 +4,13 @@ font file=/sys/Fonts/Tahoma.kf
|
|||||||
font smoothing=sbp
|
font smoothing=sbp
|
||||||
font height=9
|
font height=9
|
||||||
speaker mute=on
|
speaker mute=on
|
||||||
|
|
||||||
[mouse]
|
[mouse]
|
||||||
speed=4
|
speed=4
|
||||||
acceleration=3
|
acceleration=3
|
||||||
double_click_delay=64
|
double_click_delay=64
|
||||||
|
|
||||||
[low-level]
|
[low-level]
|
||||||
LBA=off
|
LBA=off
|
||||||
PCI=on
|
PCI=on
|
||||||
|
|
||||||
|
@ -130,6 +130,20 @@ inline fastcall dword GetFreeRAM()
|
|||||||
//return eax = free RAM in Kb
|
//return eax = free RAM in Kb
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline fastcall int GetCpuIdleCount()
|
||||||
|
{
|
||||||
|
EAX = 18;
|
||||||
|
EBX = 4;
|
||||||
|
$int 0x40
|
||||||
|
}
|
||||||
|
|
||||||
|
inline fastcall int GetCpuFrequency()
|
||||||
|
{
|
||||||
|
EAX = 18;
|
||||||
|
EBX = 5;
|
||||||
|
$int 0x40
|
||||||
|
}
|
||||||
|
|
||||||
inline fastcall dword LoadDriver(ECX) //ECX - èìÿ äðàéâåðà
|
inline fastcall dword LoadDriver(ECX) //ECX - èìÿ äðàéâåðà
|
||||||
{
|
{
|
||||||
$mov eax, 68
|
$mov eax, 68
|
||||||
|
@ -135,7 +135,7 @@ void Main_Window()
|
|||||||
break;
|
break;
|
||||||
case evReDraw:
|
case evReDraw:
|
||||||
system.color.get();
|
system.color.get();
|
||||||
DefineAndDrawWindow(170,150,405,290,0x74,system.color.work,"Virtual Disk Manager 0.66",0);
|
DefineAndDrawWindow(170,150,405,290,0x74,system.color.work,"Virtual Disk Manager 0.67",0);
|
||||||
GetProcessInfo(#Form, SelfInfo);
|
GetProcessInfo(#Form, SelfInfo);
|
||||||
if (Form.status_window>2) break;
|
if (Form.status_window>2) break;
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ int driver_handle;
|
|||||||
|
|
||||||
dword disk_sizes[10];
|
dword disk_sizes[10];
|
||||||
|
|
||||||
_ini ini = { "/sys/settings/tmpdisk.ini", "DiskSizes" };
|
_ini ini = { "/sys/settings/system.ini", "DiskSizes" };
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////
|
||||||
///////////////////////// Code ////////////////////
|
///////////////////////// Code ////////////////////
|
||||||
@ -98,7 +98,7 @@ void SaveDiskSizesToIni()
|
|||||||
for (i=0; i<=9; i++)
|
for (i=0; i<=9; i++)
|
||||||
{
|
{
|
||||||
key[0]=i+'0';
|
key[0]=i+'0';
|
||||||
ini.SetInt(#key, disk_sizes[i]);
|
if (disk_sizes[i]) ini.SetInt(#key, disk_sizes[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user