Advertisement
Guest User

Untitled

a guest
Sep 20th, 2014
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.80 KB | None | 0 0
  1. // #autoload
  2. // #name = cleanDSO
  3. // #version = 1.0
  4. // #date = December 21, 2001
  5. // #author = Paul Tousignant
  6. // #warrior = UberGuy (FT)
  7. // #email = uberguy@skyreach.cas.nwu.edu
  8. // #web = http://scripts.tribalwar.com/uberguy
  9. // #description = Remove all your *.dso files every time you exit T2.
  10. // #status = beta
  11.  
  12. //package noDso { //commented to remove
  13.  
  14.     function deleteDSO() { //Changed. old: quit()
  15.  
  16.         %cnt = 0;
  17.         %tmpObj = new ScriptObject() {};
  18.         for(%file = findFirstFile("*.dso"); %file !$= ""; %file = findNextFile("*.dso")) {
  19.             %tmpObj.file[%cnt++] = %file;
  20.         }
  21.         for (%i=0; %i<%cnt; %i++) {
  22.             deleteFile(%tmpObj.file[%i]);
  23.         }
  24.         %tmpObj.delete();
  25.         //return parent::quit();   //commented to remove
  26.     }
  27. //};                       //commented to remove
  28. //activatePackage(noDso);  //commented to remove
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement