This Is For load image and print asm soruce
ASM CODE
C++Code:Main.exe 1.04D Load And Print Image Model By Leo123 MyScreen DB "interface\gamecensorship_fear.tga", 0 Offsets Main_LoadImage DD 006F8974H Main_PrintImage DD 00642C94H Example Call Invoke DrawPic, 1H, 3F1C28F6H, 3F1C28F6H, 43160000H, 43960000H, 41F00000H, 41200000H, 1BH, Offset MyScreen The Procs DrawPic Proc IsModelForceShow:DWord, scaleY:FLOAT, scalyX:FLOAT, Modelheight:FLOAT, Modelwidth:FLOAT, postionY:FLOAT, postionX:FLOAT, PrintCode:DWord, imagepath:DWord Invoke LoadImg, 1H, 0H, 2900H, 2601H, imagepath, PrintCode Invoke PrintImg, IsModelForceShow, scaleY, scalyX, Modelheight, Modelwidth, postionY, postionX, PrintCode Ret DrawPic EndP LoadImg Proc var1:FLOAT, var2:FLOAT, var3:FLOAT, var4:FLOAT, imgpath:DWord, PrintCode:DWord Push var1 Push var2 Push var3 Push var4 Push PrintCode Push imgpath Call Main_LoadImage Add Esp, 18H Ret LoadImg EndP PrintImg Proc IsModelForceShow:DWord, scaleY:FLOAT, scalyX:FLOAT, Modelheight:FLOAT, Modelwidth:FLOAT, postionY:FLOAT, postionX:FLOAT, PrintCode:DWord Push 0H Push 1H Push IsModelForceShow Push scaleY Push scalyX Push 0H Push 0H Push Modelheight Push Modelwidth Push postionY Push postionX Push PrintCode Call Main_PrintImage Add Esp, 30H Ret PrintImg EndP
Code:#define LoadImg ((void(*) (FLOAT, FLOAT, FLOAT, FLOAT, DWORD, DWORD)) 0x006F8974) #define PrintImg ((void(*) (DWORD, FLOAT, FLOAT, FLOAT, FLOAT, FLOAT, FLOAT, DWORD)) 0x00642C94) LoadImg(1, 0, 0x2601, imagepath, printcode); PrintImg(IsModelForceShow, scaleX, scaleY, ModelHeight, ModelWidth, positionY, positionX, PrintCode);
Tested On 1.04D Haste Main.exe
If you make call in screen start after load defult imeages the result is:
and i make call to other pic after load sky
result:
Enjoy
Creadits To Me (Leo123)
and Holy For idea :)
and coNsept to convect my asm code to c++ xD




Reply With Quote
D


