• Getting original function
    1 replies, posted
So I has re-written function like: fileFind = file.Find(name,path,str) function file.Find() --some staff end And I need to get original function of file.Find How I can make this?
First off you're not saving the old version, you're calling it when invalid arguments. To answer your question you don't. Unless you save the old version of it before you overwrite the only way to get it is through the var you saved the older version in. Unless you want to use debug.getupvalue on the new function, though that's still just getting the fileFind variable but with extra steps.
Sorry, you need to Log In to post a reply to this thread.