Skip to content

Commit

Permalink
Fixed syscalls for Keyboard::layout_name() and Keyboard::layout_desc()
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed May 17, 2024
1 parent 88dea79 commit ef71197
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/rishka_syscalls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -721,22 +721,16 @@ size_t RishkaSyscall::I2C::bufsize(RishkaVM* vm) {
}

uint32_t RishkaSyscall::Keyboard::layout_name() {
auto name = (char*) String(
fabgl::PS2Controller::keyboard()
->getLayout()
->name
).c_str();
auto name = (char*) fabgl::PS2Controller::keyboard()
->getLayout()->name;

change_rt_strpass(name);
return strlen(name);
}

uint32_t RishkaSyscall::Keyboard::layout_desc() {
auto name = (char*) String(
fabgl::PS2Controller::keyboard()
->getLayout()
->desc
).c_str();
auto name = (char*) fabgl::PS2Controller::keyboard()
->getLayout()->desc;

change_rt_strpass(name);
return strlen(name);
Expand Down

0 comments on commit ef71197

Please sign in to comment.