VideoGame Community!
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
 
 

Display results as :
 


Rechercher Advanced Search

[This shit is not working Saibot!]

FAT story

4 posters

Go down

FAT story Empty FAT story

Post by tkhnoman Tue Apr 20, 2010 3:57 am

void get_diskinfo()
{
//To get boot record location, fat diagram location
// root diagram location, and data area location
//Also get sector per cluster information

bootloc = 0;

//Read the MBR
read(0);

if(buffer[0] != 0xE9 && buffer[0] != 0xEB){
//get the boot record location location
temp[0] = buffer[0x1C6];
temp[1] = buffer[0x1C7];
temp[2] = 0;
temp[3] = 0;
bootloc = char_to_long();
}
else{
bootloc = 0;
}

//Now read the boot record diagram
read(bootloc);

//Get the FAT diagram location
fatloc = bootloc + buffer[0x0E];

//Get the root directory location
temp[0] = buffer[0x16];
temp[1] = buffer[0x17];
temp[2] = 0;
temp[3] = 0;
secfat = char_to_long();
rootloc = fatloc + ((unsigned long)secfat * 2);

//Get the data area location
temp[0] = buffer[0x11];
temp[1] = buffer[0x12];
temp[2] = 0;
temp[3] = 0;
dataloc = rootloc + (char_to_long() / 16);

//Get the sector per cluster
secclust = buffer[0x00D];

//Get card Capacity
temp[0] = buffer[0x13];
temp[1] = buffer[0x14];
temp[2] = 0;
temp[3] = 0;
cardsize = char_to_long();
if(cardsize == 0)
{
temp[0] = buffer[0x20];
temp[1] = buffer[0x21];
temp[2] = buffer[0x22];
temp[3] = buffer[0x23];
cardsize = char_to_long();
}

}

//Well, it's writing...
tkhnoman
tkhnoman
New Dood
New Dood

Posts : 20
Join date : 2010-04-16

Back to top Go down

FAT story Empty Re: FAT story

Post by Chaos Tue Apr 20, 2010 11:32 am

Pretty sure there is already a function for this in the C /C* librarys. Unless I appear to be missing some vital point... Tongue
Chaos
Chaos
Light Player
Light Player

Posts : 89
Join date : 2009-11-05

Back to top Go down

FAT story Empty Re: FAT story

Post by tkhnoman Wed Apr 21, 2010 1:23 am

haha, maybe yes. I did get one code similar to this, the one with more complexity.

I dunno, but i like to carving things again.
tkhnoman
tkhnoman
New Dood
New Dood

Posts : 20
Join date : 2010-04-16

Back to top Go down

FAT story Empty Re: FAT story

Post by togawa Sun Oct 24, 2010 12:06 pm

Looks like the lyrics to a Kraftwerk Song Spot2
togawa
togawa
GAMER!
GAMER!

Posts : 558
Join date : 2009-09-01

Character sheet
Test Game:

http://www.jellotime.com/

Back to top Go down

FAT story Empty Re: FAT story

Post by [Mr_Self_Destruct] Sun Oct 24, 2010 9:11 pm

[Hmmm]
[Mr_Self_Destruct]
[Mr_Self_Destruct]
[Admin of The Skies]
[Admin of The Skies]

Posts : 1996
Join date : 2009-09-01

Character sheet
Test Game:

Back to top Go down

FAT story Empty Re: FAT story

Post by togawa Mon Oct 25, 2010 1:08 pm

Mallow
togawa
togawa
GAMER!
GAMER!

Posts : 558
Join date : 2009-09-01

Character sheet
Test Game:

http://www.jellotime.com/

Back to top Go down

FAT story Empty Re: FAT story

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum