mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-23 15:23:44 +02:00
Use std::ios::binary
mode in embedtool.cpp
Required for it to work properly on Windows.
This commit is contained in:
parent
22d2a7db08
commit
7182a57fe1
2 changed files with 3 additions and 3 deletions
|
@ -31,12 +31,12 @@ int main(int argc, char **argv) {
|
|||
const char *output = argv[2];
|
||||
const char *arrayname = argv[3];
|
||||
|
||||
std::ifstream inputf(input);
|
||||
std::ifstream inputf(input, std::ios::binary);
|
||||
if (!inputf.is_open()) {
|
||||
return 2;
|
||||
}
|
||||
|
||||
std::ofstream outputf(output);
|
||||
std::ofstream outputf(output, std::ios::binary);
|
||||
if (!outputf.is_open()) {
|
||||
return 3;
|
||||
}
|
||||
|
|
|
@ -112,7 +112,7 @@ global_args += '-DMKXPZ_INIT_GL_LATER'
|
|||
|
||||
subdir('src')
|
||||
|
||||
embedtool = executable('embedtool', sources: 'embedtool.cpp', native: true, override_options: [])
|
||||
embedtool = executable('embedtool', sources: 'embedtool.cpp', native: true, override_options: ['buildtype=release', 'b_coverage=false', 'b_lto=false', 'b_ndebug=false', 'b_pgo=off', 'b_sanitize=none'])
|
||||
|
||||
subdir('binding')
|
||||
subdir('shader')
|
||||
|
|
Loading…
Add table
Reference in a new issue