Начните вводить название — например, MoreHead, Sodium или PEAK

nativefs — иконка
Обложка BalatroМод для Balatro

nativefs

от metherul

nativefs replicates a subset of the love.filesystem API, but without LÖVE's path restrictions.

  • Легендарный
  • 86,7 тыс. скачиваний
  • Версия 1.0.1
  • Обновлён 17 апреля 2024
  • Не обновлялся больше года
  • Библиотека

О моде nativefs

nativefs — мод для Balatro (Балатро) от автора metherul. nativefs replicates a subset of the love.filesystem API, but without LÖVE's path restrictions.

Его скачали 86,7 тыс. раз: это 5-е место среди модов Balatro в нашем каталоге, редкость — «легендарный» (топ-5% по скачиваниям). Мод давно не обновлялся — проверьте совместимость с текущей версией игры, актуальная версия — 1.0.1.

Для работы ему нужны: lovely.

Полное описание nativefs

Текст автора на языке оригинала

This is a Thunderstore package mirror of EngineerSmith's nativefs repository with an added lovely patch.

...

This is a re-host as previously it was taken down by the original developer. Pull requests for fixes are welcome!

Native filesystem for LÖVE

nativefs replicates a subset of the love.filesystem API, but without LÖVE's path restrictions.

Available functions

nativefs

Links in this list point to their love.filesystem counterparts. All functions are designed to behave the same way as love.filesystem, but without the path restrictions that LÖVE imposes; i.e., they allow full access to the filesystem.

Additional nativefs functions

Functions that are not available in love.filesystem:

  • nativefs.getDirectoryItemsInfo(path)

Returns a list of items in a directory that contains not only the names, but also the information returned by getInfo for each item. The return value is a list of files and directories, in which each entry is a table as returned by getInfo, with an additional name field for each entry. Using this function is faster than calling getInfo separately for each item.

  • nativefs.getDriveList()

Returns a table with all populated drive letters on Windows ({ 'C:/', 'D:/', ...}). On systems that don't use drive letters, a table with the single entry / is returned.

  • nativefs.setWorkingDirectory(directory)

Changes the working directory.

File

nativefs.newFile returns a File object that provides these functions:

Function names in this list are links to their LÖVE File counterparts. File is designed to work the same way as LÖVE's File objects.

Example

local nativefs = require("nativefs")

-- Prints all information on files in C:\Windows
local files = nativefs.getDirectoryItemsInfo("C:/Windows")
for i = 1, #files do
  if files[i].type == "file" then
    local info = nativefs.getInfo("C:/Windows/" .. files[i].name)
    print(i .. ": " .. files[i] .. " : Type:" .. info.type .. ", Size:" .. tostring(info.size) .. ", last modified:" .. tostring(info.modtime))
  end
end

License

Copyright 2020 megagrump@pm.me

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Нужно для работы

В r2modman ставится автоматически

Моды, которым нужен nativefs

3 в каталоге

JSUtils — иконка

JSUtils

Lets mods add item prototypes, descriptions and custom sprites with simple json configuration files

Легендарный19,1 тыс.Библиотека

Ankh — иконка

Ankh

A speedrun timer and autosplitter for Balatro.

Эпический4,8 тыс.Инструменты

DinoDeck — иконка

DinoDeck

Inspiré du BoardGame 'Chaos pour un oeuf' de Rubika

Редкий3,2 тыс.

Как установить nativefs

Файл скачивается с официального сервера Thunderstore, без перезаливов и сторонних установщиков

Подробная инструкция для Balatro
  1. Скачайте менеджер модов r2modman (или Gale) и выберите в нём игру Balatro.
  2. Создайте профиль — так моды не смешаются с чистой версией игры.
  3. Найдите «nativefs» во вкладке Online и нажмите Download — Lovely и все зависимости подтянутся сами.
  4. Нажмите «Start modded» — игра запустится с модами.
  5. Чтобы сыграть без модов, запустите игру как обычно из Steam — r2modman не трогает чистую версию игры.
Вы автор мода? Поставьте ссылку на русское описание

Вставьте значок в описание на Thunderstore, в README или в Discord — русскоязычные игроки сразу попадут на страницу с переводом и инструкцией.

Описание на русском — Модка
Markdown[![Описание на русском — Модка](https://modka.app/badge.png)](https://modka.app/balatro/metherul-nativefs/)
HTML<a href="https://modka.app/balatro/metherul-nativefs/"><img src="https://modka.app/badge.png" alt="Описание на русском — Модка" height="44"></a>
Steam (BBCode)[url=https://modka.app/balatro/metherul-nativefs/]Описание на русском — Модка[/url]

Частые вопросы о nativefs

Как установить nativefs?

Скачайте менеджер модов r2modman (или Gale) и выберите в нём игру Balatro. Создайте профиль — так моды не смешаются с чистой версией игры. Найдите «nativefs» во вкладке Online и нажмите Download — Lovely и все зависимости подтянутся сами. Нажмите «Start modded» — игра запустится с модами. Чтобы сыграть без модов, запустите игру как обычно из Steam — r2modman не трогает чистую версию игры.

Безопасен ли nativefs?

Файл скачивается с официального сервера Thunderstore, куда его загрузил metherul. Мы не перезаливаем и не изменяем моды.

Что нужно для работы nativefs?

Установите вместе с ним: lovely. В менеджере модов зависимости подтягиваются автоматически.

Когда nativefs обновлялся последний раз?

17 апреля 2024, актуальная версия — 1.0.1. Это больше года назад: перед установкой проверьте, работает ли мод на текущей версии игры.

Похожие моды

Все моды на Balatro
MoreSpeed — иконка

MoreSpeed

Add more speed options

Легендарный56,1 тыс.

MikasModCollection — иконка

MikasModCollection

A content mod adding 60 Jokers and more!

Легендарный40,6 тыс.

Deck Creator — иконка

Deck Creator

GUI mod for creating, saving, loading, and sharing your own customizable decks!

Легендарный21,2 тыс.Инструменты

ThemedJokers — иконка

ThemedJokers

A bunch of themed Jokers that synergize together

Эпический18,2 тыс.

ZokersModMenu — иконка

ZokersModMenu

In-game mod menu for Balatro. Press C to open. Give yourself any joker, card, voucher or tag, add money, set starting stats and items, and build custom decks. Works with modded content.

Эпический17,6 тыс.Инструменты

Mor Jokers — иконка

Mor Jokers

Add Mor Jokers to Balatro

Эпический14,7 тыс.