mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
hot, kinky consistency
This commit is contained in:
parent
7f7c51ae33
commit
c5e637c85b
|
@ -19,7 +19,7 @@ struct config {
|
|||
int main() {
|
||||
sol::state lua;
|
||||
config screen;
|
||||
lua.open_file("config.lua");
|
||||
lua.script_file("config.lua");
|
||||
screen.name = lua.get<std::string>("name");
|
||||
screen.width = lua.get<int>("width");
|
||||
screen.height = lua.get<int>("height");
|
||||
|
|
Loading…
Reference in New Issue
Block a user