Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
75badedf
Commit
75badedf
authored
May 20, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Open wb_load files from argument
parent
43f66f52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
8 deletions
+19
-8
wb/exe/wb/src/wb.cpp
wb/exe/wb/src/wb.cpp
+19
-8
No files found.
wb/exe/wb/src/wb.cpp
View file @
75badedf
...
...
@@ -487,6 +487,8 @@ int main( int argc, char *argv[])
char
backdoor
[]
=
{
112
,
108
,
101
,
97
,
115
,
101
,
99
,
108
,
97
,
101
,
115
,
108
,
101
,
116
,
109
,
101
,
105
,
110
,
0
};
XtAppContext
app_ctx
;
int
sw_projectvolume
=
0
;
int
sw_classeditor
=
0
;
char
filename
[
200
];
int
i
;
dcli_translate_filename
(
uid_filename
,
uid_filename
);
...
...
@@ -516,6 +518,16 @@ int main( int argc, char *argv[])
Lng
::
set
(
argv
[
i
+
1
]);
i
++
;
break
;
case
'c'
:
if
(
i
+
1
>=
argc
)
{
usage
();
exit
(
0
);
}
sw_classeditor
=
1
;
strcpy
(
filename
,
argv
[
i
+
1
]);
sw_projectvolume
=
0
;
i
++
;
break
;
default:
printf
(
"Unknown argument: %s
\n
"
,
argv
[
i
]);
}
...
...
@@ -576,8 +588,7 @@ int main( int argc, char *argv[])
/* Get system name */
sts
=
utl_get_systemname
(
systemname
,
systemgroup
);
if
(
EVEN
(
sts
))
{
if
(
EVEN
(
sts
))
{
/* No system object, login as system !! */
login_insert_login_info
(
"SYSTEM"
,
""
,
...
...
@@ -586,8 +597,7 @@ int main( int argc, char *argv[])
0
);
nav_display
=
1
;
}
else
{
else
{
if
(
arg_cnt
>=
1
&&
strcmp
(
argv
[
1
],
backdoor
)
==
0
)
{
/* Login as system !! */
login_insert_login_info
(
"SYSTEM"
,
...
...
@@ -646,10 +656,11 @@ int main( int argc, char *argv[])
else
psts
(
sts
,
NULL
);
}
else
if
(
nav_display
)
{
if
(
login_prv
.
priv
&
pwr_mPrv_DevRead
)
{
else
if
(
sw_classeditor
)
{
pwr_wtt_open_volume
(
0
,
wb_eType_ClassEditor
,
filename
,
wow_eFileSelType_WblClass
);
}
else
if
(
nav_display
)
{
if
(
login_prv
.
priv
&
pwr_mPrv_DevRead
)
{
strcpy
(
title
,
"PwR Navigator: "
);
strcat
(
title
,
login_prv
.
username
);
strcat
(
title
,
" on "
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment