Ver código fonte

Reintroduce getFileLine for Console Modules

Lukas Aldershaab 1 ano atrás
pai
commit
27b6973da0

+ 1 - 0
Engine/source/console/module.h

@@ -24,6 +24,7 @@ namespace Con
                               ConsoleValue* argv, bool noCalls, StringTableEntry packageName,
                               S32 setFrame = -1) = 0;
       virtual void findBreakLine(U32 ip, U32& line, U32& instruction) {}
+      virtual const char* getFileLine(U32 ip) { return ""; }
 
       /// Returns the first breakable line or 0 if none was found.
       /// @param lineNumber The one based line number.

+ 1 - 1
Engine/source/console/torquescript/codeBlock.h

@@ -115,7 +115,7 @@ public:
    bool setBreakpoint(U32 lineNumber) override;
 
    void findBreakLine(U32 ip, U32 &line, U32 &instruction) override;
-   const char *getFileLine(U32 ip);
+   const char *getFileLine(U32 ip) override;
 
    ///
    String getFunctionArgs(U32 offset);