Dolphin, the GameCube and Wii emulator - Forums

Full Version: Programming Discussion Thread
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The guy who hates d3d9 Wrote:It's more efficient to work with than using Meep's C++ interface though :/

EDIT: Btw, do you fail less at HLSL these days? Just curious

Math has almost completely replaced programming this semester I'm afraid. I don't know how I survived.

So no.
I've pretty much finished my AS Computing coursework. Did you know that in Windows, when using Java, if you try and write characters 80 through 9F to a text file you'll just get character 3F (?)? I spent ages trying to work out why on earth my vigenere password cipher didn't work when it wrote to a file, so it took 2 days before I realised where the data was being damaged, and just wrote the integer value of each character instead.
Seems like Nintendo NERD put up a coding contest on their website.
It's a cpp file with some algorithm you have to solve. I have no idea what to do, perhaps others here could give it a go?
Do no live in Europe, no interest :p Pass it along to delroth. He can RE it, get hired by Nintendo, then force them to make their own open-source emulators (or he could just leak info for us to build one).
Do we know what the rules are, or are we just supposed to change random lines until it spits something out?
In the source code there's a comment on line 45 telling you to change the cipher only.
Code:
u8 cipher[32]={
//change only this :
0x1c,0x20,0xc1,0xa7,0x3b,0x25,0xaf,0x18,0xc8,0x6e,0x1b,0x41,0xfe,0x69,0xd6,0xc6,
0xde,0x3b,0x00,0xf8,0x17,0x48,0xde,0x04,0x9e,0xb5,0xaf,0xf2,0x70,0x8c,0xd9,0xda,
//
};
Also, I'm pretty sure this code would run as java if I just changed the datatypes a bit.

How do I use cout?

I've now hit the point that it could be bruteforced if I knew any C++. So far it's been odd java.
Cout is defined in iostream. Include it and either call it with the std namespace.
Example: std::cout << "Test" << std::endl

Or state that you'll be using the namespace so you don't have to use the std:: all the time.
Example: using namespace std;

Now go learn C++.
y u no google cout?
Quick question. If this is not the right place for it I apologize.

Does anybody know if I can use a bitwise not on a byte array in VB.net? I'm guessing I would have to convert it to integer first. What would be the best way to NOT a whole file in vb.net?

I have no formal coding knowledge.