How to search for certain references in source for engines?

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

Post Reply
marzipan
Posts: 301
Joined: Fri Nov 25, 2005 4:10 pm

How to search for certain references in source for engines?

Post by marzipan »

Or to be more precise: "How do I search for certain references when browsing through source code for each engine in ScummVM?"


It recently dawned on me (with help from somebody else elsewhere) that it's possible to adjust the flag regarding copy protection for the Cine engine within a certain file in the source, so I thought, "well, if the Future Wars protection isn't going to be officially removed anytime soon, I might as well make my own personal build which will kill it". ^_^

However, I also recall having a lot of trouble with the protection in GOB titles (Gobliiins, Ween et al) and so was looking to see if I could disable that too. But I'm having a hell of a time finding any copy protection references in any of the GOB engine source files. Is there an easier way of doing this, or is there in fact no way to kill the protection even by source-modification?

Thanks.
User avatar
eriktorbjorn
ScummVM Developer
Posts: 3561
Joined: Mon Oct 31, 2005 7:39 am

Re: How to search for certain references in source for engin

Post by eriktorbjorn »

marzipan wrote:But I'm having a hell of a time finding any copy protection references in any of the GOB engine source files. Is there an easier way of doing this, or is there in fact no way to kill the protection even by source-modification?
In most (all?) games that ScummVM supports, the copy protection is handled by a game script, virtually indistinguishable from any other game script. There probably aren't many direct references to copy protection in the ScummVM source code, except for the cases where it goes out of its way to disable it.
User avatar
clone2727
Retired
Posts: 1611
Joined: Fri Jun 09, 2006 8:23 pm
Location: NJ, USA

Re: How to search for certain references in source for engin

Post by clone2727 »

eriktorbjorn wrote:In most (all?) games that ScummVM supports, the copy protection is handled by a game script, virtually indistinguishable from any other game script.
Lure hardcodes the copy protection. It's disabled by default, anyway.
User avatar
lazylazyjoe
Posts: 131
Joined: Mon Oct 01, 2007 4:14 pm

Post by lazylazyjoe »

I would imagine that it would be treated like an ordinary event that needs to be triggered in order to continue. (Like, needing to get a key, before your character can open a door.) So, you would have to figure out what variable to alter, and also what value to assign it. This would involve a look in the source code/script of the game. Or perhaps some RE'ing and much testing.
Thus, it would be a game specific hack, not an engine hack. This is just a guess based on my limited coding experience, so correct me if I'm wrong.
Post Reply