Cool .
..And the point of this is?
By doing this you are disabling optimizations that could otherwise occur by using C++...
well this is a undetected method, and its just an example where you can use something. in ASM, my main goal was for people to understand what it does and learn a bit.
wouldnt this be almost unpatchable unless they rebuild the way they use the PTC codes
i like this way, definitely looks cleaner than the way we do it now,
commando: You're probably the best non-coder coder I know LOL
Yes im going to convert to this. Looks neater!
This is such a waste of code..
The reason you make methods in the first place is to use the same code over and over again, using less space.
1 line of code looks a lot neater than 9 lines, and it is way easier to modify. What if that method gets patched? You have to delete all of them, or update every single one of them individually. Idk about you, but I would rather just update one method instead of 30+.
this code is completely bullshit. you cant directly push a string to the stack. the compiler would have to make an internal variable where the string will be stored and then the address of the variable pushed to the stack.. but inline asm doesnt support that, well not in the visual c++ version i use (7.1). also a call directly to a address also doesnt work with inline asm. you would have to store the address in a variable and use this variable.
that would be correct when using inline asm:
Code:char command[] = "ShowFPS 1"; DWORD address = 0xDEADBEEF; //runconsolecommand address __asm { push command call address }