Mapping cache partitions (X,Y,Z) and...
#1
im interested in mapping the cache partitions, (mainly x so i can delete halo caches when playing the nmp maps). i tried adding the obvious to xboxmediacenter.xml...

Quote:<bookmark>
     <name>x drive</name>
     <path>x:\</path>
   </bookmark>

...so im assuming the partitions need to be mapped else where, like in xbmp.

also, i was wondering if it was possible to add the free space on my g partition to the settings menu. i tried adding...

Quote:<control>

 <description>drive g: text label</description>

 <type>label</type>

 <id>11</id>

 <posx>100</posx>  

 <posy>375</posy>

 <label>155</label>

 <font>font13</font>

 <textcolor>ffb2d4f5</textcolor>

 </control>

to settingsysteminfo.xml but i dont know what to put in the id tag.

any help would be much appreciated...

thanks in advance
Reply
#2
both of these request require patches to the source code.  it doesnt look like the x,y,z cache drives are mapped.  i *think* this would need to be done in application.cpp.

and there is no id for g: free space in the systeminfo screen source.  but this should do it... add this to guiwindowsysteminfo.cpp, at line 234, beneath the section that gets the free space on f:. (i also guess the f: space section could be surrounded by a if (g_stsettings.m_busefdrive) conditional to test if your configured for an f drive or not)

Quote:if (g_stsettings.m_busegdrive)
{

if (getdiskfreespaceex( "g:\\", null, null, &ltotalfreebytes))
{
swprintf(wszhd, l"%s g: %u mb ", pszdrive,ltotalfreebytes.quadpart/1048576); //to make it mb
wcscat(wszhd,pszfree);
}
else {
swprintf(wszhd, l"%s g: ",pszdrive);
wcscat(wszhd,pszunavailable);
}
{
set_control_label(getid(), 16,wszhd);
}

}

this will make the new id for g: free space 16. it looked like it wasnt in use.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#3
thanks alot, ive been meaning to start back coding, maybe thisll get me back into it.
Reply
#4
Sad 
hi,

any chance that somebody could release a patch to show the free space on the g: drive?

thanks,

yveke.
Reply

Logout Mark Read Team Forum Stats Members Help
Mapping cache partitions (X,Y,Z) and...0