Advertisement
PT_

Untitled

PT_
Aug 31st, 2018
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. [i]HDPICV
  2.  
  3. 0->TOTALPICS
  4.  
  5. // Allocate memory for picture names
  6. Alloc(9)->LPICNAME
  7. Alloc(9)->RPICNAME
  8.  
  9. // Detect left half of the images
  10. 0->APOS
  11. While Detect(^^oAPOS,"HDPICV2L"->LPIC
  12. // Open the variable - we are sure it exists because it's detected
  13. Open(LPIC,"r"->LPICSLOT
  14.  
  15. // Write the name to the allocated memory
  16. Seek(8,0,LPICSLOT
  17. Read(LPICNAME,8,1,LPICSLOT
  18.  
  19. // Detect right half of the images
  20. 0->BPOS
  21. While Detect(^^oBPOS,"HDPICV2R"->RPIC
  22. // Open the variable - we are sure it exists because it's detected
  23. Open(RPIC,"r"->RPICSLOT
  24.  
  25. // Write the name
  26. Seek(8,0,RPICSLOT
  27. Read(RPICNAME,8,1,LPICSLOT
  28.  
  29. // Compare names
  30. If not([Med]LPICNAME,RPICNAME
  31. // Yay, they matched! Now store the data pointer into L1
  32. GetDataPtr(LPICSLOT)->L1(TOTALPICS
  33. TOTALPICS+3->TOTALPICS
  34. GetDataPtr(RPICSLOT)->L1(TOTALPICS
  35. TOTALPICS+3->TOTALPICS
  36. End
  37.  
  38. // Close the right half of the image
  39. Close(RPICSLOT
  40. End
  41.  
  42. // Close the left half of the image
  43. Close(LPICSLOT
  44. End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement