Merge branch 'misc-fixes' into libretro-compat

This commit is contained in:
刘皓 2025-03-03 10:46:44 -05:00
commit 8d574dfe64
No known key found for this signature in database
GPG key ID: 7901753DB465B711
3 changed files with 8 additions and 5 deletions

5
.gitignore vendored
View file

@ -21,6 +21,9 @@ xxd+
mkxp.layout
mkxp.cbp
# clangd
/.cache
# General
.DS_Store
.AppleDouble
@ -74,4 +77,4 @@ DerivedData/
!default.perspectivev3
## Gcc Patch
/*.gcno
/*.gcno

View file

@ -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;
}

View file

@ -33,7 +33,7 @@ global_args += '-DHAVE_NANOSLEEP'
# ====================
if is_libretro
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'])
libretro_stage1_path = get_option('libretro_stage1_path')
@ -693,7 +693,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')