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
e8ef128f
Commit
e8ef128f
authored
Apr 21, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-l language switch added
parent
eb9d8412
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
7 deletions
+21
-7
wb/exe/wb/src/wb.cpp
wb/exe/wb/src/wb.cpp
+21
-7
No files found.
wb/exe/wb/src/wb.cpp
View file @
e8ef128f
...
...
@@ -45,6 +45,7 @@ extern "C" {
#include "wb_vsel.h"
#include "co_msgwindow.h"
#include "co_xhelp.h"
#include "co_lng.h"
#include "wb_wtt.h"
#include "wb_erep.h"
...
...
@@ -87,6 +88,11 @@ void pwr_wtt_close( void *wttctx);
void
pwr_wtt_open_volume
(
void
*
wttctx
,
wb_eType
type
,
char
*
filename
,
wow_eFileSelType
file_type
);
int
pwr_time_to_exit
(
void
*
wttctx
);
static
void
usage
()
{
printf
(
"
\n
Usage: wb [-a] [-l language] [username] [password] [volume]
\n
"
);
}
void
wttlist_add
(
pwr_tStatus
*
sts
,
Wtt
*
wtt
,
pwr_tVid
vid
)
{
wttlist_iterator
it
=
wttlist
.
find
(
vid
);
...
...
@@ -497,13 +503,21 @@ int main( int argc, char *argv[])
for
(
i
=
1
;
i
<
argc
;
i
++
)
{
if
(
argv
[
i
][
0
]
==
'-'
)
{
switch
(
argv
[
i
][
1
])
{
case
'a'
:
// Load all volumes
sw_projectvolume
=
0
;
volumename_p
=
0
;
break
;
default:
printf
(
"Unknown argument: %s
\n
"
,
argv
[
i
]);
case
'a'
:
// Load all volumes
sw_projectvolume
=
0
;
volumename_p
=
0
;
break
;
case
'l'
:
if
(
i
+
1
>=
argc
)
{
usage
();
exit
(
0
);
}
Lng
::
set
(
argv
[
i
+
1
]);
i
++
;
break
;
default:
printf
(
"Unknown argument: %s
\n
"
,
argv
[
i
]);
}
}
else
{
...
...
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