Skip to content

Commit

Permalink
fixed some shit
Browse files Browse the repository at this point in the history
  • Loading branch information
DeaSTL committed Dec 9, 2023
1 parent 72a4754 commit d48cead
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Lua/API.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

namespace Frate::LuaAPI {
void registerAPI(sol::state &lua) {
lua.set_function("format", [](const std::string &str, sol::table obj) {
std::string result = str;
for (const auto &[key, value] : obj) {
result = std::format(result, value.as<std::string>());
}
return result;
});
// lua.set_function("format", [](const std::string &str, sol::table obj) {
// std::string result = str;
// for (const auto &[key, value] : obj) {
// result = std::format(result, value.as<std::string>());
// }
// return result;
// });
lua.new_usertype<Command::ProjectPrompt>("ProjectPrompt",
"value", &Command::ProjectPrompt::value,
"default", &Command::ProjectPrompt::default_value,
Expand Down

0 comments on commit d48cead

Please sign in to comment.