Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new alternatives to the README, plus tests for #5 #6

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/target
.idea/
*.hl
data/dump/
6 changes: 5 additions & 1 deletion crates/hlbc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ Other alternatives include :
- Tinkering directly with the [hashlink](https://github.com/HaxeFoundation/hashlink) source code in C (my first attempt
was doing this, but it turned out that everything in C is pain in the ass)
- Using the in-progress [**_*dashlink*_**](https://github.com/Steviegt6/dashlink) made in Haxe but probably compilable
to many other languages.
to many other languages (seems broken as of 10/13/24)
- Using [crashlink](https://github.com/N3rdL0rd/crashlink), written in pure Python and portable to many platforms
(also supports bytecode patching)
- Using the also in-development [hlbc-python](https://github.com/N3rdL0rd/hlbc-python) to access a (very small) subset of this crate from Python (not reccomended, use crashlink instead)
- Using [Haxelink](https://github.com/LebiFur/Haxelink), a C# implementation

## Macros

Expand Down
16 changes: 16 additions & 0 deletions data/Nested.hx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
class Nested {
static function main() {
var b = 512.0;
while (b > 5) {
b /= 2;
if (b < 10) {
while (b < 100) {
b *= 2;
if (b > 50) {
break;
}
}
}
}
}
}