1 #include "load/angband-version-comparer.h"
2 #include "world/world.h"
5 * @brief 馬鹿馬鹿蛮怒のバージョン比較処理 / This function determines if the version of the savefile currently being read is older than version
6 * "major.minor.patch.extra".
7 * @param major メジャーバージョン値
8 * @param minor マイナーバージョン値
9 * @param patch パッチバージョン値
10 * @param extra エクストラパージョン値
11 * @return 現在のバージョンより値が古いならtrue
13 bool h_older_than(byte major, byte minor, byte patch, byte extra)
15 if (current_world_ptr->h_ver_major < major)
17 if (current_world_ptr->h_ver_major > major)
20 if (current_world_ptr->h_ver_minor < minor)
22 if (current_world_ptr->h_ver_minor > minor)
25 if (current_world_ptr->h_ver_patch < patch)
27 if (current_world_ptr->h_ver_patch > patch)
30 if (current_world_ptr->h_ver_extra < extra)
32 if (current_world_ptr->h_ver_extra > extra)
39 * @brief Zangbandのバージョン比較処理 / The above function, adapted for Zangband
43 * @return 現在のバージョンより値が古いならtrue
45 bool z_older_than(byte x, byte y, byte z)
47 if (current_world_ptr->z_major < x)
49 if (current_world_ptr->z_major > x)
52 if (current_world_ptr->z_minor < y)
54 if (current_world_ptr->z_minor > y)
57 if (current_world_ptr->z_patch < z)
59 if (current_world_ptr->z_patch > z)