I think you mean unsurprisingly.by tueidj - Homebrew General
There's a cleaner way to do the same thing: - Have the user insert the matching disc for the save to be copied - Open the game partition on the disc - Access the title's data directory using ISFS commands No haxx needed.by tueidj - Testing Corner
Those are undefined instructions, designed to trigger an exception as a way to execute a syscall. See for a longer explanation.by tueidj - Software
Sounds like a perfect place to use a union. But how do you keep a record of which contact type is used for each client? If you cast it to void* you have to know what to cast back to when you want to read it...by tueidj - Coding
Mind sharing? I've run memory leak tests on my programs (mounting and unmounting different volumes) and haven't detected any.by tueidj - Coding
You have to hope the disk has a readable partition table, and parse it. Look in the libfat source code, partition.c contains a function called FindFirstValidPartition that parses the table looking for FAT partitions.by tueidj - Coding
Sure it is. You just have to pass the starting sector of the partition to fatMount.by tueidj - Coding
Open the original file (setting.txt) in binary mode to prevent windows translating end-of-line characters.by tueidj - Coding
The = operator override for GL::Image looks suspect; it's trying to realloc buffers immediately after freeing them (why use realloc in that case?) and it looks like there's a typo that makes it realloc the inbuffer for the outbuffer.by tueidj - Coding
Not sure what you would expect getuid and getpid to return on the wii.by tueidj - Coding
The wii's networking stack kinda sucks. Not sure if the problem is in libogc or IOS but I ran into all sorts of problems when I tried to use more than 6 connections at once (this was after doubling the network heap size in libogc). marcan's idea of using linux would be the best bet since (I believe) it accesses the hardware directly.by tueidj - Ideas, requests
To be honest I don't even understand what your point is any more. First you said the Wii and DS can't communicate at all - false. Then you said ok the Wii can send demos but games can't communicate - also false. Now you've gone onto something completely different and suggest I'm going to upload patched images to torrent sites. o_O bg4545 seems to have got my point strby tueidj - The Junkyard
The last time I checked it was called: s32 USB_DeviceInsertNotifyAsync(const char *devpath,u16 vid,u16 pid,usbcallback cb,void *usrdata); in usb.c, it doesn't seem to be in the latest usb.h (not sure it ever was).by tueidj - Coding
USB is actually simpler, the functions exist in libogc - you just have to tell it what sort of device you're watching for.by tueidj - Coding
Did you miss the part where I said some wii games can do what you claim is impossible? See Guitar Hero 5 for instance...by tueidj - The Junkyard
Quotenightwishfan1And one would figure if Nintendo hasnt attempted to connect the two devices through a wireless means of doing so after 2 years, then it's impossible. The differences between the two seem radical enough where Nintendo knows it cant be done, and we found that out as well. Uh, nintendo has done it. Demos can be sent to the DS from the nintendo channel and some wii games canby tueidj - The Junkyard
IIRC they exist but aren't documented anywhere. I believe you have to issue a IOS_IoctlvAsync call, specifying your callback function and using IOCTL_SDIO_SENDCMD with cmd=64.by tueidj - Coding
QuoteAllRightit just gives the wii 3-4 seconds of buffer time once you load the dol file from the HBC, its more or less a loading screen with a catchy Windows-Esque Startup noise You're calthephenom, aren't you?by tueidj - Testing Corner
It's mainly just for fun - I wanted to see how much effect turning the fan on and off had on the cpu temperature. I know TIV is read only, it's meant to change to 1 to indicate the TIN bit is valid i.e. a comparison has been completed. The other interesting thing I found is some bits of THRM3 which are meant to be read-only seem to be writable - I think these bits are used for calibraby tueidj - Coding
I recently tried writing some code to try and get the cpu junction temperature using the THRM1 and THRM3 registers (single-threshold mode). Unfortunately it didn't work - writing to the registers worked, and I could read back the values that I'd written, but the TIV bit on the THRM1 register remained cleared so the comparison result was never valid. What might be the problem is that thby tueidj - Coding
Using threads isn't essential. It would only move the polling out of the main thread to a different one. Most unix network apps poll select() to see if there's data waiting on one or more sockets. Unfortunately it hasn't been implemented in libogc and you have to use net_poll() instead, which does something similar. Other options are: - use non-blocking sockets and check if netby tueidj - Coding
Is deducing the structure of playtime_buf left as an exercise for the reader? Edit: nm, figured it out (pretty simple).by tueidj - Software
QuoteArikadoHere is how I would've wrote it: ... if(!file) { printf("fopen Error!!"); fclose(file); return false; } ... Maybe this will work for you. Trying to fclose NULL is not a good idea.by tueidj - Coding