Skip to content

Commit

Permalink
changes for linux (wine) compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisVeigl committed Sep 21, 2019
1 parent 2d1b4fc commit 259484e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions ACS/tools/AsTeRICS_PluginCreationWizard/browser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ INT_PTR CALLBACK BROWSEDlghandler( HWND hDlg, UINT message, WPARAM wParam, LPARA
SetDlgItemText(hDlg,IDC_GUI_XSIZE,"30");
SetDlgItemText(hDlg,IDC_GUI_YSIZE,"20");

SetDlgItemText(hDlg,IDC_AREPATH,"C:\\asterics\\are\\components\\");
SetDlgItemText(hDlg,IDC_AREPATH,"\\AsTeRICS\\ARE\\components\\");
return TRUE;
}
case WM_CLOSE:
Expand Down Expand Up @@ -498,19 +498,20 @@ INT_PTR CALLBACK BROWSEDlghandler( HWND hDlg, UINT message, WPARAM wParam, LPARA

if (IsDlgButtonChecked(hDlg,IDC_SINGLETON)) strcpy(setup.singleton,"true"); else strcpy(setup.singleton,"false");

if ((strlen(setup.arepath)<3) || (setup.arepath[1]!=':'))
if (strlen(setup.arepath)<3)
{
MessageBox(NULL,"Please specify an absolute path to the ARE components folder, e.g. c:\\asterics\\ARE\\components\\","Error", MB_OK);
MessageBox(NULL,"Please specify an absolute path to the ARE components folder, e.g. \\AsTeRICS\\ARE\\components\\","Error", MB_OK);
break;
}
if (setup.arepath[strlen(setup.arepath)-1]!='\\') strcat(setup.arepath,"\\");

strcpy(actdir,setup.arepath);
strcat(actdir,setup.plugintype);
strcat(actdir,".");
strcat(actdir,setup.pluginname);
convert_to_lowercase (actdir);
if (!CreateDirectory(actdir,NULL)) { MessageBox(NULL,actdir,"Problem creating folder", MB_OK); break; }
strcpy (tmpstr,setup.plugintype);
strcat(tmpstr,".");
strcat(tmpstr,setup.pluginname);
convert_to_lowercase (tmpstr);
strcat(actdir,tmpstr);
if (!CreateDirectory(actdir,NULL)) { MessageBox(NULL,"Please specify an absolute path to the ARE components folder, e.g. C:\\AsTeRICS\\ARE\\components\\ (under Linux without 'C:')","Could not create directory or plugin already exists", MB_OK); break; }
// here goes the build script
// @type: actuator
// @name: bardisplay
Expand Down
Binary file modified bin/ACS/tools/AsTeRICS_PluginCreationWizard.exe
Binary file not shown.

0 comments on commit 259484e

Please # to comment.