diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..ab829ab
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+/bin
+/obj
+/lib
+/output
+librw.vcxproj.user
+librw.VC.db
+librw.VC.VC.opendb
\ No newline at end of file
diff --git a/librw.vcxproj b/librw.vcxproj
index e866b97..f6e4209 100644
--- a/librw.vcxproj
+++ b/librw.vcxproj
@@ -101,6 +101,8 @@
{30552BB0-3B19-49A4-ABF4-87CF68AF9E38}
librw
+
+
@@ -165,21 +167,33 @@
.lib
+ .\lib\$(Platform)\$(Configuration)\
+ .\obj\$(ProjectName)\$(Platform)\$(Configuration)\
.lib
+ .\lib\$(Platform)\$(Configuration)\
+ .\obj\$(ProjectName)\$(Platform)\$(Configuration)\
.lib
+ .\lib\$(Platform)\$(Configuration)\
+ .\obj\$(ProjectName)\$(Platform)\$(Configuration)\
.lib
+ .\lib\$(Platform)\$(Configuration)\
+ .\obj\$(ProjectName)\$(Platform)\$(Configuration)\
.lib
+ .\lib\$(Platform)\$(Configuration)\
+ .\obj\$(ProjectName)\$(Platform)\$(Configuration)\
.lib
+ .\lib\$(Platform)\$(Configuration)\
+ .\obj\$(ProjectName)\$(Platform)\$(Configuration)\
@@ -199,6 +213,7 @@
Disabled
true
_USING_V110_SDK71_;_CRT_SECURE_NO_WARNINGS;RW_D3D9;%(PreprocessorDefinitions)
+ MultiThreadedDebug
true
@@ -222,7 +237,7 @@
Disabled
true
_USING_V110_SDK71_;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
- MultiThreadedDebugDLL
+ MultiThreadedDebug
true
@@ -236,6 +251,7 @@
true
true
_USING_V110_SDK71_;_CRT_SECURE_NO_WARNINGS;RW_D3D9;%(PreprocessorDefinitions)
+ MultiThreaded
true
@@ -251,6 +267,9 @@
true
true
_USING_V110_SDK71_;_CRT_SECURE_NO_WARNINGS;RW_D3D9;%(PreprocessorDefinitions)
+
+
+ MultiThreaded
true
diff --git a/src/base.cpp b/src/base.cpp
index d92676a..1a5ee9a 100644
--- a/src/base.cpp
+++ b/src/base.cpp
@@ -834,7 +834,7 @@ StreamFile::tell(void)
bool
StreamFile::eof(void)
{
- return feof(this->file);
+ return ( feof(this->file) != 0 );
}
bool
diff --git a/src/d3d/rwxbox.h b/src/d3d/rwxbox.h
index 6f59c31..bc78bcf 100644
--- a/src/d3d/rwxbox.h
+++ b/src/d3d/rwxbox.h
@@ -93,7 +93,7 @@ Texture *readNativeTexture(Stream *stream);
void writeNativeTexture(Texture *tex, Stream *stream);
uint32 getSizeNativeTexture(Texture *tex);
-enum {
+enum : rw::uint32 {
D3DFMT_UNKNOWN = 0xFFFFFFFF,
/* Swizzled formats */
diff --git a/tools/dumprwtree/dumprwtree.vcxproj b/tools/dumprwtree/dumprwtree.vcxproj
index 1ecc7c0..2113ec1 100644
--- a/tools/dumprwtree/dumprwtree.vcxproj
+++ b/tools/dumprwtree/dumprwtree.vcxproj
@@ -29,6 +29,7 @@
{B487F101-0C2B-4F99-A1E0-B0B0C0F3FE7E}
dumprwtree
+ 8.1
@@ -94,48 +95,70 @@
$(VC_IncludePath);$(WindowsSDK_IncludePath);$(SolutionDir)
$(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86);$(SolutionDir)$(Configuration)\
+ ..\..\bin\$(ProjectName)\$(Platform)\$(Configuration)\
+ ..\..\obj\$(ProjectName)\$(Platform)\$(Configuration)\
$(VC_IncludePath);$(WindowsSDK_IncludePath);$(SolutionDir)
$(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86);$(SolutionDir)$(Configuration)\
+ ..\..\bin\$(ProjectName)\$(Platform)\$(Configuration)\
+ ..\..\obj\$(ProjectName)\$(Platform)\$(Configuration)\
$(VC_IncludePath);$(WindowsSDK_IncludePath);$(SolutionDir)
$(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86);$(SolutionDir)$(Configuration)\
+ ..\..\bin\$(ProjectName)\$(Platform)\$(Configuration)\
+ ..\..\obj\$(ProjectName)\$(Platform)\$(Configuration)\
$(VC_IncludePath);$(WindowsSDK_IncludePath);$(SolutionDir)
$(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86);$(SolutionDir)$(Configuration)\
+ ..\..\bin\$(ProjectName)\$(Platform)\$(Configuration)\
+ ..\..\obj\$(ProjectName)\$(Platform)\$(Configuration)\
$(VC_IncludePath);$(WindowsSDK_IncludePath);$(SolutionDir)
$(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86);$(SolutionDir)$(Configuration)\
+ ..\..\bin\$(ProjectName)\$(Platform)\$(Configuration)\
+ ..\..\obj\$(ProjectName)\$(Platform)\$(Configuration)\
$(VC_IncludePath);$(WindowsSDK_IncludePath);$(SolutionDir)
$(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86);$(SolutionDir)$(Configuration)\
+ ..\..\bin\$(ProjectName)\$(Platform)\$(Configuration)\
+ ..\..\obj\$(ProjectName)\$(Platform)\$(Configuration)\
Level3
Disabled
true
+ MultiThreadedDebug
true
librw.lib;%(AdditionalDependencies)
+ ..\..\lib\$(Platform)\$(Configuration)\
+
+ xcopy /Y "$(TargetPath)" "..\..\output\"
+
Level3
Disabled
true
+ MultiThreadedDebug
true
librw.lib;%(AdditionalDependencies)
+ ..\..\lib\$(Platform)\$(Configuration)\
+
+ xcopy /Y "$(TargetPath)" "..\..\output\"
+
@@ -147,18 +170,27 @@
true
librw.lib;%(AdditionalDependencies)
+ ..\..\lib\$(Platform)\$(Configuration)\
+
+ xcopy /Y "$(TargetPath)" "..\..\output\"
+
Level3
Disabled
true
+ MultiThreadedDebug
true
librw.lib;%(AdditionalDependencies)
+ ..\..\lib\$(Platform)\$(Configuration)\
+
+ xcopy /Y "$(TargetPath)" "..\..\output\"
+
@@ -167,13 +199,18 @@
true
true
true
+ MultiThreaded
true
true
true
librw.lib;%(AdditionalDependencies)
+ ..\..\lib\$(Platform)\$(Configuration)\
+
+ xcopy /Y "$(TargetPath)" "..\..\output\"
+
@@ -182,13 +219,18 @@
true
true
true
+ MultiThreaded
true
true
true
librw.lib;%(AdditionalDependencies)
+ ..\..\lib\$(Platform)\$(Configuration)\
+
+ xcopy /Y "$(TargetPath)" "..\..\output\"
+