Opened 22 years ago

Closed 22 years ago

Last modified 5 years ago

#8060 closed patch

MI2 NewGui title fix

Reported by: SF/cccp_99 Owned by: fingolfin
Priority: normal Component: Engine: SCUMM
Version: Keywords:
Cc: Game: Monkey Island 2

Description

This is basically the same problem as before with special characters(FF...) in the dialog title of Monkey2. Because of code separation NewGui no longer converts them to proper strings, so this patch makes the strings 'normal' right after they are retreived from the loaded resource file. Changes to str.cpp were taken back since they're no longer needed. Old Gui still works with the previous fix (not perfect, but since it won't be used much longer, it doesn't really matter) After the Old Gui is gone, the function resStrLen() in util.h and util.cpp can be removed.

CCCP

Ticket imported from: #612722. Ticket imported from: patches/165.

Attachments (1)

scummvm.diff (5.1 KB ) - added by SF/cccp_99 22 years ago.
changed files: common/str.cpp and scumm/dialogs.cpp

Download all attachments as: .zip

Change History (4)

by SF/cccp_99, 22 years ago

Attachment: scummvm.diff added

changed files: common/str.cpp and scumm/dialogs.cpp

comment:1 by fingolfin, 22 years ago

Owner: set to fingolfin
Status: newclosed

comment:2 by fingolfin, 22 years ago

I somewhat modified it to correct a few issues. In particular, delete was called on constant strings under certain conditions, and you had an "if(num < 0)" where you really wanted "if (value < 0)", but otherwise it seems to be just fine. Thanks, in CVS now.

comment:3 by digitall, 5 years ago

Component: Engine: SCUMM
Game: Monkey Island 2
Note: See TracTickets for help on using tickets.