File tree Expand file tree Collapse file tree
src/detection/displayserver Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments