summaryrefslogtreecommitdiff
path: root/utilities/modwrite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utilities/modwrite.cpp')
-rw-r--r--utilities/modwrite.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/utilities/modwrite.cpp b/utilities/modwrite.cpp
index 33bd20c..32a7759 100644
--- a/utilities/modwrite.cpp
+++ b/utilities/modwrite.cpp
@@ -3,7 +3,7 @@
#include <fcntl.h>
#include <iostream>
#include <fstream>
-#include <string>
+//#include <string>
#ifndef __GNUC__
#include <io.h>
@@ -14,6 +14,14 @@
#include <swmgr.h>
#include <stdio.h>
+#ifndef NO_SWORD_NAMESPACE
+using sword::SWMgr;
+using sword::SWModule;
+using sword::ModMap;
+using sword::SWKey;
+#endif
+
+using std::cerr;
int main(int argc, char **argv)
{
@@ -36,7 +44,7 @@ int main(int argc, char **argv)
}
SWModule *module = it->second;
- module->SetKey(argv[2]);
+ module->setKey(argv[2]);
switch (action) {
case 0: