Changeset 681
- Timestamp:
- Mar 3, 2013, 5:37:58 AM (12 years ago)
- Location:
- Daodan/src
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/src/Daodan.c
r677 r681 556 556 char v6[512]; // [sp+0h] [bp-100h]@1 557 557 FILE* UUgError_WarningFile = *_UUgError_WarningFile; 558 sprintf_s( 559 v6, 512, 560 "Error %x reported from File: %s, Line: %d (message follows) \r\n%s", 561 errornum, 562 filename, 563 linenumber, 564 message); 565 566 if ( UUgError_WarningFile 567 || (UUgError_WarningFile = oni_fopen("debugger.txt", "wb"), UUgError_WarningFile ) ) 568 { 569 oni_fprintf(UUgError_WarningFile, "%s\r\n", v6); 570 oni_fflush(UUgError_WarningFile); 558 559 if (filename && message && (strlen(filename)+strlen(message))<420) { 560 sprintf( 561 v6, 562 "Error %x reported from File: %s, Line: %d (message follows) \r\n%s", 563 errornum, 564 filename, 565 linenumber, 566 message); 567 568 if ( UUgError_WarningFile 569 || (UUgError_WarningFile = oni_fopen("debugger.txt", "wb"), UUgError_WarningFile ) ) 570 { 571 oni_fprintf(UUgError_WarningFile, "%s\r\n", v6); 572 oni_fflush(UUgError_WarningFile); 573 } 571 574 } 572 575 //oni_fprintf(stdout, v6); -
Daodan/src/Daodan_BSL.c
r677 r681 864 864 char argfmt2[512]; 865 865 uint16_t errornum; 866 sprintf_s(argfmt2, 512, "%s [|]", argfmt); 867 errornum = SLrScript_Command_Register_ReturnType(name, desc, argfmt2, type, callback); 868 if(errornum) 869 { 870 DDrStartupMessage("Registration of script command %s failed with error %i", name, errornum); 871 } 872 866 if (argfmt && strlen(argfmt) < 507) { 867 sprintf(argfmt2, "%s [|]", argfmt); 868 errornum = SLrScript_Command_Register_ReturnType(name, desc, argfmt2, type, callback); 869 if(errornum) 870 { 871 DDrStartupMessage("Registration of script command %s failed with error %i", name, errornum); 872 } 873 } else { 874 DDrStartupMessage("Registration of script command %s failed because of a too long argfmt", name); 875 } 873 876 } 874 877 -
Daodan/src/Daodan_Utility.c
r677 r681 160 160 if(clipboardText && strlen(clipboardText) + charsUsed < 502) 161 161 { 162 strcpy_s( cons->text_entries[0].text + charsUsed, 502 - charsUsed - 1,clipboardText);162 strcpy_s( cons->text_entries[0].text + charsUsed, clipboardText); 163 163 lastPasteTime = ONgGameState->GameTime; 164 164 }
Note:
See TracChangeset
for help on using the changeset viewer.