|
|
@@ -20,9 +20,9 @@ Setting |
|
|
|
|
|
|
|
#deffunc local \ |
|
|
|
Load |
|
|
|
userId = 0 |
|
|
|
SDim userPasscode, USER_PASSCODE_SIZE |
|
|
|
SDim userInheritanceCode, USER_INHERITANCE_CODE_SIZE |
|
|
|
id@User = 0 |
|
|
|
SDim pass@User, USER_PASSCODE_SIZE |
|
|
|
SDim inheritanceCode@User, USER_INHERITANCE_CODE_SIZE |
|
|
|
|
|
|
|
Exist FILE_NAME |
|
|
|
If strSize < 0 { |
|
|
@@ -31,17 +31,24 @@ Load |
|
|
|
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 |
|
|
|
BLoad FILE_NAME, id@User, USER_ID_SIZE, USER_ID_OFFSET |
|
|
|
BLoad FILE_NAME, pass@User, USER_PASSCODE_SIZE, USER_PASSCODE_OFFSET |
|
|
|
BLoad FILE_NAME, inheritanceCode@User, USER_INHERITANCE_CODE_SIZE, USER_INHERITANCE_CODE_OFFSET |
|
|
|
|
|
|
|
Return |
|
|
|
|
|
|
|
#deffunc local \ |
|
|
|
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 |
|
|
|
Save \ |
|
|
|
local l_dummy |
|
|
|
Exist FILE_NAME |
|
|
|
If strSize < 0 { |
|
|
|
l_dummy = "" |
|
|
|
BSave FILE_NAME, l_dummy, 0 |
|
|
|
} |
|
|
|
|
|
|
|
BSave FILE_NAME, id@User, USER_ID_SIZE, USER_ID_OFFSET |
|
|
|
BSave FILE_NAME, pass@User, USER_PASSCODE_SIZE, USER_PASSCODE_OFFSET |
|
|
|
BSave FILE_NAME, inheritanceCode@User, USER_INHERITANCE_CODE_SIZE, USER_INHERITANCE_CODE_OFFSET |
|
|
|
|
|
|
|
Load |
|
|
|
|
|
|
|