diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 86aa23c627..58ae00e8d9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -21,41 +21,20 @@ if (YUZU_STATIC_BUILD) add_compile_definitions(QT_STATICPLUGIN) endif() -# Build identifiers if (NIGHTLY_BUILD) add_compile_definitions(NIGHTLY_BUILD) endif() -# Legacy (android only) if (YUZU_LEGACY) message(WARNING "Making legacy build. Performance may suffer.") add_compile_definitions(YUZU_LEGACY) endif() -# Genshin Spoof (android only) if (GENSHIN_SPOOF) message(WARNING "Making Genshin spoof build") add_compile_definitions(GENSHIN_SPOOF) endif() -# Build ID (mingw only right now) -# Pretty much just refers to the CI "target" for this build -if (NOT BUILD_ID) - if (ARCHITECTURE_x86_64) - set(BUILD_ID amd64) - elseif(ARCHITECTURE_arm64) - if (WIN32) - set(BUILD_ID arm64) - else() - set(BUILD_ID aarch64) - endif() - else() - set(BUILD_ID "${ARCHITECTURE}") - endif() -endif() - -add_compile_definitions(BUILD_ID="${BUILD_ID}") - # Set compilation flags if (MSVC AND NOT CXX_CLANG) set(CMAKE_CONFIGURATION_TYPES Debug Release CACHE STRING "" FORCE) diff --git a/src/common/net/net.cpp b/src/common/net/net.cpp index ec627177a2..1d836cbd1d 100644 --- a/src/common/net/net.cpp +++ b/src/common/net/net.cpp @@ -62,20 +62,16 @@ std::vector Release::GetPlatformAssets() const { #ifdef _WIN32 #ifdef ARCHITECTURE_x86_64 -#ifdef _MSC_VER - find_asset("Standard", {"amd64-msvc-standard.exe", "amd64-msvc-standard.zip"}); -#else // _MSC_VER - find_asset("Standard", {BUILD_ID "-gcc-standard.exe", BUILD_ID "-gcc-standard.zip"}); - find_asset("PGO", {BUILD_ID "-clang-pgo.exe", BUILD_ID "-clang-pgo.zip"}); -#endif // _MSC_VER + find_asset("Standard", {"amd64-msvc-standard.exe", "amd64-msvc-standard.zip", "mingw-amd64-gcc-standard.exe", "mingw-amd64-gcc-standard.zip"}); + find_asset("PGO", {"mingw-amd64-clang-pgo.exe", "mingw-amd64-clang-pgo.zip"}); #elif defined(ARCHITECTURE_arm64) - find_asset("Standard", {"arm64-clang-standard.exe", "arm64-clang-standard.zip"}); - find_asset("PGO", {"arm64-clang-pgo.exe", "arm64-clang-pgo.zip"}); -#endif // ARCHITECTURE_arm64 + find_asset("Standard", {"mingw-arm64-clang-standard.exe", "mingw-arm64-clang-standard.zip"}); + find_asset("PGO", {"mingw-arm64-clang-pgo.exe", "mingw-arm64-clang-pgo.zip"}); +#endif #elif defined(__APPLE__) #ifdef ARCHITECTURE_arm64 find_asset("Standard", {".dmg", ".tar.gz"}); -#endif // ARCHITECTURE_arm64 +#endif #elif defined(__ANDROID__) #ifdef ARCHITECTURE_x86_64 find_asset("Standard", {"chromeos.apk"}); @@ -86,9 +82,9 @@ std::vector Release::GetPlatformAssets() const { find_asset("Standard", {"optimized.apk"}); #else find_asset("Standard", {"standard.apk"}); -#endif // GENSHIN_SPOOF -#endif // ARCHITECTURE_arm64 -#endif // __APPLE__ +#endif +#endif +#endif return found_assets; } diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index b4472bff11..f8528d9671 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -107,14 +107,8 @@ int main(int argc, char* argv[]) { QCoreApplication::setApplicationName(QStringLiteral("eden")); #ifdef _WIN32 - // Increases the maximum open file limit. - // MSVCRT limits this to 2048 for some inexplicable (and likely arcane) reason, - // so we have to account for that as well. -#ifdef __MSVCRT__ - _setmaxstdio(2048); -#else + // Increases the maximum open file limit to 8192 _setmaxstdio(8192); -#endif #elif defined(__APPLE__) // If you start a bundle (binary) on OSX without the Terminal, the working directory is "/". // But since we require the working directory to be the executable path for the location of