X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=src%2Ffile-system.cpp;h=afb9f0b95af39dff8979de7ea62a00cce5a13bdc;hb=4f049544ec827a9f1f16a913d7241f29179fdde7;hp=5b872a5d1fbb5ffc9085c1ede2d25911c6544920;hpb=98052b04792129db97286fdd77ef3b0de8912286;p=guile-irrlicht.git diff --git a/src/file-system.cpp b/src/file-system.cpp index 5b872a5..afb9f0b 100644 --- a/src/file-system.cpp +++ b/src/file-system.cpp @@ -24,11 +24,10 @@ #include "file-archive.h" #include "file-system.h" #include "gsubr.h" - +#include "wrapped.h" using namespace irr; - SCM IFileSystem_addFileArchive (SCM file_system, SCM filename, @@ -38,7 +37,7 @@ IFileSystem_addFileArchive (SCM file_system, SCM password, SCM ret_archive) { - io::IFileArchive* retArchive = (io::IFileArchive*)scm_to_pointer (ret_archive); + io::IFileArchive* retArchive = (io::IFileArchive*)scm_to_irr_pointer (ret_archive); io::IFileArchive** retArchiveReference = 0; if (retArchive != NULL) { @@ -46,22 +45,17 @@ IFileSystem_addFileArchive (SCM file_system, } return scm_from_bool - (((io::IFileSystem*)scm_to_pointer (file_system))-> - addFileArchive (scm_to_utf8_stringn (filename, NULL), + (((io::IFileSystem*)scm_to_irr_pointer (file_system))-> + addFileArchive (scm_to_utf8_string (filename), scm_to_bool (ignore_case), scm_to_bool (ignore_paths), scm_to_file_archive_type (archive_type), - scm_to_utf8_stringn (password, NULL), + scm_to_utf8_string (password), retArchiveReference)); } - -extern "C" { - - void - init_file_system (void) - { - DEFINE_GSUBR ("IFileSystem_addFileArchive", 7, 0, 0, IFileSystem_addFileArchive); - } - +void +init_file_system (void) +{ + DEFINE_GSUBR ("IFileSystem_addFileArchive", 7, 0, 0, IFileSystem_addFileArchive); }