+++ /dev/null
-/* guile-irrlicht --- GNU Guile bindings for Irrlicht Engine
-
- Copyright (C) 2020 Javier Sancho <jsf@jsancho.org>
-
- 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
- <http://www.gnu.org/licenses/>.
-*/
-
-#include <irrlicht/irrlicht.h>
-#include <libguile.h>
-#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);
-}