Buongiorno a tutti.
Cercando su internet ho trovato un rimedio ai frequenti crash del gioco patrician su wine. Si tratta di sostituire una porzione di codice di wine con quella fornita dallo sviluppatore della "Patch" e ricompilare. La compilazione non è andata a buon fine, credo di aver malinteso cosa e come sostituire del codice di wine. Spero che allegandovi il materiale fornito dallo sviluppatore della patch saprete indicarmi come fare.
Questa è la porzione di codice fornita dallo sviluppatore
che dovrei in qualche modo sostituire nel file wine/dlls/user32/uitools.c il cui codice potete trovare nel link di sotto.
https://github.com/wine-mirror/wine/blo ... ls.c#L1424
Vi allego anche il link dove ho trovato il rimedio.
https://www.winehq.org/pipermail/wine-b ... 77805.html
Perdonate se ho sbagliato luogo oppure se sono stato poco chiaro. Rimango a disposizione per ulteriori chiarimenti
Sostituire codice in Wine
-
eag1992
- Prode Principiante
- Messaggi: 2
- Iscrizione: martedì 23 giugno 2015, 11:37
- Desktop: xfce
- Distribuzione: Ubuntu 15.04 64bit
- Sesso: Maschile
Re: Sostituire codice in Wine
Forse non devo sostituire nulla..il link dice cosi
In my attachment the SubtractRect.c that can be compiled (alone) to demo the
bug behaviour. It calls SubtractRect() -a straight version from source code-
with 3 different parameters (working as intended) and with the 1st and 3rd same
parameter (bug). The .c has 2 #defines in the beginning, one to show more debug
info and another to replace SubtractRect() with a fixed SubtractRect2() that I
tested. The fix is not probably the best of the solutions, it only delays the
copy *dest = *src1; past the uses of src1 and src2. But it works! (a better
solution probably wouldn't use dst as a lvalue at all, only as a rvalue).
I've applied the patch to wine 1.6.2 and now Patrician III is working with the
weather effects to high![]()
Chi c’è in linea
Visualizzano questa sezione: Google [Bot] e 4 ospiti