-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
62 additions
and
50 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
|
||
public abstract native class ScriptableTweak { | ||
protected cb func OnApply() -> Void | ||
protected cb func OnApply() -> Void | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
|
||
public abstract native class TweakDBManager { | ||
public final static native func SetFlat(id: TweakDBID, value: Variant) -> Bool | ||
public final static native func CreateRecord(id: TweakDBID, type: CName) -> Bool | ||
public final static native func CloneRecord(id: TweakDBID, base: TweakDBID) -> Bool | ||
public final static native func UpdateRecord(id: TweakDBID) -> Bool | ||
public final static native func RegisterName(name: CName) -> Bool | ||
public final static native func SetFlat(id: TweakDBID, value: Variant) -> Bool | ||
public final static native func CreateRecord(id: TweakDBID, type: CName) -> Bool | ||
public final static native func CloneRecord(id: TweakDBID, base: TweakDBID) -> Bool | ||
public final static native func UpdateRecord(id: TweakDBID) -> Bool | ||
public final static native func RegisterName(name: CName) -> Bool | ||
public final static func SetFlat(name: CName, value: Variant) -> Bool { | ||
if TweakDBManager.SetFlat(TDBID.Create(NameToString(name)), value) { | ||
TweakDBManager.RegisterName(name); | ||
return true; | ||
public final static func SetFlat(name: CName, value: Variant) -> Bool { | ||
if TweakDBManager.SetFlat(TDBID.Create(NameToString(name)), value) { | ||
TweakDBManager.RegisterName(name); | ||
return true; | ||
} | ||
return false; | ||
} | ||
return false; | ||
} | ||
public final static func CreateRecord(name: CName, type: CName) -> Bool { | ||
if TweakDBManager.CreateRecord(TDBID.Create(NameToString(name)), type) { | ||
TweakDBManager.RegisterName(name); | ||
return true; | ||
public final static func CreateRecord(name: CName, type: CName) -> Bool { | ||
if TweakDBManager.CreateRecord(TDBID.Create(NameToString(name)), type) { | ||
TweakDBManager.RegisterName(name); | ||
return true; | ||
} | ||
return false; | ||
} | ||
return false; | ||
} | ||
public final static func CloneRecord(name: CName, base: TweakDBID) -> Bool { | ||
if TweakDBManager.CloneRecord(TDBID.Create(NameToString(name)), base) { | ||
TweakDBManager.RegisterName(name); | ||
return true; | ||
public final static func CloneRecord(name: CName, base: TweakDBID) -> Bool { | ||
if TweakDBManager.CloneRecord(TDBID.Create(NameToString(name)), base) { | ||
TweakDBManager.RegisterName(name); | ||
return true; | ||
} | ||
return false; | ||
} | ||
return false; | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
public abstract native class TweakXL { | ||
public static native func Require(version: String) -> Bool | ||
public static native func Version() -> String | ||
} |
This file contains 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