Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Albert Gräf
Gem
Commits
67f94ca3
Commit
67f94ca3
authored
Jan 04, 2012
by
IOhannes m zmölnig
Browse files
more verbose()ity
parent
1b938455
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Geos/multimodel.cpp
View file @
67f94ca3
...
@@ -114,10 +114,13 @@ void multimodel :: openMess(const std::string&filename, int baseModel, int topMo
...
@@ -114,10 +114,13 @@ void multimodel :: openMess(const std::string&filename, int baseModel, int topMo
char
bufName
[
MAXPDSTRING
];
char
bufName
[
MAXPDSTRING
];
canvas_makefilename
(
const_cast
<
t_canvas
*>
(
getCanvas
()),
preName
,
bufName
,
MAXPDSTRING
);
canvas_makefilename
(
const_cast
<
t_canvas
*>
(
getCanvas
()),
preName
,
bufName
,
MAXPDSTRING
);
char
newName
[
MAXPDSTRING
];
newName
[
0
]
=
0
;
for
(
i
=
0
;
i
<
numModels
;
i
++
,
realNum
+=
skipRate
)
{
for
(
i
=
0
;
i
<
numModels
;
i
++
,
realNum
+=
skipRate
)
{
char
newName
[
256
]
;
snprintf
(
newName
,
MAXPDSTRING
,
"%s%d%s"
,
bufName
,
realNum
,
postName
)
;
sprintf
(
newName
,
"%s%d%s"
,
bufName
,
realNum
,
postName
)
;
newName
[
MAXPDSTRING
-
1
]
=
0
;
verbose
(
1
,
"trying to load '%s'"
,
newName
);
loaders
.
push_back
(
gem
::
plugins
::
modelloader
::
getInstance
());
loaders
.
push_back
(
gem
::
plugins
::
modelloader
::
getInstance
());
if
(
!
loaders
[
i
])
if
(
!
loaders
[
i
])
break
;
break
;
...
@@ -127,7 +130,7 @@ void multimodel :: openMess(const std::string&filename, int baseModel, int topMo
...
@@ -127,7 +130,7 @@ void multimodel :: openMess(const std::string&filename, int baseModel, int topMo
if
(
loaders
.
size
()
!=
numModels
)
{
if
(
loaders
.
size
()
!=
numModels
)
{
/* outch, something went wrong! */
/* outch, something went wrong! */
error
(
"failed to load model#%d of %d...resetting to original models"
,
i
,
numModels
);
error
(
"failed to load model#%d of %d
(%s)
...resetting to original models"
,
i
,
numModels
,
newName
);
for
(
i
=
0
;
i
<
loaders
.
size
();
i
++
)
{
for
(
i
=
0
;
i
<
loaders
.
size
();
i
++
)
{
if
(
loaders
[
i
])
if
(
loaders
[
i
])
...
...
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