mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-22 01:26:40 +00:00
add missing semicolon, add leading whitespace,
This commit is contained in:
parent
0a49c5f71e
commit
71a6b26b4f
1 changed files with 7 additions and 3 deletions
|
@ -1192,6 +1192,10 @@ namespace MWScript
|
|||
|
||||
MWBase::World* world = MWBase::Environment::get().getWorld();
|
||||
std::vector<std::string> names = runtime.getContext().getGlobals();
|
||||
|
||||
// sort for user convenience
|
||||
std::sort(names.begin(), names.end());
|
||||
|
||||
for (size_t i = 0; i < names.size(); ++i)
|
||||
{
|
||||
char type = world->getGlobalVariableType(names[i]);
|
||||
|
@ -1238,7 +1242,7 @@ namespace MWScript
|
|||
size_t size = std::min(names.size(), values.size());
|
||||
for (size_t i = 0; i < size; ++i)
|
||||
{
|
||||
str << std::endl << scptName << "->" << names[i] << " = " << values[i] << " (" << type << ")";
|
||||
str << std::endl << " " << scptName << "->" << names[i] << " = " << values[i] << " (" << type << ")";
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -1255,7 +1259,7 @@ namespace MWScript
|
|||
= MWBase::Environment::get().getScriptManager()->getGlobalScripts().getLocals(refId);
|
||||
|
||||
if (locals.isEmpty())
|
||||
str << std::endl << "No variables in script " << scptName;
|
||||
str << std::endl << " No variables in script " << scptName;
|
||||
else
|
||||
{
|
||||
printVariables(scptName, complocals.get('s'), locals.mShorts, "short");
|
||||
|
@ -1277,7 +1281,7 @@ namespace MWScript
|
|||
{
|
||||
// No reference, no problem.
|
||||
printGlobalVars(runtime);
|
||||
printGlobalScriptsVars(runtime)
|
||||
printGlobalScriptsVars(runtime);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue