void fs_send_file_and_debug_info(const gchar *filename) { const gchar *ext; FileContent *metadata; fs_send_file(filename); ext = strrchr(filename, '.'); if (ext) { gchar *temp; *(char *)ext = 0; temp = g_strconcat(filename, ".dbg", NULL); #ifdef WIN32 symfile = g_locale_from_utf8(temp,-1,NULL,NULL,NULL); g_free(temp); #else symfile = temp; #endif *(char *)ext = '.'; } metadata = tifiles_content_create_regular(CALC_TI89); if (!tifiles_file_read_regular(filename, metadata)) { if (metadata->num_entries > 0) { int handle = sym_find_handle (metadata->entries[0]->folder, metadata->entries[0]->name); if (handle) ti68k_bkpt_add_pgmentry (handle); } } tifiles_content_delete_regular(metadata); }
bool TiEmuDCOP::send_file(QString filename) { if (img_loaded && !engine_is_stopped()) { engine_stop(); fs_send_file(filename.local8Bit()); engine_start(); return true; } else return false; }
bool TiEmuDCOP::send_files(QStringList filenames) { if (img_loaded && !engine_is_stopped()) { engine_stop(); for (QStringList::Iterator it = filenames.begin(); it != filenames.end(); ++it) fs_send_file((*it).local8Bit()); engine_start(); return true; } else return false; }
int fs_send_files(gchar **filenames) { gchar **ptr; int i, l; // check extension and send for(ptr = filenames, l = 0; *ptr; ptr++, l++); for(ptr = filenames, i = 0; *ptr; ptr++, i++) { if(!tifiles_file_is_ti(*ptr) || (!tifiles_calc_is_ti9x(tifiles_file_get_model(*ptr)) && !tifiles_file_is_tigroup(*ptr))) { msg_box1(_("Error"), _("This file is not a valid TI file.")); g_strfreev(filenames); return -1; } fs_send_file(*ptr); } return 0; }
void fs_send_file_and_debug_info(const gchar *filename) { fs_send_file(filename); }