git @ Cat's Eye Technologies linapple / 04e19b4
Change the sense of the define, so that it can be defined in make. Chris Pressey 4 years ago
1 changed file(s) with 4 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
174174 }
175175
176176
177 #define REGISTRY_READ_ONLY 1
178
179177 void RegSaveKeyValue(char * NKey, char * NValue)
180178 {
181 #ifdef REGISTRY_READ_ONLY
182 printf("Attempt to set '%s' to '%s' ignored (registry is read-only)\n", NKey, NValue);
183 #else
179 #ifdef REGISTRY_WRITEABLE
184180 char MyStr[BUFSIZE];
185181 char line[BUFSIZE];
186182 char templine[BUFSIZE];
223219 fclose(tempf);
224220 // fflush(registry); // for chance... --bb
225221 // do not close registry, it should be open while emu working...
226 #endif
222 #else
223 printf("Attempt to set '%s' to '%s' ignored (registry is read-only)\n", NKey, NValue);
224 #endif /* REGISTRY_WRITEABLE */
227225 }
228226
229227 //===========================================================================