Skip to content

Commit

Permalink
Fixed missing os.date specifiers on Windows
Browse files Browse the repository at this point in the history
Closes #352
  • Loading branch information
MCJack123 committed Mar 29, 2024
1 parent a601d2c commit b5abf8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion craftos2-lua
Submodule craftos2-lua updated 1 files
+1 −1 src/loslib.c
2 changes: 1 addition & 1 deletion src/runtime.cpp
Expand Up @@ -425,7 +425,7 @@ bool addVirtualMount(Computer * comp, const FileEntry& vfs, const std::string& c
else if (!std::isdigit(c)) {end = -1; break;}
end++;
}
if (end > 0 && std::get<0>(v) == pathc && *comp->virtualMounts[std::stoi(path.native().substr(0, end))] == vfs) return false;
if (end > 0 && std::get<0>(v) == pathc && comp->virtualMounts[std::stoi(path.native().substr(0, end))] != NULL && *comp->virtualMounts[std::stoi(path.native().substr(0, end))] == vfs) return false;
}
comp->virtualMounts[idx] = &vfs;
comp->mounts.push_back(std::make_tuple(std::list<std::string>(pathc), path_t(std::to_string(idx) + ":", path_t::format::generic_format), true));
Expand Down

0 comments on commit b5abf8a

Please sign in to comment.