- Fixed the bug that prevented launching from the Finder

- Wrote almost all the code for saving and loading a new-format party file, plus code to recognize the format of a file.
(Windows saves should also be supported now)

git-svn-id: http://openexile.googlecode.com/svn/trunk@50 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
2009-05-04 20:10:12 +00:00
parent 1cbb12e1b8
commit 388cb04602
36 changed files with 1251 additions and 145 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 299 KiB

After

Width:  |  Height:  |  Size: 299 KiB

View File

@@ -1464,8 +1464,8 @@ void put_item_info_in_dlog() {
cdsin(818,52,store_which_item);
CDST(818,2,store_item.full_name);
CDST(818,3,store_item.name);
if (store_item.graphic_num >= 150)
csp(818,49,store_item.graphic_num % 150,PICT_CUSTOM + PICT_ITEM);
if (store_item.graphic_num >= 1000) // was 150
csp(818,49,store_item.graphic_num % 1000,PICT_CUSTOM + PICT_ITEM);
else csp(818,49,/*1800 + */store_item.graphic_num,PICT_ITEM);
CDSN(818,4,store_item.graphic_num);
cd_set_led_range(818,18,45,store_item.variety);
@@ -1567,10 +1567,8 @@ void edit_item_type_event_filter (short item_hit) {
case 56:
if (save_item_info() == false) break;
i = choose_graphic(/*1800,1922*/0,PICT_N_ITEM,store_item.graphic_num/* + 1800*/,PICT_ITEM,818);
if (i >= 0) {
store_item.graphic_num = i - 1800;
}
else break;
if (i < 0) break;
store_item.graphic_num = i;
put_item_info_in_dlog();
break;
case 69:

View File

@@ -321,8 +321,8 @@ void put_placed_item_in_dlog() {
else cd_set_led(836,14,0);
i = scenario.scen_items[store_placed_item.code].graphic_num;
if (i >= 150) // was 1000
csp(836,4,i % 150,PICT_CUSTOM + PICT_ITEM);
if (i >= 1000) // was 1000, then was 150
csp(836,4,i % 1000,PICT_CUSTOM + PICT_ITEM);
else csp(836,4,/*1800 + */i,PICT_ITEM);
}
bool get_placed_item_in_dlog() {