aboutsummaryrefslogtreecommitdiff
path: root/src/env.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/env.c')
-rw-r--r--src/env.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/env.c b/src/env.c
index 4882026..bac97e0 100644
--- a/src/env.c
+++ b/src/env.c
@@ -631,15 +631,11 @@ uint32_t w2c_env_0x5F_0x5Fsyscall5(struct w2c_env *env, uint32_t which,
}
uint32_t flags = env_varg(env, ap, 1);
- SDL_Log("OPEN: %s", path);
-
int32_t fd;
if (!pw_fs_open(env->context.cart->storage, path, flags, &fd)) {
- SDL_Log("ERR: %d", -pw_fs_errno(env->context.cart->storage));
return -pw_fs_errno(env->context.cart->storage);
}
- SDL_Log("FD: %d", fd);
return fd;
}
@@ -660,8 +656,6 @@ uint32_t w2c_env_0x5F_0x5Fsyscall6(struct w2c_env *env, uint32_t which,
int32_t fd = (int32_t)env_varg(env, ap, 0);
- SDL_Log("CLOSE %d", fd);
-
if (!pw_fs_close(env->context.cart->storage, fd)) {
return -pw_fs_errno(env->context.cart->storage);
}
@@ -769,12 +763,12 @@ uint32_t w2c_env_0x5Femscripten_asm_const_i(struct w2c_env *env,
case 35: {
struct pw_coordinates pos;
pw_input_mouse(env->context.input, &pos);
- return pos.x;
+ return (int32_t)pos.x;
}
case 36: {
struct pw_coordinates pos;
pw_input_mouse(env->context.input, &pos);
- return pos.y;
+ return (int32_t)pos.y;
}
case 37:
return (uint32_t)pw_input_key(env->context.input, NULL);