From 62d9c646dd411f1cc067de804880751b9aaa0a77 Mon Sep 17 00:00:00 2001 From: Frederico Linhares Date: Thu, 11 Jan 2024 15:31:18 -0300 Subject: 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. --- src/core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.3