21 March 2018, 13:49 | #41 | |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Quote:
I have updated the patch a bit, it should now run stable and also checks if it is already installed so running it twice is no problem (error code 10 is returned in that case). Code:
; ViroCop Patch ; ; patches Open() (dos.library) to accept accessMode as .w parameter ; this fixes the "Insert Disk 1" problem START move.l $4.w,a6 moveq #0,d0 ; any version will do lea DOSName(pc),a1 jsr -408(a6) ; OpenLibrary() move.l d0,a4 tst.l d0 beq.b .error ; patch Open() if patch is not installed lea -30(a4),a0 move.l 2(a0),a0 cmp.l #"STR!",2(a0) beq.b .installed ; patch is already installed ; allocate memory for patch code moveq #Size,d0 moveq #0,d1 ; any memory will do jsr -198(a6) ; AllocMem() tst.l d0 beq.b .error move.l d0,a2 moveq #Size/2-1,d7 move.l d0,a1 lea NewOpen(pc),a0 .copy move.w (a0)+,(a1)+ dbf d7,.copy jsr -132(a6) ; Forbid() lea -30.w,a0 ; Open() move.l a4,a1 ; DOSBase move.l a2,d0 jsr -420(a6) ; SetFunction() move.l d0,OldOpen-NewOpen(a2) jsr -138(a6) ; Permit() .exit moveq #0,d0 ; no errors rts .installed moveq #10,d0 ; patch is already installed rts .error moveq #20,d0 ; patch not installed rts NewOpen bra.b .go dc.l "STR!" .go swap d2 clr.w d2 swap d2 move.l OldOpen(pc),-(a7) rts OldOpen dc.l 0 Size = *-NewOpen dc.b "$VER: Virocop patch 1.1 (21.03.2018) by StingRay/[S]carab^Scoopex",10,0 DOSName dc.b "dos.library",0 |
|
21 March 2018, 13:53 | #42 |
CaptainM68K-SPS France
|
Thank you boys !
|
21 March 2018, 14:22 | #43 |
Registered User
Join Date: Nov 2014
Location: Italy
Posts: 2,351
|
now it works!!
Thanks... |
21 March 2018, 14:32 | #44 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Have fun. I'm almost tempted to create a "real" fix for this game, I'll see if I can be bothered (game is pretty good so it sure is worth it).
|
21 March 2018, 14:37 | #45 |
Registered User
Join Date: Nov 2014
Location: Italy
Posts: 2,351
|
Hired Guns i have solved using ipf, but cracked version is the same. after regolar installation i have red screeen and floppy drive that search floppy disk..
|
21 March 2018, 14:46 | #46 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
|
|
21 March 2018, 14:52 | #47 |
Registered User
Join Date: Nov 2014
Location: Italy
Posts: 2,351
|
|
21 March 2018, 15:41 | #48 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
|
Yes, even the first one works even if sometimes it fails.
Thanks to StingRay |
21 March 2018, 15:44 | #49 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Yeah, the output redirection to >NIL: is a good hint!
|
21 March 2018, 16:57 | #50 |
Registered User
Join Date: Nov 2014
Location: Italy
Posts: 2,351
|
but in my case, the first patch you released, i have failure on every commands and then crash the system with guru
|
21 March 2018, 21:41 | #51 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,174
|
don't run the patch in background. or you can have a race condition between the game & the patch. Well, that's theory. no need to run in background anyway.
|
21 March 2018, 21:54 | #52 |
Registered User
Join Date: Nov 2014
Location: Italy
Posts: 2,351
|
however, now all works greatly
|
21 March 2018, 22:08 | #53 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
The first version can indeed crash (coded before my first coffee, never a good idea) hence I updated the code and created a more stable version of the patch.
|
22 March 2018, 14:18 | #54 |
Registered User
Join Date: Nov 2014
Location: Italy
Posts: 2,351
|
and you have made a great fix
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Virocop AGA WHDLoad | Anakirob | support.Games | 22 | 19 March 2015 13:04 |
Worms DC AGA HD install | Vollldo | support.Games | 7 | 18 March 2011 17:43 |
Error trying to install civ aga to HD | dug26 | support.WinUAE | 2 | 07 June 2010 16:28 |
Mounting Native PC(formatted) harddisk as a Harddisk for WinUAE/E-UAE | Zetr0 | support.Hardware | 10 | 01 June 2006 14:04 |
Ripping - Virocop AGA | maVado | project.Sprites | 2 | 01 August 2005 21:42 |
|
|