uhm.. im sure i could manage this myself.. but since im lazy ill ask
uhm... what exactly are you telling us to do?
i know to add the function to the bottom of the default.xap
but the next 3 codes..?
well after looking a the code some more... i know
but most people here are used to full code replacements.. so ill do the liberty of this:
paste this in no matter what at the bottom of your default.xap
CODE
//
// HDD Space.
//
function GetXboxHardDiskStats()
{
var DDPartition;
var nFreeSpace = 0;
var nTotalSpace = 0;
var nArraySize = 7; // Can be 4 or 7.
var hddInfo = " XBOX HARD DISK\n";
DDPartition = new Array(nArraySize);
DDPartition[1] = "C:";
DDPartition[2] = "E:";
DDPartition[3] = "F:";
DDPartition[4] = "G:";
DDPartition[5] = "X:";
DDPartition[6] = "Y:";
DDPartition[7] = "Z:";
for (var i = 1; i < nArraySize + 1; i = i + 1)
{
nFreeSpace = theHardDrive.GetFreeSpace(DDPartition + "\\");
nTotalSpace = theHardDrive.GetTotalSpace(DDPartition + "\\");
if(nTotalSpace != 0){
hddInfo = hddInfo + DDPartition + " " + nFreeSpace + "MB of " + nTotalSpace + "MB\r";
}
}
TellUser(theTranslator.Translate(hddInfo),"");
}
//
// End.
//
if u want to use Y button as hdd info from the root menu, replace this:
CODE
control DEF theMainMenuJoy Joystick
{
function OnADown()
{
PlaySoundA();
if(nCurMainMenuItem == 0)
{
theMusicMenuIn.Play();
GoToMusic();
}
else if(nCurMainMenuItem == 1)
{
theSettingsMenuIn.Play();
GoToHardDrive();
}
else if(nCurMainMenuItem == 2)
{
}
else if(nCurMainMenuItem == 3)
{
theSettingsMenuIn.Play();
GoToSettings();
}
}
with this:
CODE
control DEF theMainMenuJoy Joystick
{
function OnADown()
{
PlaySoundA();
if(nCurMainMenuItem == 0)
{
theMusicMenuIn.Play();
GoToMusic();
}
else if(nCurMainMenuItem == 1)
{
theSettingsMenuIn.Play();
GoToHardDrive();
}
else if(nCurMainMenuItem == 2)
{
}
else if(nCurMainMenuItem == 3)
{
theSettingsMenuIn.Play();
GoToSettings();
}
}
function OnYDown()
{
PlaySoundB();
GetXboxHardDiskStats();
}
basically the reason i was confused is cause MrSin didnt explain those .......s meant to scroll to a spot where u could fit in the snippet
hopefully this will prevent some confusion
props to mrsin however... great script
<