
Just Desserts dont disappointed soo easy cos the mame32 plus is a hobby project too and open code
f.e the code behind the RIGHT CLICK > VIEW MANUAL on mameXT32+ is :
+ case ID_VIEW_MANUAL:
+ {
+ LPTSTR tName;
+ LPCTSTR msg = 0;
+
+ const char *base_dir = NULL;
+ char filename[MAX_PATH];
+
+ char app[50];
+ sprintf(app, "apps\\xchange\\xchange.exe");
+
+ int nGame;
+ nGame = Picker_GetSelectedItem(hwndList);
+
+ base_dir = GetManualDir();
+ sprintf(filename, "%s\\arcade\\%s.pdf", base_dir, drivers[nGame]->name);
+
+ if (FileExists(filename))
+ {
+ if (FileExists(app))
+ {
+ sprintf(filename, "\"%s\\arcade\\%s.pdf\"", base_dir, drivers[nGame]->name);
+ LaunchApplication(hMain, app, filename);
+ } else {
+ DisplayTextFile(hMain, filename);
+ }
+ return TRUE;
+ }
+
+ msg = TEXT("The specified file was not found.");
+
+ tName = tstring_from_utf8(filename);
+ MessageBox(hMain, msg, tName, MB_OK + MB_APPLMODAL + MB_ICONSTOP);
+ }
+ break;