-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdetection.cpp
More file actions
63 lines (54 loc) · 1.53 KB
/
Copy pathdetection.cpp
File metadata and controls
63 lines (54 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/* ScummVM - ACK Engine Detection
*
* This file implements the detection logic for ACK games.
* It registers game descriptors, extra GUI options, and metadata.
* The conversion from the Free Pascal code (ackfree) has been carefully verified.
*
* Distributed under the GNU General Public License.
*/
#include "engines/ack/detection.h"
#include "engines/ack/ack.h"
#include "common/config-manager.h"
#include "common/system.h"
#include "common/savefile.h"
#include "common/translation.h"
namespace Ack {
const char *getGameId(const AckGameDescription *gd) {
return gd->desc.gameId;
}
static const PlainGameDescriptor ackGames[] = {
{"ack", "ACK Game System"},
{nullptr, nullptr}
};
static const ADExtraGuiOptionsMap optionsList[] = {
{
GAMEOPTION_ORIGINAL_SAVE_NAMES,
{
_s("Use original save/load screens"),
_s("Use the original save/load screens instead of the ScummVM ones"),
"originalsaveload",
false
}
},
AD_EXTRA_GUI_OPTIONS_TERMINATOR
};
static const AckGameDescription gameDescriptions[] = {
{
{
"ack",
"",
AD_ENTRY1("ACKDATA0.DAT", "12345678901234567890123456789012"),
/* Additional metadata fields as needed */
},
/* Additional structure fields as needed */
},
{nullptr, nullptr} // Terminator
};
const PlainGameDescriptor *detectGame(const Common::String &gameId) {
for (int i = 0; ackGames[i].gameId != nullptr; i++) {
if (gameId == ackGames[i].gameId)
return &ackGames[i];
}
return nullptr;
}
} // End of namespace Ack