Exemplo n.º 1
0
static int plus256k_deactivate(void)
{
    if (!util_check_null_string(plus256k_filename)) {
        if (util_file_save(plus256k_filename, plus256k_ram, 0x40000) < 0) {
            log_message(plus256k_log, "Writing PLUS256K image %s failed.", plus256k_filename);
            return -1;
        }
        log_message(plus256k_log, "Writing PLUS256K image %s.", plus256k_filename);
    }
    vicii_set_ram_base(mem_ram);
    lib_free(plus256k_ram);
    plus256k_ram = NULL;
    remove_cpu_lines_lock();
    return 0;
}
Exemplo n.º 2
0
static int plus60k_deactivate(void)
{
	if (!util_check_null_string(plus60k_filename))
	{
		if (util_file_save(plus60k_filename, plus60k_ram, 0xf000) < 0)
		{
			printf("INFO: Writing PLUS60K image %s failed.\n", plus60k_filename);
			return -1;
		}
		printf("INFO: Writing PLUS60K image %s.\n", plus60k_filename);
	}
	lib_free(plus60k_ram);
	plus60k_ram = NULL;
	remove_cpu_lines_lock();
	return 0;
}