Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
clobber committed Jun 21, 2023
1 parent 0ba54f1 commit ef91ce4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GBGameCore.mm
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ - (void)dealloc

- (BOOL)loadFileAtPath:(NSString *)path error:(NSError **)error
{
memset(pad, 0, sizeof(uint32_t) * OEGBButtonCount);
memset(pad, 0, sizeof(pad));

// Set battery save dir
NSURL *batterySavesDirectory = [NSURL fileURLWithPath:self.batterySavesDirectoryPath];
Expand Down Expand Up @@ -480,7 +480,7 @@ - (void)outputAudio:(size_t)frames
size_t len = resampler->resample(_outSoundBuffer, reinterpret_cast<const int16_t *>(_inSoundBuffer), frames);

if (len)
[[self ringBufferAtIndex:0] write:_outSoundBuffer maxLength:len << 2];
[[self audioBufferAtIndex:0] write:_outSoundBuffer maxLength:len << 2];
}

- (void)applyCheat:(NSString *)code
Expand Down

0 comments on commit ef91ce4

Please sign in to comment.