Raised This Month: $106 Target: $400
 26% 

CPureFileTracker:DoesFileMatch


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-26-2018 , 18:55   CPureFileTracker:DoesFileMatch
Reply With Quote #1

https://forums.alliedmods.net/showpo...&postcount=319

I'm looking to hook this signature. Can some provide an example that prints the parameters to chat.

Im hoping to get filename, client/userid, hash as string
__________________
Neuro Toxin is offline
donrevan
AlliedModders Donor
Join Date: Jul 2010
Old 07-28-2018 , 15:07   Re: CPureFileTracker:DoesFileMatch
Reply With Quote #2

Show us your attempts so we can help.

FileHash_t structure is probably the same as in 2013 Source SDK (md5value_t is here).

Last edited by donrevan; 07-28-2018 at 15:08.
donrevan is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-29-2018 , 20:52   Re: CPureFileTracker:DoesFileMatch
Reply With Quote #3

I barely have time to scratch my ass atm.

That is why I posted this in the request forum instead of scripting help.

I do appreciate the link to the md5 value class.
__________________
Neuro Toxin is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 08-11-2018 , 10:14   Re: CPureFileTracker:DoesFileMatch
Reply With Quote #4

I've been giving this a shot. It is possible to hook this signature in a plugin or do I need to write an extension?
__________________
Neuro Toxin is offline
psychonic

BAFFLED
Join Date: May 2008
Old 08-11-2018 , 14:50   Re: CPureFileTracker:DoesFileMatch
Reply With Quote #5

Quote:
Originally Posted by Neuro Toxin View Post
I've been giving this a shot. It is possible to hook this signature in a plugin or do I need to write an extension?

https://forums.alliedmods.net/showpo...&postcount=589
psychonic is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 08-12-2018 , 02:10   Re: CPureFileTracker:DoesFileMatch
Reply With Quote #6

Quote:
Originally Posted by psychonic View Post
Code:
"Games"
{
    "#default"
    {
        "Functions"
        {
            "DoesFileMatch"
            {
                "signature"  "\x55\x8B\xEC\x8B\x0D\x2A\x2A\x2A\x2A\x81\xEC\x94\x05\x00\x00"
                "callconv"  "thiscall"
                "return"  "bool"
                "this"  "ignore"
                "arguments"
                {
                    "str1"
                    {
                        "type"  "string"
                    }
                    "str2"
                    {
                        "type"    "string"
                    }
                    "int1"
                    {
                        "type"    "int"
                    }
                    "hash"
                    {
                        "type"    "int"
                    }
                    "userid"
                    {
                        "type"    "int"
                    }
                }
            }
        }
    }
}
This is not my specialty that's for sure.

I'm not sure what the argument names are nor where to properly parse the signature.
__________________

Last edited by Neuro Toxin; 08-12-2018 at 04:53.
Neuro Toxin is offline
hmmmmm
Senior Member
Join Date: Mar 2017
Location: ...
Old 08-12-2018 , 04:39   Re: CPureFileTracker:DoesFileMatch
Reply With Quote #7

Argument name is irrelevant, call it whatever you want.
Also you might find it easier doing this through an extension to begin with while messing around, then doing it as a plugin once you know what you want. With an extension you'll be able to directly use the structs, which will make your life a lot easier.
hmmmmm is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:54.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Theme made by Freecode