forked from openblack/openblack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gui: Convert LHVMViewer to Window class
Uncomment LHVM loading challenge.chl Move custom imgui code to imgui_user.cpp
- Loading branch information
1 parent
8fe62fc
commit 5cbca9b
Showing
11 changed files
with
889 additions
and
827 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import sys | ||
import os | ||
|
||
def main(file_name): | ||
version_black_and_white = 7 | ||
version_creature_isle = 8 | ||
version_black_and_white_2 = 12 | ||
|
||
with open(file_name, "wb") as f: | ||
# Magic number | ||
f.write(b"LHVM") | ||
# Version of the file | ||
f.write(version_black_and_white.to_bytes(4, byteorder='little')) | ||
# Number of variables | ||
f.write((0).to_bytes(4, byteorder='little')) | ||
# Number of instructions | ||
f.write((0).to_bytes(4, byteorder='little')) | ||
# Number of Auto (?) | ||
f.write((0).to_bytes(4, byteorder='little')) | ||
# Number of Scripts | ||
f.write((0).to_bytes(4, byteorder='little')) | ||
# Number of Data segments | ||
f.write((0).to_bytes(4, byteorder='little')) | ||
|
||
if __name__ == '__main__': | ||
import argparse | ||
parser = argparse.ArgumentParser(description='Generate empty Challenge Files.') | ||
parser.add_argument('--output-file', required=True, help='Where to generate challenge.') | ||
args = parser.parse_args() | ||
main(args.output_file) |
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
Oops, something went wrong.