Create dumps directory if it doesn't exist.
This commit is contained in:
parent
d736010d3b
commit
d03afbbd84
@ -67,7 +67,7 @@ class CopyFile(Command):
|
||||
shutil.copy(self.fromFile, self.toPath)
|
||||
|
||||
|
||||
folders = [['addons', 'sourcemod', 'extensions'], ['addons', 'sourcemod', 'data', 'dumps']]
|
||||
folders = [['addons', 'sourcemod', 'extensions']]
|
||||
|
||||
#Setup
|
||||
job.AddCommand(DestroyPath(os.path.join(AMBuild.outputFolder, 'package')))
|
||||
|
@ -136,6 +136,16 @@ bool Accelerator::SDK_OnLoad(char *error, size_t maxlength, bool late)
|
||||
|
||||
g_pSM->BuildPath(Path_SM, buffer, 255, "data/dumps");
|
||||
|
||||
if (!libsys->IsPathDirectory(buffer))
|
||||
{
|
||||
if (!libsys->CreateFolder(buffer))
|
||||
{
|
||||
if (error)
|
||||
g_pSM->Format(error, maxlength, "%s didn't exist and we couldn't create it :(", buffer);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
google_breakpad::MinidumpDescriptor descriptor(buffer);
|
||||
handler = new google_breakpad::ExceptionHandler(descriptor, NULL, dumpCallback, NULL, true, -1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user