diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 000000000..72d3a27cf
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,4 @@
+* text=auto
+
+*.vcxproj text
+*.sln text
diff --git a/src/core/cdriso.cc b/src/core/cdriso.cc
index de605ce0f..c11dbd90f 100644
--- a/src/core/cdriso.cc
+++ b/src/core/cdriso.cc
@@ -59,7 +59,7 @@ ssize_t File::seek(ssize_t pos, int wheel) {
m_ptr += pos;
break;
}
- m_ptr = std::min(std::max(m_ptr, m_size), 0);
+ m_ptr = std::min(std::max(m_ptr, m_size), (ssize_t)0);
return m_ptr;
}
ssize_t File::tell() {
diff --git a/vsprojects/SDL/SDL.vcxproj b/vsprojects/SDL/SDL.vcxproj
index 3f16a9cc5..4a22e30b8 100644
--- a/vsprojects/SDL/SDL.vcxproj
+++ b/vsprojects/SDL/SDL.vcxproj
@@ -22,7 +22,7 @@
SDL2
{81CE8DAF-EBB2-4761-8E45-B71ABCCA8C68}
SDL
- 10.0.17763.0
+ 10.0.15063.0
diff --git a/vsprojects/SDLmain/SDLmain.vcxproj b/vsprojects/SDLmain/SDLmain.vcxproj
index ebcfefe11..92528800b 100644
--- a/vsprojects/SDLmain/SDLmain.vcxproj
+++ b/vsprojects/SDLmain/SDLmain.vcxproj
@@ -25,7 +25,7 @@
SDL2main
{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}
SDLmain
- 10.0.17763.0
+ 10.0.15063.0
diff --git a/vsprojects/SPU/SPU.vcxproj b/vsprojects/SPU/SPU.vcxproj
index 15323aada..a8b7a3cc3 100644
--- a/vsprojects/SPU/SPU.vcxproj
+++ b/vsprojects/SPU/SPU.vcxproj
@@ -1,161 +1,161 @@
-
-
-
-
- Debug
- Win32
-
-
- Release
- Win32
-
-
- Debug
- x64
-
-
- Release
- x64
-
-
-
- 15.0
- {BF968FD3-EF46-45AF-B74E-46A41A96276F}
- SPU
- 10.0.17763.0
-
-
-
- StaticLibrary
- true
- v141
- MultiByte
-
-
- StaticLibrary
- false
- v141
- true
- MultiByte
-
-
- StaticLibrary
- true
- v141
- MultiByte
-
-
- StaticLibrary
- false
- v141
- true
- MultiByte
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ..\..\third_party\SDL\include;..\..\third_party\zlib;..\..\src;$(IncludePath)
-
-
- ..\..\third_party\SDL\include;..\..\third_party\zlib;..\..\src;$(IncludePath)
-
-
- ..\..\third_party\SDL\include;..\..\third_party\zlib;..\..\src;$(IncludePath)
-
-
- ..\..\third_party\SDL\include;..\..\third_party\zlib;..\..\src;$(IncludePath)
-
-
-
- Level3
- MaxSpeed
- true
- true
- true
- true
- _CRT_SECURE_NO_WARNINGS;_MBCS;%(PreprocessorDefinitions)
- stdcpp17
-
-
- true
- true
-
-
-
-
- Level3
- Disabled
- true
- true
- _CRT_SECURE_NO_WARNINGS;_MBCS;%(PreprocessorDefinitions)
- stdcpp17
-
-
-
-
- Level3
- Disabled
- true
- true
- _CRT_SECURE_NO_WARNINGS;_MBCS;%(PreprocessorDefinitions)
- stdcpp17
-
-
-
-
- Level3
- MaxSpeed
- true
- true
- true
- true
- _CRT_SECURE_NO_WARNINGS;_MBCS;%(PreprocessorDefinitions)
- stdcpp17
-
-
- true
- true
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+ Debug
+ x64
+
+
+ Release
+ x64
+
+
+
+ 15.0
+ {BF968FD3-EF46-45AF-B74E-46A41A96276F}
+ SPU
+ 10.0.15063.0
+
+
+
+ StaticLibrary
+ true
+ v141
+ MultiByte
+
+
+ StaticLibrary
+ false
+ v141
+ true
+ MultiByte
+
+
+ StaticLibrary
+ true
+ v141
+ MultiByte
+
+
+ StaticLibrary
+ false
+ v141
+ true
+ MultiByte
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ..\..\third_party\SDL\include;..\..\third_party\zlib;..\..\src;$(IncludePath)
+
+
+ ..\..\third_party\SDL\include;..\..\third_party\zlib;..\..\src;$(IncludePath)
+
+
+ ..\..\third_party\SDL\include;..\..\third_party\zlib;..\..\src;$(IncludePath)
+
+
+ ..\..\third_party\SDL\include;..\..\third_party\zlib;..\..\src;$(IncludePath)
+
+
+
+ Level3
+ MaxSpeed
+ true
+ true
+ true
+ true
+ _CRT_SECURE_NO_WARNINGS;_MBCS;%(PreprocessorDefinitions)
+ stdcpp17
+
+
+ true
+ true
+
+
+
+
+ Level3
+ Disabled
+ true
+ true
+ _CRT_SECURE_NO_WARNINGS;_MBCS;%(PreprocessorDefinitions)
+ stdcpp17
+
+
+
+
+ Level3
+ Disabled
+ true
+ true
+ _CRT_SECURE_NO_WARNINGS;_MBCS;%(PreprocessorDefinitions)
+ stdcpp17
+
+
+
+
+ Level3
+ MaxSpeed
+ true
+ true
+ true
+ true
+ _CRT_SECURE_NO_WARNINGS;_MBCS;%(PreprocessorDefinitions)
+ stdcpp17
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/vsprojects/core/core.vcxproj b/vsprojects/core/core.vcxproj
index e190e1b67..b01da7a3a 100644
--- a/vsprojects/core/core.vcxproj
+++ b/vsprojects/core/core.vcxproj
@@ -1,221 +1,221 @@
-
-
-
-
- Debug
- Win32
-
-
- Release
- Win32
-
-
- Debug
- x64
-
-
- Release
- x64
-
-
-
- 15.0
- {9372D878-F76C-418B-8E2A-8E9896FF575B}
- core
- 10.0.17763.0
-
-
-
- StaticLibrary
- true
- v141
- MultiByte
-
-
- StaticLibrary
- false
- v141
- true
- MultiByte
-
-
- StaticLibrary
- true
- v141
- MultiByte
-
-
- StaticLibrary
- false
- v141
- true
- MultiByte
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ..\..\third_party\SDL\include;..\..\third_party\zlib;..\..\src;$(IncludePath)
-
-
- ..\..\third_party\SDL\include;..\..\third_party\zlib;..\..\src;$(IncludePath)
-
-
- ..\..\third_party\SDL\include;..\..\third_party\zlib;..\..\src;$(IncludePath)
-
-
- ..\..\third_party\SDL\include;..\..\third_party\zlib;..\..\src;$(IncludePath)
-
-
-
- Level3
- Disabled
- true
- true
- _CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)
- stdcpp17
-
-
-
-
- Level3
- Disabled
- true
- true
- _CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)
- stdcpp17
-
-
-
-
- Level3
- MaxSpeed
- true
- true
- true
- true
- _CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)
- stdcpp17
-
-
- true
- true
-
-
-
-
- Level3
- MaxSpeed
- true
- true
- true
- true
- _CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)
- stdcpp17
-
-
- true
- true
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
-
-
-
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+ Debug
+ x64
+
+
+ Release
+ x64
+
+
+
+ 15.0
+ {9372D878-F76C-418B-8E2A-8E9896FF575B}
+ core
+ 10.0.15063.0
+
+
+
+ StaticLibrary
+ true
+ v141
+ MultiByte
+
+
+ StaticLibrary
+ false
+ v141
+ true
+ MultiByte
+
+
+ StaticLibrary
+ true
+ v141
+ MultiByte
+
+
+ StaticLibrary
+ false
+ v141
+ true
+ MultiByte
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ..\..\third_party\SDL\include;..\..\third_party\zlib;..\..\src;$(IncludePath)
+
+
+ ..\..\third_party\SDL\include;..\..\third_party\zlib;..\..\src;$(IncludePath)
+
+
+ ..\..\third_party\SDL\include;..\..\third_party\zlib;..\..\src;$(IncludePath)
+
+
+ ..\..\third_party\SDL\include;..\..\third_party\zlib;..\..\src;$(IncludePath)
+
+
+
+ Level3
+ Disabled
+ true
+ true
+ _CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)
+ stdcpp17
+
+
+
+
+ Level3
+ Disabled
+ true
+ true
+ _CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)
+ stdcpp17
+
+
+
+
+ Level3
+ MaxSpeed
+ true
+ true
+ true
+ true
+ _CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)
+ stdcpp17
+
+
+ true
+ true
+
+
+
+
+ Level3
+ MaxSpeed
+ true
+ true
+ true
+ true
+ _CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)
+ stdcpp17
+
+
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
+
+
+
\ No newline at end of file
diff --git a/vsprojects/gui/gui.vcxproj b/vsprojects/gui/gui.vcxproj
index d35c84f93..58bd932fd 100644
--- a/vsprojects/gui/gui.vcxproj
+++ b/vsprojects/gui/gui.vcxproj
@@ -22,7 +22,7 @@
15.0
{6EC7FDF3-1418-40BD-8584-1EEA34AC3E3E}
gui
- 10.0.17763.0
+ 10.0.15063.0
diff --git a/vsprojects/imgui-sdl-ogl3/imgui-sdl-ogl3.vcxproj b/vsprojects/imgui-sdl-ogl3/imgui-sdl-ogl3.vcxproj
index c2e794c71..7791e0153 100644
--- a/vsprojects/imgui-sdl-ogl3/imgui-sdl-ogl3.vcxproj
+++ b/vsprojects/imgui-sdl-ogl3/imgui-sdl-ogl3.vcxproj
@@ -22,7 +22,7 @@
15.0
{B86F9380-6228-4B11-87AD-29FDABF95ABB}
imguisdlogl3
- 10.0.17763.0
+ 10.0.15063.0
diff --git a/vsprojects/pcsx-redux/pcsx-redux.vcxproj b/vsprojects/pcsx-redux/pcsx-redux.vcxproj
index 0e9b01c65..2556cca49 100644
--- a/vsprojects/pcsx-redux/pcsx-redux.vcxproj
+++ b/vsprojects/pcsx-redux/pcsx-redux.vcxproj
@@ -1,198 +1,198 @@
-
-
-
-
- Debug
- Win32
-
-
- Release
- Win32
-
-
- Debug
- x64
-
-
- Release
- x64
-
-
-
- 15.0
- {36D6F879-F4CB-477E-BB87-33D867EDDB0A}
- pcsxredux
- 10.0.17763.0
- main
-
-
-
- Application
- true
- v141
- MultiByte
-
-
- Application
- false
- v141
- true
- MultiByte
-
-
- Application
- true
- v141
- MultiByte
-
-
- Application
- false
- v141
- true
- MultiByte
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- pcsx-redux
- ..\..\third_party\imgui;..\..\third_party\imgui\examples;..\..\third_party\imgui\examples\libs\gl3w;..\..\third_party\zlib;..\..\third_party\SDL\include;..\..\src;$(IncludePath)
-
-
- pcsx-redux
- ..\..\third_party\imgui;..\..\third_party\imgui\examples;..\..\third_party\imgui\examples\libs\gl3w;..\..\third_party\zlib;..\..\third_party\SDL\include;..\..\src;$(IncludePath)
-
-
- pcsx-redux
- ..\..\third_party\imgui;..\..\third_party\imgui\examples;..\..\third_party\imgui\examples\libs\gl3w;..\..\third_party\zlib;..\..\third_party\SDL\include;..\..\src;$(IncludePath)
-
-
- pcsx-redux
- ..\..\third_party\imgui;..\..\third_party\imgui\examples;..\..\third_party\imgui\examples\libs\gl3w;..\..\third_party\zlib;..\..\third_party\SDL\include;..\..\src;$(IncludePath)
-
-
-
- Level3
- Disabled
- true
- true
- _CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
- stdcpp17
-
-
- imm32.lib;opengl32.lib;setupapi.lib;version.lib;winmm.lib;ws2_32.lib;%(AdditionalDependencies)
- Windows
-
-
-
-
- Level3
- Disabled
- true
- true
- _CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
- stdcpp17
-
-
- imm32.lib;opengl32.lib;setupapi.lib;version.lib;winmm.lib;ws2_32.lib;%(AdditionalDependencies)
- Windows
-
-
-
-
- Level3
- MaxSpeed
- true
- true
- true
- true
- _CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
- stdcpp17
-
-
- true
- true
- imm32.lib;opengl32.lib;setupapi.lib;version.lib;winmm.lib;ws2_32.lib;%(AdditionalDependencies)
- Windows
-
-
-
-
- Level3
- MaxSpeed
- true
- true
- true
- true
- _CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
- stdcpp17
-
-
- true
- true
- imm32.lib;opengl32.lib;setupapi.lib;version.lib;winmm.lib;ws2_32.lib;%(AdditionalDependencies)
- Windows
-
-
-
-
- {9372d878-f76c-418b-8e2a-8e9896ff575b}
-
-
- {6ec7fdf3-1418-40bd-8584-1eea34ac3e3e}
-
-
- {b86f9380-6228-4b11-87ad-29fdabf95abb}
-
-
- {da956fd3-e142-46f2-9dd5-c78bebb56b7a}
-
-
- {81ce8daf-ebb2-4761-8e45-b71abcca8c68}
-
-
- {660a9963-15e0-4b91-a5cf-bed493e862ec}
-
-
- {bf968fd3-ef46-45af-b74e-46a41a96276f}
-
-
- {3125e078-7261-48c4-803e-4b29ceeaa56b}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
-
-
-
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+ Debug
+ x64
+
+
+ Release
+ x64
+
+
+
+ 15.0
+ {36D6F879-F4CB-477E-BB87-33D867EDDB0A}
+ pcsxredux
+ 10.0.15063.0
+ main
+
+
+
+ Application
+ true
+ v141
+ MultiByte
+
+
+ Application
+ false
+ v141
+ true
+ MultiByte
+
+
+ Application
+ true
+ v141
+ MultiByte
+
+
+ Application
+ false
+ v141
+ true
+ MultiByte
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ pcsx-redux
+ ..\..\third_party\imgui;..\..\third_party\imgui\examples;..\..\third_party\imgui\examples\libs\gl3w;..\..\third_party\zlib;..\..\third_party\SDL\include;..\..\src;$(IncludePath)
+
+
+ pcsx-redux
+ ..\..\third_party\imgui;..\..\third_party\imgui\examples;..\..\third_party\imgui\examples\libs\gl3w;..\..\third_party\zlib;..\..\third_party\SDL\include;..\..\src;$(IncludePath)
+
+
+ pcsx-redux
+ ..\..\third_party\imgui;..\..\third_party\imgui\examples;..\..\third_party\imgui\examples\libs\gl3w;..\..\third_party\zlib;..\..\third_party\SDL\include;..\..\src;$(IncludePath)
+
+
+ pcsx-redux
+ ..\..\third_party\imgui;..\..\third_party\imgui\examples;..\..\third_party\imgui\examples\libs\gl3w;..\..\third_party\zlib;..\..\third_party\SDL\include;..\..\src;$(IncludePath)
+
+
+
+ Level3
+ Disabled
+ true
+ true
+ _CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ stdcpp17
+
+
+ imm32.lib;opengl32.lib;setupapi.lib;version.lib;winmm.lib;ws2_32.lib;%(AdditionalDependencies)
+ Windows
+
+
+
+
+ Level3
+ Disabled
+ true
+ true
+ _CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ stdcpp17
+
+
+ imm32.lib;opengl32.lib;setupapi.lib;version.lib;winmm.lib;ws2_32.lib;%(AdditionalDependencies)
+ Windows
+
+
+
+
+ Level3
+ MaxSpeed
+ true
+ true
+ true
+ true
+ _CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ stdcpp17
+
+
+ true
+ true
+ imm32.lib;opengl32.lib;setupapi.lib;version.lib;winmm.lib;ws2_32.lib;%(AdditionalDependencies)
+ Windows
+
+
+
+
+ Level3
+ MaxSpeed
+ true
+ true
+ true
+ true
+ _CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ stdcpp17
+
+
+ true
+ true
+ imm32.lib;opengl32.lib;setupapi.lib;version.lib;winmm.lib;ws2_32.lib;%(AdditionalDependencies)
+ Windows
+
+
+
+
+ {9372d878-f76c-418b-8e2a-8e9896ff575b}
+
+
+ {6ec7fdf3-1418-40bd-8584-1eea34ac3e3e}
+
+
+ {b86f9380-6228-4b11-87ad-29fdabf95abb}
+
+
+ {da956fd3-e142-46f2-9dd5-c78bebb56b7a}
+
+
+ {81ce8daf-ebb2-4761-8e45-b71abcca8c68}
+
+
+ {660a9963-15e0-4b91-a5cf-bed493e862ec}
+
+
+ {bf968fd3-ef46-45af-b74e-46a41a96276f}
+
+
+ {3125e078-7261-48c4-803e-4b29ceeaa56b}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
+
+
+
\ No newline at end of file
diff --git a/vsprojects/soft/soft.vcxproj b/vsprojects/soft/soft.vcxproj
index e03a17fd1..2bc3c120d 100644
--- a/vsprojects/soft/soft.vcxproj
+++ b/vsprojects/soft/soft.vcxproj
@@ -22,7 +22,7 @@
15.0
{660A9963-15E0-4B91-A5CF-BED493E862EC}
soft
- 10.0.17763.0
+ 10.0.15063.0
soft
diff --git a/vsprojects/zlib/zlib.vcxproj b/vsprojects/zlib/zlib.vcxproj
index 61c382478..778ba3289 100644
--- a/vsprojects/zlib/zlib.vcxproj
+++ b/vsprojects/zlib/zlib.vcxproj
@@ -22,7 +22,7 @@
15.0
{3125E078-7261-48C4-803E-4B29CEEAA56B}
zlib
- 10.0.17763.0
+ 10.0.15063.0