git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Really hacky python performance scripts!
[ipdf/code.git]
/
src
/
debugscript.cpp
diff --git
a/src/debugscript.cpp
b/src/debugscript.cpp
index
ff00f9e
..
59631aa
100644
(file)
--- a/
src/debugscript.cpp
+++ b/
src/debugscript.cpp
@@
-3,11
+3,17
@@
#include <string>
using namespace IPDF;
#include <string>
using namespace IPDF;
+using namespace std;
void DebugScript::ParseAction(View * view, Screen * scr)
{
void DebugScript::ParseAction(View * view, Screen * scr)
{
+ if (m_input == NULL || !m_input->good())
+ return;
+ istream & inp = *m_input;
+ Debug("Get action type...");
std::string actionType;
inp >> actionType;
std::string actionType;
inp >> actionType;
+ Debug("Action type: %s", actionType.c_str());
// Skip comments
while (actionType[0] == '#')
{
// Skip comments
while (actionType[0] == '#')
{
@@
-158,12
+164,15
@@
void DebugScript::ParseAction(View * view, Screen * scr)
{
currentAction.type = AT_QueryGPUBounds;
inp >> currentAction.textargs;
{
currentAction.type = AT_QueryGPUBounds;
inp >> currentAction.textargs;
+ currentAction.loops = 1;
}
else if (actionType == "screenshot")
{
currentAction.type = AT_ScreenShot;
inp >> currentAction.textargs;
}
}
else if (actionType == "screenshot")
{
currentAction.type = AT_ScreenShot;
inp >> currentAction.textargs;
}
+ else
+ Fatal("Unknown action %s", actionType.c_str());
}
}
UCC
git Repository :: git.ucc.asn.au