User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: How to protect extension against compilation ?

  1. #1
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to protect extension against compilation ?

    Is someone (LIJI) know and want to explain how to not allow the compilation of an application which contain a specific extension ?
    Thanks

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: How to protect extension against compilation ?

    In General.cpp find:
    Code:
    LPCSTR* WINAPI DLLExport GetDependencies()
    {
    	return NULL;	// szDep;
    }
    Replace it with (or add if not found):
    Code:
    LPCSTR* WINAPI DLLExport GetDependencies(mv _far *mV, LPEDATA edPtr)
    {
    	return NULL;
    }
    .:::.Joshtek.:::.

  3. #3
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to protect extension against compilation ?

    Thanks

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on
    LIJI's Avatar
    Join Date
    Jun 2006
    Location
    Israel
    Posts
    1,175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to protect extension against compilation ?

    Ah... I didn't stop compilation in propose in the older versions in my extensions in order to protect them, I was using an old bugged SDK with the change Joshtek just showed. :P

  5. #5
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: How to protect extension against compilation ?

    You can also add :

    __asm int 3;

    in the GetDependencies function, to generate an exception, I think that's better than adding wrong parameters.

  6. #6
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to protect extension against compilation ?

    Where do I can add exactly "__asm int 3" ?

  7. #7
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: How to protect extension against compilation ?

    Quote Originally Posted by Yves
    in the GetDependencies function
    .:::.Joshtek.:::.

  8. #8
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to protect extension against compilation ?

    Yes, I know he said it but... I put it like :
    PHP Code:
    LPCSTRWINAPI DLLExport GetDependencies()
    {
        
    __asm int 3
        
    return NULL;    // szDep;

    I think not... I don't understand this line to add...

  9. #9
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: How to protect extension against compilation ?

    Code:
    LPCSTR* WINAPI DLLExport GetDependencies()
    {
            __asm int 3;
    	return NULL;	// szDep;
    }

  10. #10
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to protect extension against compilation ?

    Ho ok. But, because I'm curious, what this line do ?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Best way to somewhat piracy protect my app.
    By BrashMonkey in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 18th July 2011, 02:07 PM
  2. Password protect the app?
    By allos in forum Install Creator and Patch Maker
    Replies: 3
    Last Post: 17th August 2009, 04:26 PM
  3. protect files
    By iammfa in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 23rd April 2009, 04:36 PM
  4. it would be wise to protect the forums >_>
    By in forum Extension Developers Lobby
    Replies: 19
    Last Post: 17th June 2007, 08:37 AM
  5. SpeedHack..any way how to protect?
    By Blizna in forum Multimedia Fusion 2 - Technical Support
    Replies: 15
    Last Post: 6th February 2007, 05:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •