A Method To Set Console Variables

Posts 113 of 13 · Page 1 of 1
A Method To Set Console Variables
I take no credits for this
Code:
void _stdcall SetConsoleVariable(const char* Command)
{
	asm_
	{
		push Command
		mov eax, 0x485FF0
		call eax
	}
}
Thanks to my new friend @KawaiiSlut for helping me keep my method private.

Hopefully this will get the attention off...
Quote Originally Posted by J View Post
I take no credits for this
Code:
void _stdcall SetConsoleVariable(const char* Command)
{
	asm_
	{
		push Command
		mov eax, 0x485FF0
		call eax
	}
}
Thanks to my new friend @KawaiiSlut for helping me keep my method private.

Hopefully this will get the attention off...
Lol this is what Skater uses (I reversed his too, but yours looked cooler :P)
Quote Originally Posted by Saltine View Post

Lol this is what Skater uses (I reversed his too, but yours looked cooler :P)
Yea hopefully mine doesn't get out D:
Quote Originally Posted by J View Post


Yea hopefully mine doesn't get out D:
I haven't given it to anyone that didn't see it before you deleted the thread (Except Pasha and he won't give it out)
Quote Originally Posted by J View Post


Yea hopefully mine doesn't get out D:
i got it ... hmmm ill give it out for ya k?
Quote Originally Posted by speedforyou View Post

i got it ... hmmm ill give it out for ya k?
hey bud why dont you not. nice release jeff and soz...
why you remove my post??
this like a new ptc? although not PTC lol
Yea pretty much
Quote Originally Posted by J View Post
I take no credits for this
Code:
void _stdcall SetConsoleVariable(const char* Command)
{
	asm_
	{
		push Command
		mov eax, 0x485FF0
		call eax
	}
}
Thanks to my new friend @KawaiiSlut for helping me keep my method private.

Hopefully this will get the attention off...
Code:
typedef void (__stdcall *SCV)(const char *Command);
SCV SetConsoleVariable = (SCV)0x485FF0;

using: SetConsoleVariable("GodMode 1");
Quote Originally Posted by SleepCoder View Post
Code:
typedef void (__stdcall *SCV)(const char *Command);
SCV SetConsoleVariable = (SCV)0x485FF0;

using: SetConsoleVariable("GodMode 1");
Writing a macro in assembly language is nearly always faster in execution than accomplishing the same thing in C++, so I would stick to Jeff's.
Quote Originally Posted by Saltine View Post

Writing a macro in assembly language is nearly always faster in execution than accomplishing the same thing in C++, so I would stick to Jeff's.
lol? seems you don't know what you are talking about.

my code.
Code:
  PUSH Command
  CALL DWORD PTR DS:[SetConsoleVariable]  ;0x485FF0, 2 lines.
your macro thing.
Code:
  PUSH Command
  CALL SetConsoleVariable
  SetConsoleVariable:
  PUSH EBP
  MOV EBP,ESP
  PUSH DWORD PTR SS:[EBP+8]
  MOV EAX,485FF0             
  CALL EAX                        ;then call the right function
  POP EBP
  RETN 4
my code is some μs more fast than your macro thing.
Quote Originally Posted by SleepCoder View Post
lol? seems you don't know what you are talking about.

my code.
Code:
  PUSH Command
  CALL DWORD PTR DS:[SetConsoleVariable]  ;0x485FF0, 2 lines.
your macro thing.
Code:
  PUSH Command
  CALL SetConsoleVariable
  SetConsoleVariable:
  PUSH EBP
  MOV EBP,ESP
  PUSH DWORD PTR SS:[EBP+8]
  MOV EAX,485FF0             
  CALL EAX                        ;then call the right function
  POP EBP
  RETN 4
my code is some μs more fast than your macro thing.
I was referring to it as a macro simply because the assembly language he was using was "Microsoft Macro Assembler". I do see now that yours would execute faster, I was just unaware of how the typedef keyword worked in assembly.
Posts 113 of 13 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?