1 // protocol used to talk between exe and it's launcher
\r
3 #ifndef __CLIENTSERVER_H
\r
4 #define __CLIENTSERVER_H
\r
9 _LIT(KServerName, "PicodriveNServ");
\r
10 _LIT(KServerWGName, "Picosmall"); // window group name
\r
11 _LIT(KClientName, "PicodriveN");
\r
12 _LIT(KClientFind, "PicodriveN*"); // client search mask (for TFindLibrary)
\r
15 // opcodes used in message passing between client and server
\r
16 enum TPicoServRqst {
\r
25 PicoMsgConfigChange, // launcher -> emu
\r
26 PicoMsgRetrieveConfig, // emu -> launcher
\r
27 PicoMsgRetrieveDebugStr,// fixed to 512 bytes 4 now
\r
28 kDefaultMessageSlots // this is how many messages we need :)
\r
32 // event messages to launcher
\r
33 enum TPicoLauncherEvents {
\r
34 EEventKeyCfgDone = EEventUser + 1,
\r
39 // configuration data to be sent between server and client
\r
40 struct TPicoConfig {
\r
41 enum TPicoScreenRotation {
\r
47 enum TPicoScreenMode {
\r
52 enum TPicoFrameSkip {
\r
56 TInt32 iScreenRotation;
\r
58 TUint32 iFlags; // LSb->MSb: use_sram, show_fps, enable_sound, sound_rate(3bits), gzip_saves{=0x40}, dont_use_mot_vol
\r
59 // enable_ym2612&dac, enable_sn76496, enable_z80, stereo_sound;
\r
60 // alt_renderer, 6button_gamepad, accurate_timing
\r
63 TUint32 iKeyBinds[32];
\r
64 TUint32 iAreaBinds[19];
\r
69 #endif // __CLIENTSERVER_H
\r