X-Git-Url: https://git.jsancho.org/?p=guile-irrlicht.git;a=blobdiff_plain;f=src%2Ffile-system.cpp;fp=src%2Ffile-system.cpp;h=0000000000000000000000000000000000000000;hp=30a89ce5e4aaf368a7779b2e4d98a0534b06dc11;hb=d392bfc335713faab44275624d8fd78139880975;hpb=3bb58c2b45af12c0f9c9eac648e67ac6fa90e104 diff --git a/src/file-system.cpp b/src/file-system.cpp deleted file mode 100644 index 30a89ce..0000000 --- a/src/file-system.cpp +++ /dev/null @@ -1,67 +0,0 @@ -/* guile-irrlicht --- GNU Guile bindings for Irrlicht Engine - - Copyright (C) 2020 Javier Sancho - - This file is part of guile-irrlicht. - - guile-irrlicht is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as - published by the Free Software Foundation; either version 3 of the - License, or (at your option) any later version. - - guile-irrlicht is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with guile-irrlicht. If not, see - . -*/ - -#include -#include -#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, - SCM ignore_case, - SCM ignore_paths, - SCM archive_type, - SCM password, - SCM ret_archive) -{ - io::IFileArchive* retArchive = (io::IFileArchive*)scm_to_irr_pointer (ret_archive); - io::IFileArchive** retArchiveReference = 0; - if (retArchive != NULL) - { - retArchiveReference = &retArchive; - } - - char* cfilename = scm_to_utf8_string (filename); - char* cpassword = scm_to_utf8_string (password); - bool result = - (((io::IFileSystem*)scm_to_irr_pointer (file_system))-> - addFileArchive (cfilename, - scm_to_bool (ignore_case), - scm_to_bool (ignore_paths), - scm_to_file_archive_type (archive_type), - cpassword, - retArchiveReference)); - - free (cfilename); - free (cpassword); - return scm_from_bool (result); -} - -void -init_file_system (void) -{ - DEFINE_GSUBR ("IFileSystem_addFileArchive", 7, 0, 0, IFileSystem_addFileArchive); -}