if you launch the game from HBC>Nintendont, the cheat code need to be on the game's partition (if you have games on USB, cheat goes to usb:/codes/, or any other working cheatcode folders. Look at the first post for a cheatcode guide)
If you launch the game from a loader, it should copy the cheat code to the correct folder automatically (at least USBLoaderGX is doing it).
USBLoaderGX is storing the .txt in /txtcodes/ and the .gct in /codes/, it will copy to USB or SD if needed based on your game's partition.
Just note that USBLoaderGX 1246 still check for kenobiwii.bin file, even when using nintendont 335+
just copy that file to /sneek/ folder (or create a fake one) and it will not bother you.
1247 will not check kenobi anymore.