mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2025-04-19 01:32:58 +02:00
more trace logging in filesystem
This commit is contained in:
parent
12b0a90ad0
commit
597a98c3b5
@ -63,6 +63,7 @@ bool FilesystemService::enable(Engine&, std::vector<UpdateStrategies::TaskInfo>&
|
|||||||
|
|
||||||
// add base path to search tree
|
// add base path to search tree
|
||||||
if (_try_mount_base) {
|
if (_try_mount_base) {
|
||||||
|
LOG_TRACE("mounting physfs base dir: {}", PHYSFS_getBaseDir());
|
||||||
if (!PHYSFS_mount(PHYSFS_getBaseDir(), NULL, 0)) {
|
if (!PHYSFS_mount(PHYSFS_getBaseDir(), NULL, 0)) {
|
||||||
LOG_ERROR("mounting physfs base dir: {}", PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()));
|
LOG_ERROR("mounting physfs base dir: {}", PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()));
|
||||||
}
|
}
|
||||||
@ -70,6 +71,7 @@ bool FilesystemService::enable(Engine&, std::vector<UpdateStrategies::TaskInfo>&
|
|||||||
|
|
||||||
// mount self (exec) :P
|
// mount self (exec) :P
|
||||||
if (_try_mount_self) {
|
if (_try_mount_self) {
|
||||||
|
LOG_TRACE("mounting self");
|
||||||
if (PHYSFS_mount(_argv0, "/", 1)) {
|
if (PHYSFS_mount(_argv0, "/", 1)) {
|
||||||
LOG_INFO("mounted self!!");
|
LOG_INFO("mounted self!!");
|
||||||
}
|
}
|
||||||
@ -86,6 +88,7 @@ bool FilesystemService::enable(Engine&, std::vector<UpdateStrategies::TaskInfo>&
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const auto&[archive, mount_point, append] : _try_mount_list) {
|
for (const auto&[archive, mount_point, append] : _try_mount_list) {
|
||||||
|
LOG_TRACE("mounting physfs userdefined archive: '{}' '{}' {}", archive, mount_point, append);
|
||||||
if (!PHYSFS_mount(archive.c_str(), mount_point.c_str(), append?1:0)) {
|
if (!PHYSFS_mount(archive.c_str(), mount_point.c_str(), append?1:0)) {
|
||||||
LOG_ERROR("mounting physfs userdefined archive: {}", PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()));
|
LOG_ERROR("mounting physfs userdefined archive: {}", PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user