| | |
| | | list_subfolder(folder, folder); |
| | | } |
| | | |
| | | void test_list_files() |
| | | void EMSCRIPTEN_KEEPALIVE test_list_files() |
| | | { |
| | | std::cout << "Listing files\n" ; |
| | | list_folder(userDataPath); |
| | |
| | | std::cout << "File fetch failed\n"; |
| | | } |
| | | |
| | | void test_async_fetch(const char* url) |
| | | void EMSCRIPTEN_KEEPALIVE test_async_fetch(const char* url) |
| | | { |
| | | std::cout << "Fetch file: " << url << "\n"; |
| | | humble_fetch_asset_data(url, NULL, on_get_file, on_fail_file); |
| | | } |
| | | |
| | | void test_demo_end() |
| | | void EMSCRIPTEN_KEEPALIVE test_demo_end() |
| | | { |
| | | std::cout << "Demo has ended\n"; |
| | | humble_demo_ended(); |