Difference between revisions of "Running Continuum under Wine"
m (→Why It Works: minor) |
m (→Why It Works: minor) |
||
Line 23: | Line 23: | ||
== Why It Works == | == Why It Works == | ||
− | When Continuum runs, one of the first | + | When Continuum runs, one of the first things it does is create another process of itself with some priviliages restricted(the ability to call OpenProcess). Then, when the child process attempts to do the same thing, it receives an error that OpenProcess failed, and that's the sign that it's the child process. The child process then proceeds to run the game. |
Since Wine does not properly emulate this parent-child security, this source modification is necessary to get Continuum to run on it. | Since Wine does not properly emulate this parent-child security, this source modification is necessary to get Continuum to run on it. |
Revision as of 00:33, 21 December 2005
To run Continuum under Wine, you'd need to apply a patch to Wine's source code. Copy the text block below into a file, such as cont.patch, and place it at the head directory of Wine's source code.
index 33f9ee1..d50cb7d 100644 --- a/dlls/kernel/process.c +++ b/dlls/kernel/process.c @@ -2460,6 +2464,7 @@ HANDLE WINAPI OpenProcess( DWORD access, OBJECT_ATTRIBUTES attr; CLIENT_ID cid; +if (access & PROCESS_VM_WRITE) return NULL; cid.UniqueProcess = (HANDLE)id; cid.UniqueThread = 0; /* FIXME ? */
Run cat cont.patch | patch -p1 to apply the patch file to Wine's source code. Follow with the usual ./configure && make depend && make to build Wine. If you'd wish to have this replace your current Wine installation or to install it globally, run make install as root.
Common Problems
Make sure you are running Continuum as at least 16 bit. If having problems with sound, with winecfg, check ALSA driver and switch hardware acceleration to emulation.
Chat window will not appear when you Alt-Tab. This is because Continuum doesn't understand that it is minimized under Wine, so it will never start the chat window.
Why It Works
When Continuum runs, one of the first things it does is create another process of itself with some priviliages restricted(the ability to call OpenProcess). Then, when the child process attempts to do the same thing, it receives an error that OpenProcess failed, and that's the sign that it's the child process. The child process then proceeds to run the game.
Since Wine does not properly emulate this parent-child security, this source modification is necessary to get Continuum to run on it.