Jump to content


Photo

File Compare


  • Please log in to reply
5 replies to this topic

#1 Agamer

Agamer

    GMC Member

  • GMC Member
  • 157 posts

Posted 24 July 2010 - 07:38 PM

This DLL/Extension will check two given files and return if they are the same.
Really, it's a speedy file compare.

This is my first DLL and GEX.

Example(GEX):

[Creation Event]
file1=get_open_filename('All Files|*','C:\*')
file2=get_open_filename('All Files|*','C:\*')
switch(file_compare(file1,file2,buff_whole))
{
case 0:show_message('Files Not The Same')break
case 1:show_message('Files Are The Same')break

case -1:show_message("An Error Occurred!#One or more of the files don't exist!")break
}
game_end()

;) I Hope This Can Help Someone!

 

 

DOWNLOAD link broken

 

The old link was down for a while.

The new link is just a GEX file, and contains some extra functions as well as the compare function. As far as the parameters, you will just have to work with it. It's pretty straight forward.

 

Download New GEX


Edited by Agamer, 15 October 2013 - 05:38 PM.

  • 0

#2 Agamer

Agamer

    GMC Member

  • GMC Member
  • 157 posts

Posted 25 July 2010 - 05:43 PM

My Next Update Will Have Another Argument:
file_compare(file1,file2,buff startpoint,buffsize)
buff startpoint will be the position in the file to start reading.

Edited by Agamer, 25 July 2010 - 09:55 PM.

  • 0

Package designer; resource maker; engine builder; program tool creator -- Be fully prepared to game:

My scripts My images My model designer My GUI components One of my engines Accepting texture requests


#3 van0014

van0014

    GMC Member

  • GMC Member
  • 301 posts
  • Version:GM8.1

Posted 13 September 2010 - 06:10 AM

Thankyou for creating this dll! It has helped me HEAPS! I am creating an antivirus program for usb autorun viruses, and need to compare a pre-prepared autorun.inf with one on usb's and your dll does exactly that! Brilliant work!!!
  • 0

Proud user of GM 8.1


#4 Agamer

Agamer

    GMC Member

  • GMC Member
  • 157 posts

Posted 15 September 2010 - 08:20 PM

Thankyou for creating this dll! It has helped me HEAPS! I am creating an antivirus program for usb autorun viruses, and need to compare a pre-prepared autorun.inf with one on usb's and your dll does exactly that! Brilliant work!!!


I'm glad this has help you. :)
  • 0

Package designer; resource maker; engine builder; program tool creator -- Be fully prepared to game:

My scripts My images My model designer My GUI components One of my engines Accepting texture requests


#5 _219270

_219270

    GMC Member

  • New Member
  • 4 posts

Posted 25 April 2013 - 09:14 PM

So could you please re-upload the file?

 


  • 0

#6 Agamer

Agamer

    GMC Member

  • GMC Member
  • 157 posts

Posted 15 October 2013 - 06:01 PM

So could you please re-upload the file?

 

I just re-uploaded it. Sorry for the wait.


  • 0

Package designer; resource maker; engine builder; program tool creator -- Be fully prepared to game:

My scripts My images My model designer My GUI components One of my engines Accepting texture requests