|
|
@@ -1,3 +1,6 @@ |
|
|
|
#ifndef __SETTING__ |
|
|
|
#define __SETTING__ |
|
|
|
|
|
|
|
#module \ |
|
|
|
Setting |
|
|
|
|
|
|
@@ -11,18 +14,26 @@ Setting |
|
|
|
#const USER_PASSCODE_OFFSET (USER_ID_OFFSET + USER_ID_SIZE) |
|
|
|
#const USER_PASSCODE_SIZE 16 |
|
|
|
|
|
|
|
; ユーザの引継ぎコード |
|
|
|
#const USER_INHERITANCE_CODE_OFFSET (USER_PASSCODE_OFFSET + USER_PASSCODE_SIZE) |
|
|
|
#const USER_INHERITANCE_CODE_SIZE 16 |
|
|
|
|
|
|
|
#deffunc local \ |
|
|
|
Load |
|
|
|
userId = 0 |
|
|
|
SDim userPasscode, USER_PASSCODE_SIZE |
|
|
|
SDim userInheritanceCode, USER_INHERITANCE_CODE_SIZE |
|
|
|
|
|
|
|
Exist FILE_NAME |
|
|
|
If strSize < 0 { |
|
|
|
Save |
|
|
|
|
|
|
|
Return |
|
|
|
} |
|
|
|
|
|
|
|
BLoad FILE_NAME, userId, USER_ID_SIZE, USER_ID_OFFSET |
|
|
|
BLoad FILE_NAME, userPasscode, USER_PASSCODE_SIZE, USER_PASSCODE_OFFSET |
|
|
|
BLoad FILE_NAME, userInheritanceCode, USER_INHERITANCE_CODE_SIZE, USER_INHERITANCE_CODE_OFFSET |
|
|
|
|
|
|
|
Return |
|
|
|
|
|
|
@@ -30,8 +41,13 @@ Load |
|
|
|
Save |
|
|
|
BSave FILE_NAME, userId, USER_ID_SIZE, USER_ID_OFFSET |
|
|
|
BSave FILE_NAME, userPasscode, USER_PASSCODE_SIZE, USER_PASSCODE_OFFSET |
|
|
|
BSave FILE_NAME, userInheritanceCode, USER_INHERITANCE_CODE_SIZE, USER_INHERITANCE_CODE_OFFSET |
|
|
|
|
|
|
|
Load |
|
|
|
|
|
|
|
Return |
|
|
|
|
|
|
|
#global |
|
|
|
|
|
|
|
#endif ; not __SETTING__ |
|
|
|
|