Re: [Vala] GIO, GVfs, custom isolated URI handler
- From: Daniel Espinosa <esodan gmail com>
- To: marcin saepia net
- Cc: gtk-list gnome org, Vala-list <vala-list gnome org>
- Subject: Re: [Vala] GIO, GVfs, custom isolated URI handler
- Date: Tue, 26 Jul 2016 00:50:44 -0000
May you need
https://developer.gnome.org/gio/stable/GMount.html
And if you are planning multi platform development, use file:// Uri instead
El 19 jul. 2016 3:17 a. m., "marcin saepia net" <marcin saepia net>
escribió:
Hello,
isn't what you are planning an overkill? Are you sure you need a
filesystem abstraction layer for something that is basically, calling
stat() a few times?
You may also think about using GResource for compiling all resources and
linking statically with the app (that makes sense if they are not huge, of
course).
Marcin
2016-07-13 11:39 GMT+02:00 Aleksandr Palamar <void995 gmail com>:
Hi, everyone.
I'm kind of new to GLib in general, but already have some basic
understanding of how it works. I'm planning to make a game using Vala
(which means GLib, GObject and GIO). One of the first things is to make
isolated VFS with different mount points on file system, each of has it's
own priority while looking for an existing file. I saw that GIO has
something for mounting and it's own GVfs, so may I extend/set up them in
some way to achieve my goal or that is totally another opera and I would
have to reinvent my own bicycle?
For example, while asking for file by URI resource://textures/blank.ktx it
will try to search for (sorted by priority):
~/.game/mod/textures/blank.ktx
~/.game/base/textures/blank.ktx
/opt/game/mod/textures/blank.ktx
/opt/game/base/textures/blank.ktx
_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list
_______________________________________________
gtk-list mailing list
gtk-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]