Skip to content

Commit 47ca6a7

Browse files
.
1- Use MinGW instead of MSVC to remove Visual Studio Redistributable dependency. 2- Use Boost to handle UTF-16 file names in Windows.
1 parent 83b663b commit 47ca6a7

5 files changed

Lines changed: 249 additions & 239 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<img src="https://github.com/lingeringwillx/CrappySims2Compression/assets/111698406/5e1e045d-ab02-48c0-9a69-f8fb5ab57cbc" width="400">
44

5-
<br/>Current build can be compiled with Visual C++ Build Tools. Run `compile.bat` to compile.
5+
<br/>Current build can be compiled with the nuwen version of MinGW. Run `compile.bat` to compile.
66

77
Usage: `dbpf-recompress -args package_file_or_folder`
88

compile.bat

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
call "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
2-
3-
cl /EHsc /std:c++17 /openmp /O2 dbpf-recompress.cpp
4-
5-
del dbpf-recompress.obj
6-
7-
pause
1+
:: Using the nuwen build of MinGW
2+
call C:\mingw\set_distro_paths.bat
3+
echo on
4+
g++ -c -std=c++17 -O2 dbpf-recompress.cpp
5+
g++ dbpf-recompress.o -fopenmp -lboost_nowide -o dbpf-recompress.exe
6+
del dbpf-recompress.o
7+
pause

0 commit comments

Comments
 (0)