equal
deleted
inserted
replaced
69 * pointer. If it is NULL we are dealing with global variables so the address |
69 * pointer. If it is NULL we are dealing with global variables so the address |
70 * is taken. If non-null only the offset is stored in the union and we need |
70 * is taken. If non-null only the offset is stored in the union and we need |
71 * to add this to the address of the object */ |
71 * to add this to the address of the object */ |
72 static inline void *ini_get_variable(const SaveLoad *sld, const void *object) |
72 static inline void *ini_get_variable(const SaveLoad *sld, const void *object) |
73 { |
73 { |
74 return (object == NULL) ? sld->address : (byte*)object + (unsigned long)sld->address; |
74 return (object == NULL) ? sld->address : (byte*)object + (ptrdiff_t)sld->address; |
75 } |
75 } |
76 |
76 |
77 void IConsoleSetPatchSetting(const char *name, const char *value); |
77 void IConsoleSetPatchSetting(const char *name, const char *value); |
78 void IConsoleGetPatchSetting(const char *name); |
78 void IConsoleGetPatchSetting(const char *name); |
79 const SettingDesc *GetPatchFromName(const char *name, uint *i); |
79 const SettingDesc *GetPatchFromName(const char *name, uint *i); |