Commit graph

13 commits

Author SHA1 Message Date
Andrei Alexeyev
513d613387
Consistent indentation: indent with tabs, align with spaces (#104)
I would've preferred to just go with 4-spaces for indent and no tabs,
but lao is a bit conservative about it. :^)

Still, this is a ton better than mixing different styles all over the
place, especially within the same file.
2018-01-12 20:26:07 +02:00
Andrei Alexeyev
485c9a8ed6
Happy New Year! 2018-01-04 19:14:31 +02:00
Andrei Alexeyev
29acd5f58a meson: intel intrinsics, various improvements 2017-12-21 03:58:54 +01:00
Andrei Alexeyev
3413bd92e7
many vfs improvements
* There's no distinction between "temp" and "perm" nodes anymore.
    All nodes are allocated with 1 reference belonging to the
    vfs_alloc() caller.

    * VFSNode pointers retrieved by any API that returns one (most
    notably vfs_locate) are guaranteed to have exactly one reference
    belonging to the caller. What this means is that you must always
    decref them when you're done using them.

    If you're implementing such an API (e.g. a custom locate), remember
    to incref any persistent nodes you return.

    * Passing a VFSNode* to anything that successfully consumes one (for
    example, vfs_mount) transfers ownership of the reference to the
    consumer. In other words, consumers do not incref your nodes, but
    they will decref them once they don't need them anymore. If you want
    to keep the node around, then you must incref it first.

    * Bunch of other stuff.

"Ownership" is an abstract concept in this context. Basically it just
means "cleanup responsibility".
2017-11-10 21:49:54 +02:00
makise-homura
5c82b2124c Made ZIP support optional; dropped requirements for CMake from 3.3 to 3.0.2 and libzip from required to optional >=1.0 2017-10-10 20:59:51 +03:00
Andrei Alexeyev
2038d3b201
Revert "merge pull request #86"
This reverts commit e9c4979eb9.
2017-10-09 00:33:45 +03:00
Igor Molchanov
e9c4979eb9 merge pull request #86
* Made ZIP support optional; dropped requirements for CMake from 3.3 to 3.0.2 and libzip from required to optional >=1.0

* Forgot to add PARENT_SCOPE

* LTO support made optional (by the way, corrected a typo in CheckAndSetFlags cmake file)

* Added RELEASE_BUILD check; -flto now used in RELEASE_BUILDs rather that NOT DEBUG_BUILDs.

* Changed STATUS to WARNING if no cmake or libzip suitable for compressing data found. Old cmake now disables only packaging, not ZIP support at all.

* Clarified some README things about BGM placement

* Added words about user-specific bgm directories
2017-10-08 14:46:29 +03:00
Andrei "Akari" Alexeyev
261ab0d7af
reorganize directory structure, fix minor vfs bugs 2017-09-27 14:16:16 +03:00
Andrei "Akari" Alexeyev
7c9e54a71d
update copyright and credits 2017-09-12 04:28:15 +03:00
Andrei "Akari" Alexeyev
22b7489101 vfs: load zipfiles in alphabetical order, handle failures gracefully 2017-04-28 13:06:31 +03:00
Andrei "Akari" Alexeyev
faa70794b2 vfs: transparent support for zip files + other improvements and fixes 2017-04-28 00:24:04 +03:00
Andrei "Akari" Alexeyev
8db701bc05 better representation API and error messages for union mounts 2017-04-27 12:10:49 +03:00
Andrei "Akari" Alexeyev
471f30083e WIP virtual filesystem 2017-04-20 05:02:22 +03:00