Compare commits
No commits in common. "b17e5d3917888f94c098fbd3d0b58f3d7b7eed8a" and "79c06098b3888b177f92f3b8ae92dbe9c2745da1" have entirely different histories.
b17e5d3917
...
79c06098b3
16
Info.plist
16
Info.plist
|
@ -1,16 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>Prosperon</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>pockle.world.prosperon</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>Prosperon</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>0.5</string>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
<string>Copyright © 2024 Pockle World. All rights reserved.</string>
|
||||
</dict>
|
||||
</plist>
|
16
Makefile
16
Makefile
|
@ -173,7 +173,6 @@ SHADERS := $(patsubst %.sglsl, %.sglsl.h, $(SHADERS))
|
|||
|
||||
DESTDIR ?= ~/.bin
|
||||
install: $(NAME)
|
||||
@echo Copying to destination
|
||||
cp -f $(NAME) $(DESTDIR)/$(APP)
|
||||
|
||||
$(NAME): libengine$(INFO).a libquickjs$(INFO).a $(DEPS)
|
||||
|
@ -182,14 +181,13 @@ $(NAME): libengine$(INFO).a libquickjs$(INFO).a $(DEPS)
|
|||
@echo Finished build
|
||||
|
||||
libengine$(INFO).a: $(OBJS)
|
||||
@echo Archiving $@
|
||||
$(AR) rcs $@ $(OBJS)
|
||||
|
||||
QUICKJS := source/engine/thirdparty/quickjs
|
||||
libquickjs$(INFO).a: $(QUICKJS)/libregexp$(INFO).o $(QUICKJS)/quickjs$(INFO).o $(QUICKJS)/libunicode$(INFO).o $(QUICKJS)/cutils$(INFO).o $(QUICKJS)/libbf$(INFO).o
|
||||
$(AR) rcs $@ $^
|
||||
|
||||
%$(INFO).o: %.c $(SHADERS)
|
||||
%$(INFO).o: %.c $(SHADERS) source/engine/core.cdb.h
|
||||
@echo Making C object $@
|
||||
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
|
||||
|
||||
|
@ -208,10 +206,6 @@ shaders: $(SHADERS)
|
|||
@echo Creating shader $^
|
||||
./sokol-shdc --ifdef -i $^ --slang=glsl330:hlsl5:metal_macos:metal_ios:metal_sim:glsl300es -o $@
|
||||
|
||||
SCRIPTS := $(shell ls scripts/*.js*)
|
||||
CORE != (ls icons/* fonts/*)
|
||||
CORE := $(CORE) $(SCRIPTS)
|
||||
|
||||
CDB = source/engine/thirdparty/tinycdb
|
||||
CDB_C != find $(CDB) -name *.c
|
||||
CDB_O := $(patsubst %.c, %.o, $(CDB_C))
|
||||
|
@ -229,15 +223,19 @@ packer: tools/packer.c tools/libcdb.a
|
|||
cc $^ -I$(CDB) -o packer
|
||||
|
||||
core.cdb: packer $(CORE)
|
||||
@echo Packing core.cdb
|
||||
./packer $(CORE)
|
||||
chmod 644 out.cdb
|
||||
mv out.cdb core.cdb
|
||||
|
||||
source/engine/core.cdb.h: core.cdb
|
||||
@echo Making $@
|
||||
@echo Packing core.cdb.h
|
||||
xxd -i $< > $@
|
||||
|
||||
SCRIPTS := $(shell ls scripts/*.js*)
|
||||
SCRIPT_O := $(addsuffix o, $(SCRIPTS))
|
||||
CORE != (ls icons/* fonts/*)
|
||||
CORE := $(CORE) $(SCRIPTS)
|
||||
|
||||
jsc: tools/jso.c tools/libquickjs.a
|
||||
$(CC) $^ -lm -Iquickjs -o $@
|
||||
|
||||
|
|
|
@ -37,13 +37,6 @@ os.prefpath = function() {
|
|||
return otherpath[os.sys()] + "/" + (game.title ? game.title : "Untitled Prosperon Game");
|
||||
}
|
||||
|
||||
os.openurl = function(url) {
|
||||
if (os.sys() === 'windows')
|
||||
os.system(`start ${url}`);
|
||||
else
|
||||
os.system(`open ${url}`);
|
||||
}
|
||||
|
||||
var projectfile = ".prosperon/project.json";
|
||||
|
||||
Resources.is_sound = function(path) {
|
||||
|
|
|
@ -809,16 +809,11 @@ JSC_SCALL(os_make_texture,
|
|||
JS_SetPropertyStr(js, ret, "path", JS_DupValue(js,argv[0]));
|
||||
)
|
||||
|
||||
JSC_SCALL(os_system,
|
||||
system(str);
|
||||
)
|
||||
|
||||
static const JSCFunctionListEntry js_os_funcs[] = {
|
||||
MIST_FUNC_DEF(os,sprite,1),
|
||||
MIST_FUNC_DEF(os, cwd, 0),
|
||||
MIST_FUNC_DEF(os, env, 1),
|
||||
MIST_FUNC_DEF(os, sys, 0),
|
||||
MIST_FUNC_DEF(os, system, 1),
|
||||
MIST_FUNC_DEF(os, quit, 0),
|
||||
MIST_FUNC_DEF(os, reindex_static, 0),
|
||||
MIST_FUNC_DEF(os, gc, 0),
|
||||
|
|
Loading…
Reference in a new issue