Commit bb6ef5ff authored by lcgamboa's avatar lcgamboa

fix: Fix path for load rcontrol and debug port from options

parent 4858ece6
...@@ -666,6 +666,11 @@ void CPWindow1::_EvOnCreate(CControl* control) { ...@@ -666,6 +666,11 @@ void CPWindow1::_EvOnCreate(CControl* control) {
set_signal_handler(); set_signal_handler();
strncpy(home, (char*)lxGetUserDataDir(lxT("picsimlab")).char_str(), 1023);
PICSimLab.SetWorkspaceFileName("");
PICSimLab.SetHomePath(home);
PICSimLab.SetPath(lxGetCwd());
PICSimLab.menu_EvBoard = EVMENUACTIVE & CPWindow1::menu1_EvBoard; PICSimLab.menu_EvBoard = EVMENUACTIVE & CPWindow1::menu1_EvBoard;
PICSimLab.menu_EvMicrocontroller = EVMENUACTIVE & CPWindow1::menu1_EvMicrocontroller; PICSimLab.menu_EvMicrocontroller = EVMENUACTIVE & CPWindow1::menu1_EvMicrocontroller;
PICSimLab.board_Event = EVONCOMBOCHANGE & CPWindow1::board_Event; PICSimLab.board_Event = EVONCOMBOCHANGE & CPWindow1::board_Event;
...@@ -682,14 +687,6 @@ void CPWindow1::_EvOnCreate(CControl* control) { ...@@ -682,14 +687,6 @@ void CPWindow1::_EvOnCreate(CControl* control) {
SpareParts.PartKeyEvent = EVKEYBOARDPRESS & CPWindow5::PartKeyEvent; SpareParts.PartKeyEvent = EVKEYBOARDPRESS & CPWindow5::PartKeyEvent;
SpareParts.Init(&Window5); SpareParts.Init(&Window5);
PICSimLab.SetWorkspaceFileName("");
strncpy(home, (char*)lxGetUserDataDir(lxT("picsimlab")).char_str(), 1023);
PICSimLab.SetHomePath(home);
PICSimLab.SetPath(lxGetCwd());
#ifndef _SHARE_ #ifndef _SHARE_
#error Define the _SHARE_ path is necessary #error Define the _SHARE_ path is necessary
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment