Skip to content

Commit

Permalink
rebuild for testing timer patch
Browse files Browse the repository at this point in the history
  • Loading branch information
pmp-p committed Feb 19, 2024
1 parent d36ee5e commit f85dfd1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions patchwork/pykpocket/pyque-pocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,27 @@

#include "pocketpy/pocketpy.h"


#if defined(__wii__)
#pragma message " ---------- wii ex -------------- "
#include "/opt/devkitpro/hotfix/wii_sys.h"
#endif

#if defined(__wasi__)
#pragma message " ---------- wasi ex -------------- "
extern "C" {
void *
__cxa_allocate_exception(size_t thrown_size) {
puts("__cxa_allocate_exception");
return NULL;
}

void __cxa_throw(void *thrown_exception, void *tinfo, void (*dest)(void *)) {

}

}
#endif
using namespace pkpy;

/*
Expand Down Expand Up @@ -249,7 +270,10 @@ extern "C" {

setenv("PYGLET_HEADLESS", "1", 1);

#if defined(__wasi__) || defined(__wii__)
#else
umask(18); // 0022
#endif
#if defined(__EMSCRIPTEN__)
chdir("/");
setenv("TMP", "/tmp", 0);
Expand Down
2 changes: 2 additions & 0 deletions src/pygbag/testserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ def end_headers(self):
self.send_header("access-control-allow-origin", "*")
self.send_header("cross-origin-resource-policy:", "cross-origin")
self.send_header("cross-origin-opener-policy", "cross-origin")
# allow local threads
self.send_header("origin-agent-cluster", "?1")

# not valid for Atomics
# self.send_header("cross-origin-embedder-policy", "unsafe-none")
Expand Down

0 comments on commit f85dfd1

Please sign in to comment.