No, You don't need the code of the texture hack.
This is the code I use for my texture hacks, it is the loader, start copying from Loaders.
Loaders
===Dynamic SD Loader System
*****34 lines of code
File Replacment: v2.1a[Phantom Wings]
225664EC 00000000
0401BFE0 4858BE20
065A7E00 00000070
38A00067 38810020
3CE0805A 60E37C18
4BE52531 38A0007F
3883FFE8 38610020
4BE52521 38A00068
60E47C18 38610020
9421FF80 BC410008
38610088 4BA74DB9
7C7C1B78 2C030000
4082000C 38210080
4800001C B8410008
38210080 4BE524E5
38610008 4BA742E1
7C7C1B78 4BA741E8
0401CD0C 4858B1F4
065A7F00 00000018
2C030000 4182000C
4BA7DD51 48000008
8078000C 4BA74DFC
043EE9D8 48000014
043EEBD4 48000014
043D8B9C 48000018
043E9B4C 38600000
043E9D38 38600000
043D8C80 60000000
80000000 80406920
80000001 805A7C00
8A001001 00000000
045A7C10 2F525342
045A7C14 452F7066
E0000000 80008000
-All patch files must be located in the pf folder as listed in the list of file directories.
Change it to gct file and put it in ur codes folder named as RSBE01.
Now you have to create a directory of folders were your going to store your texture hacks.
This is the directory private/wii/app/RSBE/pf/fighter/
then inside that fighter folder you have to create a folder for each character you want textures for. Heres the trick why so many people are doing this wrong, you have TO name the folder as the character is name is stored in the disk.
So the directory for captain falcon would look like this.
private/wii/app/RSBE/pf/fighter/captain
Here is a list below
Captain Falcon: captain
King Dedede: dedede
Diddy Kong: diddy
Donkey Kong: donkey
Falco: falco
Fox: fox
Mr. Game & Watch:gamewatch
Ganondorf: ganon
GIGA Bowser: gkoopa
Ike: ike
Kirby: kirby
Bowser: koopa
Link: link
Lucario: lucario
Lucas: lucas
Luigi: luigi
Mario: mario
Marth: marth
Meta Knight: metaknight
Ness: ness
Peach: peach
Pikachu: pikachu
Captain Olimar: pikmin
Pit: pit
Ivysaur: pokefushigisou
Charizard: pokelizardon
PokÈmon Trainer:poketrainer
Squirtle: pokezenigame
Ice Climbers: popo
Jigglypuff: purin
R.O.B.: robot
Samus: samus
Sheik: sheik
Snake: snake
Sonic: sonic
Zero Suit Samus:szerosuit
Toon Link: toonlink
Wario: wario
Warioman: warioman
Wolf: wolf
Yoshi: yoshi
Zelda: zelda
Green Alloy: zakoball
Yellow Alloy: zakochild
Blue Alloy: zakogirl
Red Alloy: zakoboy
After you've done the folders for the characters you want texture on go to some texture hack site like Stacksmash and grab some cool texture.
http://stacksmash.cultnet.n
To download a Stacksmash texture you have to look for "Released Content".
When its done downloading grab the file and put it in your captain folder (example) and rename it to "fitcaptain00.pcs" (this is for every character you have to put fit and the name of the folder) and then the number of the costume the texture will be replacing.
When you did it insert your SD into your Wii and launch up Gecko OS and it should work.
Here is the link of the guide I used
http://www.smashboards.com/showthread.php?t=225642
Hope that helps you