Skip to content

Instantly share code, notes, and snippets.

View jarrodnorwell's full-sized avatar
🏠
Working from home

Jarrod Norwell jarrodnorwell

🏠
Working from home
View GitHub Profile
-(void) updateSettings {
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
bool (^boolean)(NSString *) = ^bool(NSString *key) { return [defaults boolForKey:key]; };
float (^_float)(NSString *) = ^float(NSString *key) { return [[NSNumber numberWithDouble:[defaults doubleForKey:key]] floatValue]; };
s32 (^signed32)(NSString *) = ^s32(NSString *key) { return [[NSNumber numberWithDouble:[defaults doubleForKey:key]] intValue]; };
u16 (^unsigned16)(NSString *) = ^u16(NSString *key) { return [[NSNumber numberWithDouble:[defaults doubleForKey:key]] intValue]; };
u32 (^unsigned32)(NSString *) = ^u32(NSString *key) { return [[NSNumber numberWithDouble:[defaults doubleForKey:key]] intValue]; };
std::string (^string)(NSString *) = ^std::string(NSString *key) { return std::string{[[defaults stringForKey:key] UTF8String]}; };
enum CytrusSettingsHeaders : String, CaseIterable {
case core = "Core"
case debugging = "Debugging"
case system = "System"
case systemSaveGame = "System Save Game"
case renderer = "Renderer"
case defaultLayout = "Default Layout"
case customLayout = "Custom Layout"
case audio = "Audio"
case miscellaneous = "Miscellaneous"
@jarrodnorwell
jarrodnorwell / Stats.kt
Created December 3, 2024 18:23
Android Device Stats
package com.antique.temp
import android.net.Uri
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
@jarrodnorwell
jarrodnorwell / Apple_mobile_device_types.txt
Last active October 29, 2024 03:35 — forked from adamawolf/Apple_mobile_device_types.txt
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S
@MainActor public struct Guava {
public static let shared = Guava()
public func insertCartridge(from url: URL) {
Core.bootRom(std.string(url.path))
}
public func videoBuffer() -> UnsafeMutablePointer<_Framebuffer> {
VI.getFramebuffer()
}
{
"author": "Antique",
"core": "Cytrus",
"description": "Default skin for the Nintendo 3DS",
"devices": [
{
"buttons": [
{
"height": 60,
"type": "dpadUp",
struct Skin : Codable {
struct Button : Codable {
let origin: CGPoint
let size: CGSize
let type: VirtualControllerButton.ButtonType
}
struct Screen : Codable {
let origin: CGPoint
let size: CGSize
//
// LibraryManager.swift
// Folium
//
// Created by Jarrod Norwell on 15/5/2024.
//
import Foundation
class LibraryManager {
%hook SBFLockScreenDateView
-(NSString *) customTimeNumberingSystem {
return @"<STRING HERE>";
}
-(void) setCustomTimeNumberingSystem:(NSString *)arg1 {
%orig(@"<STRING HERE>");
}
-(id) initWithFrame:(CGRect)arg1 {
This file has been truncated, but you can view the full file.
{
"/ps2-iso/": [
"https://cdromance.com/ps2-iso/project-zero-3-the-tormented-europe/",
"https://cdromance.com/ps2-iso/star-wars-racer-revenge-usa/",
"https://cdromance.com/ps2-iso/the-powerpuff-girls-relish-rampage-europe/",
"https://cdromance.com/ps2-iso/the-powerpuff-girls-relish-rampage-usa/",
"https://cdromance.com/ps2-iso/spider-man-web-of-shadows-amazing-allies-edition-europe/",
"https://cdromance.com/ps2-iso/spider-man-web-of-shadows-amazing-allies-edition-usa/",
"https://cdromance.com/ps2-iso/persona-3-fes-direct-commands-hack/",
"https://cdromance.com/ps2-iso/wallace-gromit-the-curse-of-the-were-rabbit-europe/",