Skip to content

Instantly share code, notes, and snippets.

View vade's full-sized avatar

Anton Marini vade

View GitHub Profile
// Return the MAC address of this host, obfuscated for privacy.
// The result may be used as an ID which is unique to this host.
+ (NSString *)obfuscatedMACAddress
{
NSString *address = [NSString MACAddress];
if (!address) return nil;
const char *s = [address UTF8String];
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x00007fff817b9e90 objc_msgSend + 16
1 com.openemu.OpenEmu 0x000000010000e6dd -[OEGamePreferenceController(Toolbar) switchView:] + 461 (OEGamePreferenceController_Toolbar.m:228)
2 com.openemu.OpenEmu 0x000000010000d414 -[OEGamePreferenceController setSelectedPlugins:] + 452 (OEGamePreferenceController.m:140)
3 com.apple.Foundation 0x00007fff8882e442 _NSSetObjectValueAndNotify + 261
4 com.apple.Foundation 0x00007fff888024a2 _NSSetUsingKeyValueSetter + 62
5 com.apple.Foundation 0x00007fff88801fd5 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 400
6 com.apple.Foundation 0x00007fff888342da -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 349
7 com.apple.AppKit 0x00007fff839aa493 -[NSBinder _setValue:forKeyPath:ofObject:mode:validateImmediately:raisesForNotApplicableKeys:error:] + 243
Process: OpenEmu [18577]
Path: /Users/USER/Library/Developer/Xcode/DerivedData/OpenEmu-hkkuwfmdnxsxwxdocufrhcrzgmeh/Build/Products/Debug/OpenEmu.app/Contents/MacOS/OpenEmu
Identifier: com.openemu.OpenEmu
Version: ??? (1.0.0b8)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Date/Time: 2011-09-20 01:40:19.353 -0400
OS Version: Mac OS X 10.7.2 (11C57)
Report Version: 9
Process: OpenEmu [18577]
Path: /Users/USER/Library/Developer/Xcode/DerivedData/OpenEmu-hkkuwfmdnxsxwxdocufrhcrzgmeh/Build/Products/Debug/OpenEmu.app/Contents/MacOS/OpenEmu
Identifier: com.openemu.OpenEmu
Version: ??? (1.0.0b8)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Date/Time: 2011-09-20 01:40:19.353 -0400
OS Version: Mac OS X 10.7.2 (11C57)
2011-09-22 12:46:43.455 OpenEmu[10491:c03] Archive.vg game info {
AVGGameBoxURLKey = "http://image.com.com/gamespot/images/bigboxshots/5/587125_39471_front.jpg";
AVGGameCreditsKey = (
{
AVGCreditsNameKey = "David Wise";
AVGCreditsPositionKey = "Sound Composition";
}
);
AVGGameDescriptionKey = "Okay toads! Let's get EVEN! When the evil Dark Queen kidnaps both your best buddy and the best looking girl this side of the Mazallion Star Cluster - what are you gonna do about it? Are you gonna cry? Hide? Call the Starcops? No way! Because you're a BATTLETOAD and BATTLETOADS don't cry, hide or call for help. BATTLETOADS get real MAD - and then they get EVEN! So, strap on your blaster, power-up the Toadster and get on down to the Dark Queen's planet - but, watch out 'toad - this lady's bad, and she's got a whole mess of really nasty surprises lined up for you - like the Psyko Pigs, the Mutant Ratpack, Robo-Manus and the Saturn Toadtrap, to name but a f
- (IBAction)filemenu_addToLibrary:(id)sender{
NSOpenPanel* openPanel = [NSOpenPanel openPanel];
[openPanel setAllowsMultipleSelection:YES];
[openPanel setCanChooseFiles:YES];
[openPanel setCanCreateDirectories:NO];
[openPanel setCanChooseDirectories:YES];
NSInteger result = [openPanel runModal];
if(result != NSOKButton){
return;
double max = [URLs count];
[importProgress setMaxValue:max];
[NSApp beginSheet:importSheet
modalForWindow:libraryWindow
modalDelegate:self
didEndSelector:@selector(sheetDidEnd:returnCode:contextInfo:)
contextInfo:nil];
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
2011-09-28 03:38:06.589 OpenEmu[53622:c03] Rom Search Results: (
"/Users/vade/Desktop/roms/NES/Battletoads.nes",
"/Users/vade/Desktop/roms/NES/Bionic Commando.nes",
"/Users/vade/Desktop/roms/NES/BladesofSteel.nes",
"/Users/vade/Desktop/roms/NES/BlasterMaster.nes",
"/Users/vade/Desktop/roms/NES/Burgtime.nes",
"/Users/vade/Desktop/roms/NES/Castlevania II - Simon's Quest.nes",
"/Users/vade/Desktop/roms/NES/Castlevania III - Dracula's Curse.nes",
"/Users/vade/Desktop/roms/NES/Castlevania.nes",
"/Users/vade/Desktop/roms/NES/Contra.nes",
- (IBAction)discoverRoms:(id)sender
{
NSString* searchString = [NSString stringWithFormat:@"kMDItemFSName = \"*.nes\"", nil ];
NSArray* sortArray = [NSArray arrayWithObject:(NSString*)kMDItemDisplayName];
MDQueryRef searchQuery = MDQueryCreate(kCFAllocatorDefault, (CFStringRef)searchString, NULL, (CFArrayRef)sortArray);
if(searchQuery)
{
Process: Xcode [7153]
Path: /Developer/Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 4.1 (516)
Build Info: IDEApplication-516000000000000~18
Code Type: X86-64 (Native)
Parent Process: launchd [137]
Date/Time: 2011-10-03 23:46:49.358 -0400
OS Version: Mac OS X 10.7.2 (11C62)