Commit Graph

302 Commits

Author SHA1 Message Date
Orgad Shaneh
a05e54f00c JANITORIAL: Remove trailing whitespaces 2021-05-04 11:46:30 +03:00
Eugene Sandulenko
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
D G Turner
551a2deee9 ULTIMA: Fix GCC Compiler Warnings
The test for index being non-negative are redundant since the index
variable is unsigned integer.
2021-04-02 10:12:52 +01:00
D G Turner
71a741822b ULTIMA: Fix GCC Incompatible Cast of Function Warnings
These are emitted by -Wcast-function-type.

Thanks to dreammaster for advice on fixing this.
2021-03-28 07:23:26 +01:00
Orgad Shaneh
8bd2e17233 ULTIMA: Fix Clang warnings
warning: definition of implicit copy assignment operator for 'X' is deprecated because it has a user-declared copy constructor
2021-03-15 18:53:37 -07:00
Matthew Jimenez
b8c8e459c1 ULTIMA8: Move hasFeature check to subengine as others do not support subtitle options 2021-02-08 19:18:32 -06:00
Matthew Jimenez
007b6662eb ULTIMA8: Implement speech and subtitle options
This replaces "textdelay" option with "talkspeed" and the new defaults should behave the same as the old value.
Text speed behavior stills need improvement but seems to work well
2021-02-06 18:40:31 -06:00
Matthew Duggan
0e685282df ULTIMA: Remove unused Std::queue 2021-01-17 12:43:56 +09:00
Cameron Cawley
94b382e69a ULTIMA: Remove wrappers around stdlib functions 2021-01-15 22:40:36 -08:00
Matthew Duggan
5e4bdbb0b8 ULTIMA8: Small pathfinding optimizations
This doesn't make much difference to the average case, but for the "failure"
case it brings down the run time, making the game smoother on slower hardware
or in debugging mode.
2021-01-01 15:07:37 +09:00
Cameron Cawley
b5d6716d1d COMMON: Add ReadStream::readString() and use it in the Ultima engine 2020-12-15 17:39:25 -08:00
Cameron Cawley
4a1d7a1753 ULTIMA: Disable unstable subengines by default 2020-09-10 19:38:55 -07:00
aryanrawlani28
e22b32abfe GUI: U32: Use Common::U32String::format where necessary and GUIError to u32
- Where necessary as in, where translated messages are used.
- GUIErrorMessage now takes in U32String
- error messages across some engines use U32Strings. they are changed because they show a message dialog.
2020-08-30 14:43:41 +02:00
aryanrawlani28
bed05ea134 GUI: U32: Fix compilation errors across entire project
After the initial changes just to scummvm/gui for u32, this commit includes the whole project

- Widget creations now always have u32 descriptions, labels, or tooltips
- Message dialogs make use of default arguments instead of providing the same argument explicitly
- encode String::format properly before passing on as argument where necessary
- Modify hugo utils (yesNoBox and notify box) to use u32
- Also provide fake constructors for the above which redirect to the u32 constructor
- Convert all keymap descriptions to u32 across all engines
- showConfirmationDialog in mohawk now uses u32
- showScummVMDialog also uses u32
- Scumm engine has dialogs now which use u32
- General fixes and wrapping convertToU32String for setLabels and related functions
- Add a fake constructor to MesssageDialog which redirects to the u32 constructor
2020-08-30 14:43:41 +02:00
Paul Gilbert
b705a5e90e NUVIE: Fix crash whilst resting 2020-08-02 11:57:18 -07:00
mataniko
581a6ec7d6 JANITORIAL: Rename kSupportsRTL to kSupportsReturnToLauncher 2020-05-12 10:36:38 +02:00
Paul Gilbert
45771e098c ULTIMA4: Better handling of LF in vendor scripts 2020-05-11 20:32:20 -07:00
Eugene Sandulenko
771a0a01ce ULTIMA: Added override keywords 2020-05-10 14:00:05 +02:00
Matthew Duggan
09bf38c120 ULTIMA: Add missing initializers for coverity 2020-05-09 22:02:27 +09:00
Paul Gilbert
57453ad556 ULTIMA4: Fix implementation of peer action 2020-05-07 18:29:08 -07:00
Paul Gilbert
d352578887 ULTIMA4: Cleanup of CombatController moveCreatures 2020-05-01 17:23:58 -07:00
jepael
7aeba38621 JANITORIAL: Fix compiler warning 2020-04-30 13:51:41 -07:00
Paul Gilbert
d9a9e0f91d ULTIMA4: Extract data tables from exes into ultima.dat 2020-04-29 22:00:44 -07:00
Paul Gilbert
c8fa755049 ULTIMA4: Created a ConfSerializer class to simply settings read/write 2020-04-23 18:06:25 -07:00
Paul Gilbert
6f4f4e828f ULTIMA4: Hooking up movement as keybinding actions 2020-04-12 18:54:30 -07:00
Paul Gilbert
7eca8b6c8c ULTIMA4: Skeleton beginnings of debugger & keymapper 2020-04-11 11:20:47 -07:00
Paul Gilbert
05af6bb0e4 ULTIMA4: Fix compiler warning 2020-04-09 18:00:54 -07:00
Paul Gilbert
22c6f17824 ULTIMA4: Imrpove XML whitespace handling for text 2020-04-09 18:00:54 -07:00
Paul Gilbert
7df36d7e4d ULTIMA4: Move static methods into XMLNode class 2020-04-09 18:00:54 -07:00
Paul Gilbert
129b508903 ULTIMA4: Fix defaults for XML node attribute reads 2020-04-09 18:00:54 -07:00
Paul Gilbert
b633ac0010 ULTIMA4: Refactoring XML parser to handle text as separate nodes
This is needed for the vendor scripts, which have a series of
text interleaved with elements to define vendor behaviour.
The previous behaviour of having text as an optional property
on element nodes was too simplistic
2020-04-09 18:00:54 -07:00
Paul Gilbert
e2b0e99539 ULTIMA4: Fix indexing of deque [] operator 2020-04-09 18:00:54 -07:00
Paul Gilbert
733e262706 ULTIMA4: Fix for handling comments as child elements
Previously, the mini-XML Parser was creating dummy nodes for
comments, rather than just properly skipping them
2020-04-09 18:00:54 -07:00
Paul Gilbert
53e17a57fd ULTIMA4: Fix parsing of sound.xml 2020-04-09 18:00:54 -07:00
Paul Gilbert
f693cdc159 ULTIMA4: Refactor Script class to use shared XML parser 2020-04-09 18:00:54 -07:00
Paul Gilbert
b4f185eb4d ULTIMA4: Properly implement ConfigElement reading XML properties 2020-04-09 18:00:54 -07:00
Paul Gilbert
9116dded37 ULTIMA4: Handle comment tags that have tags within their text 2020-04-09 18:00:54 -07:00
Paul Gilbert
5c2df17e30 ULTIMA4: Support loading from secondary XML files 2020-04-09 18:00:54 -07:00
Paul Gilbert
1555c0916b ULTIMA4: Add support for element attributes to XMLNode 2020-04-09 18:00:54 -07:00
Paul Gilbert
77cf21fdc6 ULTIMA4: Improving XML parser 2020-04-09 18:00:54 -07:00
Paul Gilbert
0a8ccaa03a ULTIMA4: Fix loading config.xml 2020-04-09 18:00:54 -07:00
Paul Gilbert
fdc42e4feb ULTIMA4: Starting to change Config to use XMLTree 2020-04-09 18:00:54 -07:00
Paul Gilbert
521292bb4d NUVIE: Add an XMLTree constructor for loading from a passed stream 2020-04-09 18:00:54 -07:00
Paul Gilbert
419837937f NUVIE: Cleanup of XMLTree fields and method parameters 2020-04-09 18:00:54 -07:00
Paul Gilbert
9a37b504f5 NUVIE: Move XMLTree and XMLNode into a new shared/conf/ folder 2020-04-09 18:00:54 -07:00
Paul Gilbert
eead5589ee ULTIMA4: Further implementation of std replacement classes 2020-04-09 18:00:54 -07:00
Paul Gilbert
dd17688521 ULTIMA: Support running games using uncompressed .dat files
To make it easier to continous changes to the contents of the
ultima.dat file in the future, this development allows the
Extra Path to be set to the devtools/create_ultima folder, and
it will use the files in the files/ subfolder in preference to
the ultima.dat archive
2020-03-14 17:27:20 -07:00
Paul Gilbert
844a26e34b ULTIMA8: Fix compilation of DEBUG code 2020-02-22 11:42:21 -08:00
Paul Gilbert
16379e7856 ULTIMA8: Fixing compiler warnings 2020-02-17 21:30:36 -08:00
Paul Gilbert
91801a9c55 ULTIMA: Refactor out use of meta engine pointer 2020-02-16 15:44:28 -08:00