Error Code : <code>In file included from Tweak.xm:2: /var/mobile/Documents/iOS-Mod-Menu-Template-for-Theos-0.9.0/template/Chams.mm:15:1: error: expected unqualified-id %hook NSBundle ^ /var/mobile/Documents/iOS-Mod-Menu-Template-for-Theos-0.9.0/template/Chams.mm:27:1: error: expected unqualified-id %end ^ /var/mobile/Documents/iOS-Mod-Menu-Template-for-Theos-0.9.0/template/Chams.mm:62:1: error: expected unqualified-id %ctor { ^ 3 errors generated.</code> My code: [CODE] #include <OpenGLES/ES2/gl.h> #include <OpenGLES/ES2/glext.h> void (*_glDrawElements)(GLenum mode, GLsizei count, GLenum type, const void *indices); GLint (*_glGetUniformLocation)(GLuint program,const GLchar *name); GLint $glGetUniformLocation(GLuint program,const GLchar *name) { NSLog(@"%s",name); return _glGetUniformLocation(program,name); } //disable metal framework for unity %hook NSBundle + (id)bundleWithPath:(NSString *)fullPath { if ([fullPath isEqual:@"/System/Library/Frameworks/Metal.framework"]) { NSLog(@"distable metal framework"); return NULL; } return %orig(fullPath); } %end #define _DRAW_RGB_ 29,0,28 void $glDrawElements(GLenum mode, GLsizei count, GLenum type, const void *indices) { _glDrawElements(mode, count, type, indices); if (mode != GL_TRIANGLES || count < 1000) return;{ GLint currProgram; glGetIntegerv(GL_CURRENT_PROGRAM, &currProgram); GLint id = _glGetUniformLocation(currProgram, "_Color4"); // _Color4 is shader name if (id == -1) return; // draw elements on 2d screen coordinates level glDepthRangef(1, 0.5); // enable and write rgb into frame buffer glColorMask(_DRAW_RGB_, 0); glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE); // draw chams on elements _glDrawElements(mode, count, type, indices); // now cleaning up glDepthRangef(0.5, 1); glColorMask(1, 1, 1, 1); glDisable(GL_BLEND); } } %ctor { // Wallhack MSHookFunction((void*)MSFindSymbol(0, "_glDrawElements"), (void *)$glDrawElements, (void **)&_glDrawElements); MSHookFunction((void*)MSFindSymbol(0, "_glGetUniformLocation"), (void *)$glGetUniformLocation, (void **)&_glGetUniformLocation); } [/CODE] I got the code somewhere, it doesnt belong to me
from iOSGods RSS Feed https://ift.tt/AiMD15G
Subscribe to:
Post Comments (Atom)
-
Yubo Yoti bypass Requirements: Yubo app Jailbroken iPhone Apps Manager Brain Steps: Open Apps Manager Locate Yubo in Apps Manager and open i...
-
Modded/Hacked App: Simply Guitar by JoyTunes by JoyTunes Bundle ID: com.joytunes.SimplyGuitar iTunes Store Link: https://ift.tt/2ANDd7d Mod ...
-
I don't know how this happened, i was trying to install Kinemaster modded version on my iPhone 7 running iOS 14.0.1, maybe it's beca...
-
Hey everyone I am running Ipad 6th generation running ios 14.0 32 gb capacity with 19.1 gb left I used sideloadly yesterday to install an ap...
-
Hello! I am using this for practice using a dummy Snapchat account I've made and created a My Eyes Only tab. Now, if you don't know ...
-
Hello, does anyone know why I cannot use my Apple password or password from apple servers? Sideloadly version 0.16.1 Checking iOS version......
-
As the title says upon installing Last Day on Earth with sideloadly i get this error ERROR: Guru Meditation 6020bc@89:f11511 Call to np_clie...
-
Hello friends, So I have a problem with Sideloadly, I installed it on my (32x bit Windows 7) laptop (SONY) and tried opening it, but when I ...
-
Hello, I am currently running with an iPhone XR on IOS 12.2. I am trying to install ipa files through cydia impactor but keep receiving this...
-
Netflix is now offering users a chance to win a free subscription for 83 years. The company calls it the “immortal” Netflix account. T...
No comments:
Post a Comment