Minor change to the Windows Scenario Editor:

Previously, when saving a scenario, it wrote uninitialized variables in lieu of the hashed/encrypted values that the original editor used for password checking. (Stored in flag_a, flag_b, etc.) That made it incompatible with earlier editors (such as Super Editor), which expected a password of "0", which is to say, data hashed using 0 as the argument.

This commit just adds the old password code back in, and saving now gives all scenarios a password of "0". Loading behavior is still unchanged.

git-svn-id: http://openexile.googlecode.com/svn/trunk@163 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
Icelizarrd
2011-06-20 05:20:53 +00:00
parent 0a5343e81d
commit e4cc4e93e9
2 changed files with 142 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
#ifndef _TFILEIO_H
#define _TFILEIO_H
void Get_Path(char* path);
void file_initialize();
void save_scenario();
@@ -38,4 +38,7 @@ void flip_rect(RECT16 *s);
void alter_rect(RECT16 *r);
void object_scenario_data_dump();
void start_outdoor_data_dump();
// relics from the past--for temporary backwards compatibility with older scenario editor.
short init_data(short flag);
short town_s(short flag);