Ported from the Android tabs by parallel agents (each screen with its own SizzleSession category); slot editors use the card editor with a preset library; songs load/save in the Android project format. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
779 B
Objective-C
20 lines
779 B
Objective-C
// SPDX-FileCopyrightText: 2026 Reactorcoremeltdown
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#import "SizzleSession.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
/// API the Setup screen needs beyond SizzleSession.h.
|
|
@interface SizzleSession (Setup)
|
|
/// Whether [text] is a Sizzle project (.szg): its first non-blank line is the
|
|
/// "SIZZLETRACKER-SNG 1" header ProjectIo writes. ProjectIo itself skips bad lines
|
|
/// one by one, so any text would "load" as an empty song without this check.
|
|
+ (BOOL)looksLikeProjectText:(NSString *)text;
|
|
/// Replace the open song with a project file's contents (Import project), after
|
|
/// checking it looks like one; the song keeps the name stored in the file.
|
|
- (BOOL)importProjectText:(NSString *)text error:(NSError **)error;
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|