Remove PUBLIC_RELEASE flag and tie asserts to debug config (#287)

Removes the -DPUBLIC_RELEASE flag. Cemu's debug asserts are now only enabled if the build configuration is Debug. Similarly, on Windows the console is only shown for Debug builds.
This commit is contained in:
Exzap 2022-09-24 08:43:27 +02:00 committed by GitHub
parent b720d17a97
commit 3bceb39966
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
68 changed files with 154 additions and 186 deletions

View file

@ -485,7 +485,7 @@ namespace iosu
CURL* curl = it->curl.get();
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 2);
#ifndef PUBLIC_RELEASE
#ifdef CEMU_DEBUG_ASSERT
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
char errbuf[CURL_ERROR_SIZE]{};
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, errbuf);
@ -579,7 +579,7 @@ namespace iosu
if (curl_result != CURLE_OK)
{
#ifndef PUBLIC_RELEASE
#ifdef CEMU_DEBUG_ASSERT
forceLogDebug_printf("curl error buff: %s", errbuf);
#endif
it->turn_state = kError;