diff --git a/src/audio/soundcore.c b/src/audio/soundcore.c index f64bdbfb..8e242957 100644 --- a/src/audio/soundcore.c +++ b/src/audio/soundcore.c @@ -107,7 +107,11 @@ void audio_shutdown(void) { void audio_pause(void) { // CPU thread owns audio lifecycle (see note above) // Deadlock on Kindle Fire 1st Gen if audio_pause() and audio_resume() happen off CPU thread ... - // assert(pthread_self() == cpu_thread_id); +#ifdef __APPLE__ +# warning FIXME TODO : this assert is firing on iOS port ... but the assert is valid ... fix soon +#else + assert(pthread_self() == cpu_thread_id); +#endif if (!audio_isAvailable) { return; } diff --git a/src/disk.c b/src/disk.c index cb29f250..bda16996 100644 --- a/src/disk.c +++ b/src/disk.c @@ -747,7 +747,9 @@ const char *disk6_eject(int drive) { ERRLOG("Error close()ing file %s", disk6.disk[drive].file_name); } - /* +#ifdef __APPLE__ +# warning FIXME TODO : can we not inflate/deflate disk images within the iOS port? Maybe this is just a permission thing? +#else // foo.dsk -> foo.dsk.gz err = zlib_deflate(disk6.disk[drive].file_name, is_nib(disk6.disk[drive].file_name) ? NIB_SIZE : DSK_SIZE); if (err) { @@ -755,7 +757,7 @@ const char *disk6_eject(int drive) { } else { unlink(disk6.disk[drive].file_name); } - */ +#endif } STRDUP_FREE(disk6.disk[drive].file_name); diff --git a/src/timing.c b/src/timing.c index c471b7bd..91193c0d 100644 --- a/src/timing.c +++ b/src/timing.c @@ -178,7 +178,11 @@ void reinitialize(void) { void timing_initialize(void) { #if !TESTING - // assert(cpu_isPaused() || (pthread_self() == cpu_thread_id)); +# ifdef __APPLE__ +# warning FIXME TODO : this assert is firing on iOS port ... but the assert is valid ... fix soon +# else + assert(cpu_isPaused() || (pthread_self() == cpu_thread_id)); +# endif #endif _timing_initialize(alt_speed_enabled ? cpu_altscale_factor : cpu_scale_factor); }