home *** CD-ROM | disk | FTP | other *** search
- /*****************************************
- PSID_Edit v1.0
- Mikael Lund, April 1997
- Edit Name, Author & Copyright info in
- single filed PlaySID files, using Dopus5.
-
- Usage: [Arexx] psid_ed.dopus5 {Ql} {f}
- *****************************************
- options results
- options failat 99
- parse arg source_handle.0 " "fil
- fil=compress(fil,'"')
- open(psid,fil);str.0=readch(psid,22)
- note=str.1=str.2=str.3="";lf='0a'x
- if upper(left(str.0,4))~="PSID" then exit
- str.1=compress(readch(psid,32),x2c(0))
- str.2=compress(readch(psid,32),x2c(0))
- str.3=compress(readch(psid,32),x2c(0))
- close(psid)
- address value DOPUS.1
-
- i=1 ; req_what="Enter Name ?" ; call request
- i=2 ; req_what="Enter Author ?" ; call request
- i=3 ; req_what="Enter Copyright ?" ; call request
-
- open(psid,fil);str.0=readch(psid,22)
- writech(psid,out.1);writech(psid,out.2);writech(psid,out.3)
- close(psid);exit
-
- REQUEST:
- do;begin
- req_pre="'"str.i"'";req_text="'"fil || lf || req_what "'"
- lister getstring source_handle.0 req_text req_pre 'Okay|Cancel'
- if DOPUSRC = 0 then exit
- if result="RESULT" then result=""
- str.i=delstr(result,33)
- out.i=overlay(str.i,x2c(000000000000000000000000000000000000000000000000000000000000000))
- end
- RETURN
- /**/
-