summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MSVC/Baltisot - generic/Baltisot - generic.vcproj13
-rw-r--r--MSVC/PSX-Bundle - library/PSX-Bundle - library.vcproj31
-rw-r--r--MSVC/Tools/Tools.vcproj3
-rw-r--r--Xenogears/main_dump.cpp3
-rw-r--r--Xenogears/nmakefile4
-rw-r--r--cd-tool.cpp1
-rw-r--r--crypto-search.cpp6
-rw-r--r--lzss-main.cpp4
-rw-r--r--nmakefile4
9 files changed, 60 insertions, 9 deletions
diff --git a/MSVC/Baltisot - generic/Baltisot - generic.vcproj b/MSVC/Baltisot - generic/Baltisot - generic.vcproj
index fbd3d67..a6253a9 100644
--- a/MSVC/Baltisot - generic/Baltisot - generic.vcproj
+++ b/MSVC/Baltisot - generic/Baltisot - generic.vcproj
@@ -177,6 +177,19 @@
RelativePath="..\..\generic\doc\rfc959.txt">
</File>
</Filter>
+ <Filter
+ Name="GetOpt (external)"
+ Filter="">
+ <File
+ RelativePath="..\getopt\getopt.c">
+ </File>
+ <File
+ RelativePath="..\getopt\getopt.h">
+ </File>
+ <File
+ RelativePath="..\getopt\getopt1.c">
+ </File>
+ </Filter>
</Files>
<Globals>
</Globals>
diff --git a/MSVC/PSX-Bundle - library/PSX-Bundle - library.vcproj b/MSVC/PSX-Bundle - library/PSX-Bundle - library.vcproj
index df944fb..44bfe6a 100644
--- a/MSVC/PSX-Bundle - library/PSX-Bundle - library.vcproj
+++ b/MSVC/PSX-Bundle - library/PSX-Bundle - library.vcproj
@@ -124,6 +124,37 @@
RelativePath="..\..\includes\yazedc.h">
</File>
</Filter>
+ <Filter
+ Name="psxdev.de code"
+ Filter="">
+ <File
+ RelativePath="..\..\psxdev\bs.c">
+ </File>
+ <File
+ RelativePath="..\..\psxdev\bs.h">
+ </File>
+ <File
+ RelativePath="..\..\psxdev\common.h">
+ </File>
+ <File
+ RelativePath="..\..\psxdev\idctfst.c">
+ </File>
+ <File
+ RelativePath="..\..\psxdev\jfdctint.c">
+ </File>
+ <File
+ RelativePath="..\..\psxdev\table.h">
+ </File>
+ <File
+ RelativePath="..\..\psxdev\vlc.c">
+ </File>
+ <File
+ RelativePath="..\..\psxdev\xadecode.c">
+ </File>
+ <File
+ RelativePath="..\..\psxdev\xadecode.h">
+ </File>
+ </Filter>
</Files>
<Globals>
</Globals>
diff --git a/MSVC/Tools/Tools.vcproj b/MSVC/Tools/Tools.vcproj
index 5ebd000..eb6d59b 100644
--- a/MSVC/Tools/Tools.vcproj
+++ b/MSVC/Tools/Tools.vcproj
@@ -56,6 +56,9 @@
<File
RelativePath="..\..\Xenogears\Decrypt.cpp">
</File>
+ <File
+ RelativePath="..\..\Xenogears\main_dump.cpp">
+ </File>
</Filter>
<Filter
Name="Makefiles">
diff --git a/Xenogears/main_dump.cpp b/Xenogears/main_dump.cpp
index c39a9fe..65b7466 100644
--- a/Xenogears/main_dump.cpp
+++ b/Xenogears/main_dump.cpp
@@ -27,7 +27,6 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#include <unistd.h>
#include "cdutils.h"
#include "generic.h"
#include "Input.h"
@@ -113,7 +112,7 @@ virtual int startup() throw (GeneralException)
printm(M_STATUS, "Entering files read sequence\n");
read_files();
- exit(0);
+ return 0;
}
/*
diff --git a/Xenogears/nmakefile b/Xenogears/nmakefile
index 3e3f4ad..2f62663 100644
--- a/Xenogears/nmakefile
+++ b/Xenogears/nmakefile
@@ -1,11 +1,11 @@
_CCFLAGS = /I ..\includes /I ..\generic\include /I ..\..\zlib
-_LIBS = "..\MSVC\Baltisot - generic\Debug\Baltisot - generic.lib" ..\..\zlib\zlibdll.lib ..\..\zlib\zlibstat.lib
+_LIBS = "..\MSVC\Baltisot - generic\Debug\Baltisot - generic.lib" "..\MSVC\PSX-Bundle - library\Debug\PSX-Bundle - library.lib" ..\..\zlib\zlibdll.lib ..\..\zlib\zlibstat.lib
!include $(COMMONTOOLSPATH)\master.mak
#------------------------------------------------------------------
-TARGETS = decrypt.exe
+TARGETS = decrypt.exe main_dump.exe
all : $(TARGETS)
diff --git a/cd-tool.cpp b/cd-tool.cpp
index 38131b6..9facf0e 100644
--- a/cd-tool.cpp
+++ b/cd-tool.cpp
@@ -24,7 +24,6 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
-#include <unistd.h>
#include "Input.h"
#include "Output.h"
#include "cdreader.h"
diff --git a/crypto-search.cpp b/crypto-search.cpp
index d08efc2..bd6cf4c 100644
--- a/crypto-search.cpp
+++ b/crypto-search.cpp
@@ -19,9 +19,13 @@
#include <stdio.h>
#include <stdlib.h>
+#ifdef __linux__
#include <values.h>
+#else
+#define MAXINT INT_MAX
+#define MININT INT_MIN
+#endif
#include <string.h>
-#include <unistd.h>
#include "generic.h"
#include "Input.h"
#include "Main.h"
diff --git a/lzss-main.cpp b/lzss-main.cpp
index ed07eec..50f40bc 100644
--- a/lzss-main.cpp
+++ b/lzss-main.cpp
@@ -168,10 +168,12 @@ virtual int startup() throw (GeneralException) {
p = strlen(pname) - 5;
verbosity = M_STATUS;
-
+
+#ifdef __linux__
if (!strcasecmp(pname + p, "dlzss")) {
lzsscompress = 0;
}
+#endif
printm(M_BARE,
LZSS_NAME + " compressor/decompressor version " + LZSS_VERSION + ",\n"
diff --git a/nmakefile b/nmakefile
index 9241859..af66aff 100644
--- a/nmakefile
+++ b/nmakefile
@@ -1,5 +1,5 @@
-_CCFLAGS = /I includes /I generic\include /I ..\zlib
-_LIBS = "MSVC\Baltisot - generic\Debug\Baltisot - generic.lib" ..\zlib\zlibdll.lib ..\zlib\zlibstat.lib
+_CCFLAGS = /I includes /I generic\include /I ..\zlib /I msvc/getopt
+_LIBS = "MSVC\Baltisot - generic\Debug\Baltisot - generic.lib" "MSVC\PSX-Bundle - library\Debug\PSX-Bundle - library.lib" ..\zlib\zlibdll.lib ..\zlib\zlibstat.lib
!include $(COMMONTOOLSPATH)\master.mak