Commit Graph
126 Commits
Author SHA1 Message Date
lb_ii 230853df62 WINTERMUTE: Implement Directory.GetFiles("saves") 2022-10-26 00:04:58 +03:00
Le Philousophe 62f105c0ce WINTERMUTE: Don't use unsafe sprintf and vsprintf 2022-10-23 22:46:19 +02:00
Le Philousophe 73c09b1d56 WINTERMUTE: Don't use unsafe strcat and strcpy 2022-10-23 22:46:19 +02:00
Paweł Kołodziejski 1ca112b6ac WINTERMUTE: Janitorial 2022-07-02 22:26:58 +02:00
D G Turner 7e4fc49deb WINTERMUTE: Remove Unecessary Macro Guard From Script Stack Code
This was causing Undefined Macro GCC Compiler Warnings when -Wundef
was passed.
2022-03-21 11:19:34 +00:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh 3919f53326 ENGINES: Replace new[]/memset with new[]() 2021-11-10 19:53:15 +01:00
D G Turner ff4cd452b5 WINTERMUTE: Fix Duplicated Branch GCC Warnings
These are emitted if -Wduplicated-branches is passed.
2021-11-07 00:12:58 +00:00
Orgad Shaneh a05e54f00c JANITORIAL: Remove trailing whitespaces 2021-05-04 11:46:30 +03:00
Vladimir Serbinenko 3fc822e55c COMMON: introduce substr for U32String (#2585)
It's safer than direct array manipulation. Replace current uses
of subsetting with substr.
2020-11-01 22:53:03 +01:00
Cameron Cawley 4a3d5fea85 WINTERMUTE: Fix warning when building without FoxTail support 2020-07-05 11:34:01 +01:00
lolbot-iichan 1784961aca WINTERMUTE: Improve keyboard walking for Corrosion (#2340)
* WINTERMUTE: Mark custom actions as game-specific

* WINTERMUTE: Disable keyboard walking while city map is open

* WINTERMUTE: Fix misprints in comments
2020-06-21 15:03:25 +03:00
lolbot-iichan 01eb55b049 WINTERMUTE: Support Foxtail 1.2.902.4379 (#2256)
* WINTERMUTE: Add FoxTail 1.2.902 engine and package detection
* WINTERMUTE: Add support for FoxTail 1.2.902 opcodes
2020-05-17 01:15:41 +03:00
lolbot-iichan 2b34a9fbca WINTERMUTE: Add some small FoxTail-specific methods 2020-05-12 10:33:58 +02:00
lolbot-iichan aecb03e69c WINTERMUTE: Use different opcodes for FoxTail 1.2.896 2020-05-12 10:33:58 +02:00
lolbot-iichan 7b2e3fb440 WINTERMUTE: Remove "#if 1" marks 2020-05-05 21:51:22 +02:00
lolbot-iichan b783f984f1 WINTERMUTE: Move wme-plugins implementations to /ext/ folder 2020-05-05 21:51:22 +02:00
lolbot-iichan ff80043457 WINTERMUTE: Move external DLL implementations to /ext/ folder 2020-05-05 21:51:22 +02:00
lolbot-iichan 7ff02045c4 WINTERMUTE: Implement Steam & Galaxy plugins 2020-04-29 10:31:36 +02:00
Eugene Sandulenko d16e7df603 WINTERMUTE: Fix printf format specifier 2020-04-27 22:31:49 +02:00
lolbot-iichan 1a29cf1e48 WINTERMUTE: Add more stubs and todos for File & Directory 2020-02-29 10:31:55 +02:00
lolbot-iichan 125aaff20c WINTERMUTE: Always log runtime errors 2020-02-29 10:31:55 +02:00
lolbot-iichan 5a4c607073 WINTERMUTE: Add methods required for Pole Chudes 2020-02-29 10:31:55 +02:00
Bastien Bouclet 6e1652a58c WINTERMUTE: Remove duplicate override keywords 2020-02-09 12:58:21 +01:00
Bastien Bouclet 80166c0fea WINTERMUTE: Add override keywords 2020-02-09 12:55:00 +01:00
Eugene Sandulenko de6bde08a7 WINTERMUTE: Added override keywords 2020-01-31 15:46:23 +01:00
lolbot-iichan 03bd7541bd WINTERMUTE: Implement external HTTP functions for Corbomite Games 2020-01-26 23:06:19 +02:00
lolbot-iichan 0acbef6068 WINTERMUTE: Implement external kernel32 functions for Corbomite Games 2020-01-26 23:06:19 +02:00
lolbot-iichan bc2bad35ab WINTERMUTE: Implement external IRC functions for Corbomite Games 2020-01-26 23:06:19 +02:00
lolbot-iichan c8695240fa WINTERMUTE: Implement external function for Art of Murder: FBI Confidential 2020-01-26 23:06:19 +02:00
lolbot-iichan 273c8be225 WINTERMUTE: Implement external function for Wilma Tetris 2020-01-26 23:06:19 +02:00
lolbot-iichan 1475c98ba8 WINTERMUTE: Implement external functions for HeroCraft games 2020-01-26 23:06:19 +02:00
lolbot-iichan 19410615b3 WINTERMUTE: Implement externall function for James Peris Demo 2012 2020-01-26 23:06:19 +02:00
lolbot-iichan 924241cf2a WINTERMUTE: Suppress FoxTail runtimeError on game load
FoxTail reloads in-hand items and cursor during AfterLoad by calling
wrapped Game.LoadItems() method.
This does not work in WME, as WME explicitly disables methods call at
"AfterLoad" event.
Somehow, everything seems to work fine without it. Let's supress this
error by now...

TODO: inspect actor.TakeItem and SetItemCursor for possible effects
TODO: make a fake game that calls some methods on AfterLoad, test with FoxTail engine
2020-01-11 18:05:39 +02:00
lolbot-iichan e3595393c8 WINTERMUTE: Add FoxTail arrays methods
Game.Split(str,sep) is added to split string into array of substrings with separator
array.Delete(index) is added to delete an array item by index
2020-01-11 18:05:39 +02:00
lolbot-iichan 710f395ca7 WINTERMUTE: restored commented out stack->pop()
Unused variables were cleaned up at
47811167d5, commenting out a bit too much
code, since stack->pop() has a side effect (popping a value from data
stack).
2019-12-02 11:06:01 +02:00
D G Turner 47811167d5 WINTERMUTE: Fix GCC Compilation Warnings
Have commented out rather than removed the lines causing unused variable
warnings as they might be used again in future.
2019-07-24 20:59:31 +01:00
lolbot-iichan 0781584dfc WINTERMUTE: Suppress warning on Directory.Create() for Hamlet 2019-07-16 20:24:42 +03:00
lolbot-iichan ed635a5b01 WINTERMUTE: Fix File.WriteText method
Removed unnecessary '\0' byte written after a string. Reasons to remove:

1. Hamlet game does not write 0 after string when running this code:
var SomeFile = new File((Game.SaveDirectory + "\gamelet.save"));
SomeFile.OpenAsText(2);
SomeFile.WriteText(LVL_N);
SomeFile.Close();

2. Original WME does not have this:

https://github.com/retrowork/Wintermute-Engine/blob/master/src/engine_core/wme_base/SXFile.cpp#L303
2019-07-16 20:24:42 +03:00
lolbot-iichan 9eca2b4c54 WINTERMUTE: Implement saving files using SavefileManager 2019-07-16 20:24:42 +03:00
lolbot-iichan 4bb82a8dae WINTERMUTE: Add dummy implementation of Directory global object
Source:
http://docs.dead-code.org/wme/generated/scripting_ref_directory.html
2019-07-16 20:24:42 +03:00
lolbot-iichan 4b763f0e9e WINTERMUTE: Add debugN + comment for getNumScripts() 2019-06-25 08:10:16 +03:00
lolbot-iichan 1e005d37e2 WINTERMUTE: Handle enum in GetNumScripts
This code is used only in debug mode and only to display some script
counters.
States are handled in the very same way in WME Lite, so there is no
reason to log tons of warning here.
2019-06-25 08:10:16 +03:00
lolbot-iichan a7efc8afd8 WINTERMUTE: Fix Split() method of ext_string
It's hard to believe, but this fixes bug "#10432" WME Carol Reed
Mysteries hint system not working.

Carol Reed hint system happen to heavily use line.Split(";") results,
which were wrong by 1 byte (delimeter was appended to result while it
shouldn't be).

I started with decompiling Carol Reed source code, reproducing issue
with a stand-alone test project (which worked with WME and showed [null]
with ScummVM). then minimized it to a minimal testcase:

var line = new String("New Goal;Visit Christina at the Art
Museum;1;0;S;;");
var ar = line.Split(";");
if((ar[0] == "New Goal")) { var g = ar[1]; }
2019-06-18 21:20:33 +03:00
David Fioramonti 8e1f712327 WINTERMUTE: Use degree conversion common math funcs 2018-07-03 23:08:48 +01:00
Filippos Karapetis f629a32819 WINTERMUTE: Fix compilation with MSVC
Change the way that EXTENDED_DEBUGGER_ENABLED is checked. The way it
was used, it triggered a fatal error C1017
2016-08-22 13:06:20 +03:00
Tobia Tesan cd5229bc73 WINTERMUTE: Remember to delete watch instances 2016-03-01 20:40:46 +01:00
Tobia Tesan bf9865ebbb WINTERMUTE: Do not delete a pointer we do not own in resolveName 2016-03-01 20:40:46 +01:00
Tobia Tesan a120aa8559 WINTERMUTE: Add Watch functionality 2016-03-01 20:40:46 +01:00
Tobia Tesan dae732814c WINTERMUTE: Add name resolution to DebuggableScript 2016-03-01 20:40:45 +01:00