mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-08 10:51:11 +00:00
ANDROID: Remove redundant exceptions and comments
This commit is contained in:
parent
8418adced3
commit
ab2df113e3
@ -43,10 +43,7 @@
|
|||||||
#define FORBIDDEN_SYMBOL_EXCEPTION_FILE
|
#define FORBIDDEN_SYMBOL_EXCEPTION_FILE
|
||||||
#define FORBIDDEN_SYMBOL_EXCEPTION_fopen
|
#define FORBIDDEN_SYMBOL_EXCEPTION_fopen
|
||||||
#define FORBIDDEN_SYMBOL_EXCEPTION_fclose
|
#define FORBIDDEN_SYMBOL_EXCEPTION_fclose
|
||||||
//#define FORBIDDEN_SYMBOL_EXCEPTION_fputs
|
|
||||||
//#define FORBIDDEN_SYMBOL_EXCEPTION_fwrite
|
|
||||||
#define FORBIDDEN_SYMBOL_EXCEPTION_ftell
|
#define FORBIDDEN_SYMBOL_EXCEPTION_ftell
|
||||||
//#define FORBIDDEN_SYMBOL_EXCEPTION_fflush
|
|
||||||
|
|
||||||
#include <EGL/egl.h>
|
#include <EGL/egl.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
@ -595,6 +592,9 @@ Common::WriteStream *OSystem_Android::createLogFileForAppending() {
|
|||||||
|
|
||||||
FILE *scvmLogFilePtr = fopen(getDefaultLogFileName().c_str(), "a");
|
FILE *scvmLogFilePtr = fopen(getDefaultLogFileName().c_str(), "a");
|
||||||
if (scvmLogFilePtr != nullptr) {
|
if (scvmLogFilePtr != nullptr) {
|
||||||
|
// We check for log file size; if it's too big, we rewrite it.
|
||||||
|
// This happens only upon app launch, in initBackend() when createLogFileForAppending() is called
|
||||||
|
// NOTE: We don't check for file size each time we write a log message.
|
||||||
long sz = ftell(scvmLogFilePtr);
|
long sz = ftell(scvmLogFilePtr);
|
||||||
if (sz > MAX_ANDROID_SCUMMVM_LOG_FILESIZE_IN_BYTES) {
|
if (sz > MAX_ANDROID_SCUMMVM_LOG_FILESIZE_IN_BYTES) {
|
||||||
fclose(scvmLogFilePtr);
|
fclose(scvmLogFilePtr);
|
||||||
|
@ -24,8 +24,6 @@
|
|||||||
|
|
||||||
#if defined(__ANDROID__)
|
#if defined(__ANDROID__)
|
||||||
|
|
||||||
#define FORBIDDEN_SYMBOL_EXCEPTION_FILE
|
|
||||||
|
|
||||||
#include "backends/platform/android/portdefs.h"
|
#include "backends/platform/android/portdefs.h"
|
||||||
#include "common/fs.h"
|
#include "common/fs.h"
|
||||||
#include "common/archive.h"
|
#include "common/archive.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user