summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrederico Linhares <fred@linhares.blue>2024-01-11 15:31:18 -0300
committerFrederico Linhares <fred@linhares.blue>2024-01-11 15:31:18 -0300
commit62d9c646dd411f1cc067de804880751b9aaa0a77 (patch)
tree9c6d042471557b360597771fedc306e504b25a75 /src
parente2581a8209c549fd3f88be671c9bcd6447ec1dac (diff)
fixt Fix several bugs in the Windows installation
* Rakefile: Link against winsock2 * ruby_build_config.rb: Add sockets to the engine for on-line gaming. * src/core.cpp: Windows needs to read mrb files as binaries. * windows_installer.nsi: write uninstaller before listing files seems to cause bugs.
Diffstat (limited to 'src')
-rw-r--r--src/core.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.cpp b/src/core.cpp
index d47127b..ec79fa0 100644
--- a/src/core.cpp
+++ b/src/core.cpp
@@ -135,7 +135,7 @@ load_game(void *obj)
cg_graphic_init_config(cg_core.mrb);
- fp = fopen(cg_core.game_file.c_str(), "r");
+ fp = fopen(cg_core.game_file.c_str(), "rb");
mrb_load_irep_file(cg_core.mrb, fp);
fclose(fp);
if (cg_core.mrb->exc)