Skip to content

Conversation

@cwsteini
Copy link

@cwsteini cwsteini commented Oct 1, 2025

 This PR fixes two compilation errors:
 
 ## SponsorBlock.xm
 - Fixed method calls: Changed `self.currentVideoID` to `[self currentVideoID]`
 - Fixed method calls: Changed `self.currentVideoMediaTime` to `[self currentVideoMediaTime]`
 - Removed redundant property declaration
 - Fixed validation check for sponsorBlockValues
 
 ## VolumeBar.xm  
 - Replaced static variable initialization with runtime function
 - Changed `static BOOL volumeBar = ...` to `shouldShowVolumeBar()` function
 
 These changes should resolve the build failures mentioned in the original issue.

Fix SponsorBlock compilation errors: correct method calls and remove redundant property declaration
…on with runtime function

Replace problematic static BOOL volumeBar initialization with shouldShowVolumeBar() function to avoid compile-time initialization of runtime values
…laration and fix static variable initialization

Fix compilation errors in SelectableLyrics.xm:

## Issues Fixed:
- **Duplicate property declaration**: Removed redundant `%property (retain, nonatomic) UITextView *lyrics;` from Logos hook since property is already declared in @interface
- **Static variable initialization**: Replaced `static BOOL selectableLyrics = YTMU(...)` with `shouldShowSelectableLyrics()` function to avoid compile-time initialization of runtime values

## Changes:
- Removed duplicate property declaration from %hook
- Changed static variable to runtime function
- Updated all references from `selectableLyrics` to `shouldShowSelectableLyrics()`

This resolves the compilation error that was preventing the build from completing.
…ation

Remove redundant %property declaration from VolumeBar.xm that was causing Logos preprocessor to generate variable-length array code with non-const variables.

The property is already declared in the @interface, so the %property declaration was unnecessary and causing compilation errors with VLA extensions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant