X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fdebugscript.h;fp=src%2Fdebugscript.h;h=ae2c8eb4cc3790736626c710cd638d2d3d37567c;hp=9e85b51d9098758f72ce3e686c150f44c79b0f5c;hb=c786732a062b493be1e53c0223d7cb1858fd3d0f;hpb=180d764223a3568f734434a15d56f18e9ddc012b diff --git a/src/debugscript.h b/src/debugscript.h index 9e85b51..ae2c8eb 100644 --- a/src/debugscript.h +++ b/src/debugscript.h @@ -13,12 +13,9 @@ namespace IPDF class DebugScript { public: - DebugScript() : inp(), currentAction(), m_actions(), m_labels(), m_index(0) {} + DebugScript(std::istream * in) : m_input(in), currentAction(), m_actions(), m_labels(), m_index(0) {} virtual ~DebugScript() {} - void Load(const char *filename) - { - inp.open(filename); - } + bool Execute(View *view, Screen *scr); private: enum ActionType @@ -62,7 +59,7 @@ private: Action() : type(AT_WaitFrame), x(0), y(0), ix(0), iy(0), z(0), loops(0), textargs("") {} }; - std::ifstream inp; + std::istream * m_input; Action currentAction; std::vector m_actions;