This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // AppDelegate.m | |
| // NanoCompanion | |
| // | |
| // Created by Steven Troughton-Smith on 13/01/2015. | |
| // Copyright (c) 2015 High Caffeine Content. All rights reserved. | |
| // | |
| #import "AppDelegate.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| int main() | |
| { | |
| printf("Example\n"); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RINCLUDES=/Applications/MPW-GM/Interfaces\&Libraries/Interfaces/RIncludes | |
| SymOptions = -sym Full | |
| SymOpt = $(SymOptions) | |
| COptions = -w 17 -proto strict $(SymOpt) -D OLDROUTINELOCATIONS=0 | |
| MrCOptions = $(SymOpt) -D OLDROUTINELOCATIONS=0 | |
| all : Sample NativeRezSample | |
| %.o: %.c | |
| mpw SC $< -o $@ $(COptions) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *************************************************************************** | |
| **** | |
| **** DESK ACCESSORY and DEVICE DRIVER Entry Code/Data | |
| **** | |
| *************************************************************************** | |
| STRING PASCAL | |
| INCLUDE 'Events.a' | |
| INCLUDE 'Devices.a' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright Apple Computer, Inc. 1986, 1987 | |
| * All Rights Reserved | |
| */ | |
| extern int OpenDA(); | |
| extern int CloseDA(); | |
| extern int ActionDA(); | |
| extern int InitDA(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Requires https://github.com/ksherlock/mpw and an | |
| # install of MPW in the emulator's root (~/mpw) | |
| # Uses modern (Xcode) version of Rez | |
| # | |
| # Location of your mpw binary | |
| MPW=~/bin/mpw | |
| RINCLUDES=/Applications/MPW-GM/Interfaces\&Libraries/Interfaces/RIncludes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import subprocess | |
| def looksLikeBeginning(doc,seg,adr): | |
| if doc.is64Bits() and seg.readByte(adr) == 0x55 and seg.readByte(adr + 1) == 0x48 and seg.readByte(adr + 2) == 0x89 and seg.readByte(adr + 3) == 0xE5: | |
| return True | |
| if not doc.is64Bits() and seg.readByte(adr) == 0x55 and seg.readByte(adr + 1) == 0x89 and seg.readByte(adr + 2) == 0xE5: | |
| return True | |
| return False | |
| doc = Document.getCurrentDocument() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /System/Library/AccessibilityBundles/AXSpeechImplementation.bundle/AXSpeechImplementation | |
| /System/Library/AccessibilityBundles/AccessibilitySettingsLoader.bundle/AccessibilitySettingsLoader | |
| /System/Library/AccessibilityBundles/MapKitFramework.axbundle/MapKitFramework | |
| /System/Library/AccessibilityBundles/UIKit.axbundle/UIKit | |
| /System/Library/BulletinBoardPlugins/NanoMailDataProvider.bundle/NanoMailDataProvider | |
| /System/Library/BulletinBoardPlugins/SMSBBPlugin.bundle/SMSBBPlugin | |
| /System/Library/Caches/com.apple.xpc//sdk.dylib | |
| /System/Library/Caches/com.apple.xpcd/xpcd_cache.dylib | |
| /System/Library/CoreServices/Encodings/libArabicConverter.dylib | |
| /System/Library/CoreServices/Encodings/libCyrillicConverter.dylib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // main.m | |
| // wwcd15sessionlister | |
| // | |
| // Created by Steven Troughton-Smith on 10/06/2015. | |
| // | |
| #import <Foundation/Foundation.h> | |
| int main(int argc, const char * argv[]) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* How to Hook with Logos | |
| Hooks are written with syntax similar to that of an Objective-C @implementation. | |
| You don't need to #include <substrate.h>, it will be done automatically, as will | |
| the generation of a class list and an automatic constructor. | |
| %hook ClassName | |
| // Hooking a class method | |
| + (id)sharedInstance { |