badvision / esp32_nesemu

Based on espressif's nesemu port with MittisBootloop's "Pretty Effect" menu. Supports PSX Controller and either SD Card or SPIFFS [Platform.IO]
41 stars 9 forks source link

struct stat st - incomplete type is not allowedC/C++ #6

Open Jailin opened 1 year ago

Jailin commented 1 year ago

`esp_err_t registerSpiffs() { esp_vfs_spiffs_conf_t conf = { .base_path = "/spiffs", .partition_label = NULL, .max_files = 32, .format_if_mount_failed = false};

esp_err_t ret = esp_vfs_spiffs_register(&conf);

ASSERT_ESP_OK(ret, "Failed to mount SPIFFS partition.");
struct stat st;
if (stat(ROM_LIST, &st) != 0)
{
    printf("Cannot locate rom list in %s", ROM_LIST);
}
return ret;

}`

paulo101977 commented 1 month ago

`esp_err_t registerSpiffs() { esp_vfs_spiffs_conf_t conf = { .base_path = "/spiffs", .partition_label = NULL, .max_files = 32, .format_if_mount_failed = false};

esp_err_t ret = esp_vfs_spiffs_register(&conf);

ASSERT_ESP_OK(ret, "Failed to mount SPIFFS partition.");
struct stat st;
if (stat(ROM_LIST, &st) != 0)
{
  printf("Cannot locate rom list in %s", ROM_LIST);
}
return ret;

}`

I'm continuing the project. I've already managed to compile it. I'm just making an error with images, but I'm almost solving it too. Follow the link: https://github.com/paulo101977/esp32_nesemu