-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix various issues, incl. char deletion in editor.
- Loading branch information
1 parent
3d863a9
commit 32c6b1c
Showing
11 changed files
with
72 additions
and
7 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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#/bin/bash | ||
|
||
# usage (from rootdir): | ||
# Linux: | ||
# MEDIALIB="libctrmedia.so" MAKEFILE="makefile" ISO="nl" bash misc/export/pc/export.sh | ||
# Win64: | ||
# MEDIALIB="libctrmedia.dll" MAKEFILE="makefile.win64" ISO="nl" CC=x86_64-w64-mingw32-gcc-win32 DLLTOOL=x86_64-w64-mingw32-dlltool bash misc/export/pc/export.sh | ||
# don't forget to copy libs! | ||
|
||
# create embed file | ||
cat misc/opt/preface.h > misc/opt/embed.h | ||
xxd -i -n CtrBlob data >> misc/opt/embed.h | ||
|
||
# compile media plugin | ||
PACKAGE="media" \ | ||
NAME=$MEDIALIB \ | ||
make -f $MAKEFILE clean | ||
|
||
PACKAGE="media" NAME=$MEDIALIB \ | ||
make -f $MAKEFILE plugin | ||
|
||
# compile Citrine with embed options | ||
EXTRACFLAGS=" -D EMBED " \ | ||
make -f $MAKEFILE |
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,17 @@ | ||
static char* embedded_program = "\ | ||
Media _datastart.\ | ||
"; | ||
|
||
int main(int argc, char *argv[]) { | ||
uint64_t program_text_size = 0; | ||
ctr_tnode* program; | ||
ctr_init(); | ||
program_text_size = strlen(embedded_program); | ||
ctr_program_length = program_text_size; | ||
program = ctr_cparse_parse(embedded_program, "/embedded.ctr"); | ||
ctr_initialize_world(); | ||
ctr_cwlk_run(program); | ||
ctr_gc_sweep(1); | ||
ctr_heap_free_rest(); | ||
return 0; | ||
} |
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