User Tag List

Results 1 to 5 of 5

Thread: Request for useless call to be removed

  1. #1
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    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)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,964
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)

    Request for useless call to be removed

    Hey,
    I'd just like to request a call to GetPropValue() before querying the correct GetPropCheck() be removed from MMF2. I understand checkbox is a sub-property of other types, but this occurs, when it shouldn't, for checkbox-only properties (PROPTYPE_LEFTCHECKBOX).
    Peacin' out, Φ

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    What problem does this cause?

  3. #3
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    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)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,964
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    It seems ineffective, and in extensions that have no Prop setting for properties like this, it could cause a crash.
    In the DarkEDIF SDK, GetPropValue() calls to checkbox-only properties are currently treated as an invalid request, causing a error dialog, as there is no value associated with the property.
    The checkbox value is stored the same way as any other property with a checkbox subproperty, separate from the original value. In code, it's something like this:
    Code:
    struct AnyPropertyType {
    
    Prop * Value; bool Checkbox; // MainValues is NULL for LEFTCHECKBOX, only this is used
    };
    From a black/white perspective, there's no problem, I can still code it to ignore those IDs, if it's that difficult to edit MMF2's side.

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    I can confirm the call to GetPropValue for checkbox properties.

    @Phi: I'm not sure how it would cause a crash or freeze with what you're doing - worst case scenario it isn't very efficient because of the useless call, but it's only the properties - they don't need to be very efficient.
    Working as fast as I can on Fusion 3

  5. #5
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    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)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,964
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    That was worse case scenario, honestly I'd be surprised if any part of my code could crash. I do a lot of checks.

Similar Threads

  1. Make a Call without "Call Phone" permission?!?
    By StingRay in forum Android Export Module Version 2.0
    Replies: 4
    Last Post: 21st April 2013, 08:35 AM
  2. thumbs.db files will not be removed - FIX HERE
    By aniceguy in forum Install Creator and Patch Maker
    Replies: 2
    Last Post: 13th June 2009, 02:22 PM

Posting Permissions

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