This commit is contained in:
RogueMaster
2022-10-07 02:40:45 -04:00
parent f18ae0927d
commit ac387f51cc
4 changed files with 9 additions and 9 deletions

View File

@@ -101,7 +101,7 @@ static int32_t chip8_worker(void* context) {
return 0; return 0;
} }
Chip8Emulator* chip8_make_emulator(string_t file_path) { Chip8Emulator* chip8_make_emulator(FuriString* file_path) {
furi_assert(file_path); furi_assert(file_path);
FURI_LOG_I("CHIP8", "make emulator, file_path=", furi_string_get_cstr(file_path)); FURI_LOG_I("CHIP8", "make emulator, file_path=", furi_string_get_cstr(file_path));

View File

@@ -25,7 +25,7 @@ typedef struct {
t_chip8_state* t_chip8_state; t_chip8_state* t_chip8_state;
} Chip8State; } Chip8State;
Chip8Emulator* chip8_make_emulator(string_t file_path); Chip8Emulator* chip8_make_emulator(FuriString* file_path);
void chip8_close_emulator(Chip8Emulator* chip8); void chip8_close_emulator(Chip8Emulator* chip8);
void chip8_set_back_pressed(Chip8Emulator* chip8); void chip8_set_back_pressed(Chip8Emulator* chip8);

View File

@@ -1600,7 +1600,7 @@ int32_t tanks_game_app(void* p) {
subghz_tx_rx_worker_write( subghz_tx_rx_worker_write(
subghz_txrx, subghz_txrx,
(uint8_t*)string_get_cstr(goesUp), (uint8_t*)string_get_cstr(goesUp),
strlen(string_get_cstr(goesUp))); strlen(furi_string_get_cstr(goesUp)));
} else { } else {
tanks_state->p1->moving = true; tanks_state->p1->moving = true;
@@ -1624,7 +1624,7 @@ int32_t tanks_game_app(void* p) {
subghz_tx_rx_worker_write( subghz_tx_rx_worker_write(
subghz_txrx, subghz_txrx,
(uint8_t*)string_get_cstr(goesDown), (uint8_t*)string_get_cstr(goesDown),
strlen(string_get_cstr(goesDown))); strlen(furi_string_get_cstr(goesDown)));
} else { } else {
tanks_state->p1->moving = true; tanks_state->p1->moving = true;
tanks_state->p1->direction = DirectionDown; tanks_state->p1->direction = DirectionDown;
@@ -1641,7 +1641,7 @@ int32_t tanks_game_app(void* p) {
subghz_tx_rx_worker_write( subghz_tx_rx_worker_write(
subghz_txrx, subghz_txrx,
(uint8_t*)string_get_cstr(goesRight), (uint8_t*)string_get_cstr(goesRight),
strlen(string_get_cstr(goesRight))); strlen(furi_string_get_cstr(goesRight)));
} else { } else {
tanks_state->p1->moving = true; tanks_state->p1->moving = true;
tanks_state->p1->direction = DirectionRight; tanks_state->p1->direction = DirectionRight;
@@ -1658,7 +1658,7 @@ int32_t tanks_game_app(void* p) {
subghz_tx_rx_worker_write( subghz_tx_rx_worker_write(
subghz_txrx, subghz_txrx,
(uint8_t*)string_get_cstr(goesLeft), (uint8_t*)string_get_cstr(goesLeft),
strlen(string_get_cstr(goesLeft))); strlen(furi_string_get_cstr(goesLeft)));
} else { } else {
tanks_state->p1->moving = true; tanks_state->p1->moving = true;
tanks_state->p1->direction = DirectionLeft; tanks_state->p1->direction = DirectionLeft;
@@ -1691,7 +1691,7 @@ int32_t tanks_game_app(void* p) {
subghz_tx_rx_worker_write( subghz_tx_rx_worker_write(
subghz_txrx, subghz_txrx,
(uint8_t*)string_get_cstr(shoots), (uint8_t*)string_get_cstr(shoots),
strlen(string_get_cstr(shoots))); strlen(furi_string_get_cstr(shoots)));
} else { } else {
tanks_state->p1->shooting = true; tanks_state->p1->shooting = true;
} }
@@ -1753,7 +1753,7 @@ int32_t tanks_game_app(void* p) {
subghz_tx_rx_worker_write( subghz_tx_rx_worker_write(
subghz_txrx, subghz_txrx,
(uint8_t*)string_get_cstr(serializedData), (uint8_t*)string_get_cstr(serializedData),
strlen(string_get_cstr(serializedData))); strlen(furi_string_get_cstr(serializedData)));
tanks_state->sent++; tanks_state->sent++;
} else if(tanks_state->state == GameStateSingle) { } else if(tanks_state->state == GameStateSingle) {

View File

@@ -165,7 +165,7 @@ void namechanger_on_system_start() {
furi_string_free(name); furi_string_free(name);
} else { } else {
//set name from file //set name from file
furi_hal_version_set_custom_name(string_get_cstr(data)); furi_hal_version_set_custom_name(furi_string_get_cstr(data));
} }
} }