mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-23 23:26:49 +03:00
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
@ -3,11 +3,14 @@ language=en
|
||||
font file=/sys/Fonts/Tahoma.kf
|
||||
font smoothing=sbp
|
||||
font height=9
|
||||
speaker mute=on
|
||||
speaker mute=on
|
||||
|
||||
[mouse]
|
||||
speed=4
|
||||
acceleration=3
|
||||
double_click_delay=64
|
||||
|
||||
[low-level]
|
||||
LBA=off
|
||||
PCI=on
|
||||
PCI=on
|
||||
|
||||
|
@ -130,6 +130,20 @@ inline fastcall dword GetFreeRAM()
|
||||
//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 - èìÿ äðàéâåðà
|
||||
{
|
||||
$mov eax, 68
|
||||
|
@ -135,7 +135,7 @@ void Main_Window()
|
||||
break;
|
||||
case evReDraw:
|
||||
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);
|
||||
if (Form.status_window>2) break;
|
||||
|
||||
|
@ -49,7 +49,7 @@ int driver_handle;
|
||||
|
||||
dword disk_sizes[10];
|
||||
|
||||
_ini ini = { "/sys/settings/tmpdisk.ini", "DiskSizes" };
|
||||
_ini ini = { "/sys/settings/system.ini", "DiskSizes" };
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////
|
||||
///////////////////////// Code ////////////////////
|
||||
@ -98,7 +98,7 @@ void SaveDiskSizesToIni()
|
||||
for (i=0; i<=9; i++)
|
||||
{
|
||||
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