Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //by gopro_2027
- //PEA stood for something but I forgot what it was
- #define PEA(x) (x+0x400000)
- //returns registered id for the thing
- int RegisterFile(const char *fullPath, const char *fileName)
- {
- int(*pRegisterFile)(const char*, bool, const char*, bool, bool) = (void*)PEA(0x1F1D7E0);//1.27 //1.00 PEA(0x1B8EC20);
- return pRegisterFile(fullPath, true, fileName, false, false);
- }
- //call this once
- void initCustomTexture() {
- RegisterFile("/user/home/ps4texture.ytd","ps4texture.ytd");
- }
- //render code
- void DrawSprite(char * textureDict, char * textureName, float x, float y, float sizeX, float sizeY, float rotation, int r, int g, int b, int a)
- {
- GRAPHICS::REQUEST_STREAMED_TEXTURE_DICT(textureDict, false);
- if (GRAPHICS::HAS_STREAMED_TEXTURE_DICT_LOADED(textureDict))
- {
- GRAPHICS::DRAW_SPRITE(textureDict, textureName, x, y, sizeX, sizeY, rotation, r, g, b, a);
- }
- }
- DrawSprite("ps4texture","tux-288_512",0.5f,0.5f,1.0f,1.0f,0.0f,255,255,255,255);
- Test file:
- https://anonfile.com/90aai6i5bb/ps4texture_ytd
Advertisement
Add Comment
Please, Sign In to add comment