Skip to content

Commit 1db2d03

Browse files
committed
DisplayServer (MiNT): minimal implementation
TODO: check which AES is used.
1 parent 2bcd2e1 commit 1db2d03

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#include "displayserver.h"
2+
3+
#include <mint/cookie.h>
4+
5+
#define COOKIE_nAES /*(const char *)*/0x6e414553L
6+
7+
typedef struct {
8+
unsigned int version;
9+
unsigned int date;
10+
unsigned int time;
11+
unsigned int flags;
12+
struct CNF_VAR **config;
13+
unsigned long unused_2;
14+
} N_AESINFO;
15+
16+
void ffConnectDisplayServerImpl(FFDisplayServerResult* ds)
17+
{
18+
// cf.
19+
// https://www.exxosforum.co.uk/atari/mirror/toshyp/00c002.html#N_AESINFO
20+
// TODO?
21+
// https://www.exxosforum.co.uk/atari/mirror/toshyp/Application.html#appl_getinfo_str
22+
long value = -1;
23+
N_AESINFO *aes;
24+
if (!Getcookie(COOKIE_nAES, &value)) {
25+
aes = (N_AESINFO *)value;
26+
// TODO
27+
ffStrbufSetStatic(&ds->wmProcessName, "nAES");
28+
ffStrbufSetStatic(&ds->wmPrettyName, "nAES");
29+
} else {
30+
ffStrbufSetStatic(&ds->wmProcessName, "AES");
31+
ffStrbufSetStatic(&ds->wmPrettyName, "AES");
32+
}
33+
ffStrbufSetStatic(&ds->dePrettyName, "GEM");
34+
35+
//detectDisplays(ds);
36+
}

0 commit comments

Comments
 (0)