VOGONS


DOSShark help

Topic actions

First post, by whocares

User metadata
Rank Newbie
Rank
Newbie

I've successfully used DOSShark to find some codes in X-Wing such as unlimited missiles. My issue is that only the topmost code will work in the codelist. One of the posters in the DOSShark thread

DOSShark for DOSbox 0.74

also had this issue. He stated in one of his posts that he fixed it.

"All right! Thanks to the included source code, I was able to find the reason. There was a variable missing in the "inject_thread" part. It always used the first line instead of advancing to the next.
I compiled it again and now it works."

Can someone help me with figuring out what fix he made. I found "injector_thread" in one of the source files but I'm not really sure of what to do. I have some experience with c programming but can't figure out the change he made. If anyone can lead me in the right direction, it would be much appreciated. Thanks!

Reply 1 of 1, by whocares

User metadata
Rank Newbie
Rank
Newbie

Figured it out. For anyone who may come across this problem in the future; here is how you fix it:

1. Open the file "main.c" in the "src" folder in an editor such as Notepad++
2. Go to line 375
3. The line will read: SendMessage(hwnd,LB_GETTEXT,0,(LPARAM)cuf);
4. It needs to be changed to: SendMessage(hwnd,LB_GETTEXT,i,(LPARAM)cuf);
5. Compile