Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*(sprite_save_strip(spr_test,"spr_test.png")
  2. surf=surface_create(32,32)
  3. surface_set_target(surf)
  4. draw_sprite(spr_test,0,0,0)
  5. surface_save(surf,"surf.png")
  6. surface_reset_target()
  7. ini_open("initest.ini")
  8. ini_write_string('aa','bb','cc')
  9. ini_close()
  10. //game_end()*/
  11. //show_debug_message("choose file to extract from")
  12. file_copy("empng.png","empnguse.png")
  13. //show_debug_message("choose where to put extracted fikes to")
  14. //pathto=get_save_filename('','choose directory to save to')
  15. /*if pathto!=''{
  16.     //pathto=filename_path(pathto)
  17.     file_copy("empng.png",string(pathto)+"empnguse.png")
  18.     }*/
  19. folder=get_string('input file name','name')
  20. file=noone//file_bin_open("empnguse.png",2)
  21. pathex=get_open_filename('',"")
  22. fileex=noone
  23. if pathex!=''{
  24.     fileex=file_bin_open(pathex,0)
  25.     file_bin_seek(fileex,0)
  26.     }
  27. //extractfrom=file_bin_open()
  28. ind=-1
  29. test=0
  30. fileind=0
  31. //png
  32. PNG=0
  33. IHDR=0
  34. IDATA=0
  35. IEND=0
  36. WARNING=0
  37. message=''
  38. lastblock='IEND'
  39. //png 2
  40. pngpos=-1
  41. iendpos=-1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement