[Scummvm-git-logs] scummvm master -> 6de47492844860593a3e05bfe40bd7d03b74fc4c
AndywinXp
noreply at scummvm.org
Tue Jun 17 21:40:08 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
6de4749284 LASTEXPRESS: Attempt to fix AmigaOS4 build
Commit: 6de47492844860593a3e05bfe40bd7d03b74fc4c
https://github.com/scummvm/scummvm/commit/6de47492844860593a3e05bfe40bd7d03b74fc4c
Author: AndywinXp (andywinxp at gmail.com)
Date: 2025-06-17T23:40:01+02:00
Commit Message:
LASTEXPRESS: Attempt to fix AmigaOS4 build
Changed paths:
engines/lastexpress/game/events.h
diff --git a/engines/lastexpress/game/events.h b/engines/lastexpress/game/events.h
index 637804b4413..5d2ae5b8aa4 100644
--- a/engines/lastexpress/game/events.h
+++ b/engines/lastexpress/game/events.h
@@ -29,25 +29,18 @@ namespace LastExpress {
class LastExpressEngine;
class LogicManager;
-typedef struct ConsCallParam {
- int32 intParam;
- const char *stringParam;
+struct ConsCallParam {
+ ConsCallParam() : intParam(0), stringParam(nullptr) {}
- ConsCallParam() {
- intParam = 0;
- stringParam = nullptr;
- }
+ template<typename T>
+ ConsCallParam(T param) : intParam(static_cast<int32>(param)), stringParam(nullptr) {}
- ConsCallParam(int32 param) {
- intParam = param;
- stringParam = nullptr;
- }
+ ConsCallParam(const char *param) : intParam(0), stringParam(param) {}
+ ConsCallParam(char *param) : intParam(0), stringParam(param) {}
- ConsCallParam(const char *param) {
- intParam = 0;
- stringParam = param;
- }
-} ConsCallParam;
+ int32 intParam;
+ const char *stringParam;
+};
#include "common/pack-start.h"
More information about the Scummvm-git-logs
mailing list