]> git.localhorst.tv Git - l2e.git/blobdiff - src/loader/Compiler.h
relocate scripts
[l2e.git] / src / loader / Compiler.h
index 2f89752690664d3a33426621cc33a3a4f8c92a30..d406bbf2c8cbf016873472941c333e961ac65812 100644 (file)
@@ -8,6 +8,8 @@
 #include <iosfwd>
 #include <map>
 #include <memory>
+#include <utility>
+#include <vector>
 #include <SDL.h>
 
 namespace loader {
@@ -33,10 +35,12 @@ private:
        void WriteExports(std::ostream &);
        void WriteExternals(std::ostream &);
        void WriteImages(std::ostream &);
+       void WriteScripts(std::ostream &);
 
        void Relocate(std::iostream &);
        void RelocateArray(char *, int size);
        void Relocate(unsigned int pos, char *dest, const TypeDescription &);
+       void RelocateScript(char *, unsigned int);
 
        void PrepareExport(Export &, const std::string &);
        void PrepareExternal(External &, const Interpreter::PostponedDefinition &);
@@ -54,6 +58,7 @@ private:
 
        std::map<const void *, unsigned int> addressMap;
        std::map<unsigned int, void *> images;
+       std::vector<std::pair<const char *, unsigned int> > scripts;
 
 };