すくすくゴートうちゃん Android 版(黒歴史)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
665 B

  1. #module \
  2. Setting
  3. #define FILE_NAME ("setting.dat")
  4. ; ユーザ ID
  5. #const USER_ID_OFFSET 0
  6. #const USER_ID_SIZE 4
  7. ; ユーザのパスコード
  8. #const USER_PASSCODE_OFFSET (USER_ID_OFFSET + USER_ID_SIZE)
  9. #const USER_PASSCODE_SIZE 16
  10. #deffunc local \
  11. Load
  12. userId = 0
  13. SDim userPasscode, USER_PASSCODE_SIZE
  14. Exist FILE_NAME
  15. If strSize < 0 {
  16. Return
  17. }
  18. BLoad FILE_NAME, userId, USER_ID_SIZE, USER_ID_OFFSET
  19. BLoad FILE_NAME, userPasscode, USER_PASSCODE_SIZE, USER_PASSCODE_OFFSET
  20. Return
  21. #deffunc local \
  22. Save
  23. BSave FILE_NAME, userId, USER_ID_SIZE, USER_ID_OFFSET
  24. BSave FILE_NAME, userPasscode, USER_PASSCODE_SIZE, USER_PASSCODE_OFFSET
  25. Return
  26. #global