cinera.c: Set CollationBuffers.Theme

This commit is contained in:
Matt Mascarenhas 2018-06-12 20:21:58 +01:00
parent 0eeadd560b
commit 966d616b48
1 changed files with 4 additions and 3 deletions

View File

@ -16,7 +16,7 @@ typedef struct
version CINERA_APP_VERSION = { version CINERA_APP_VERSION = {
.Major = 0, .Major = 0,
.Minor = 5, .Minor = 5,
.Patch = 58 .Patch = 59
}; };
// TODO(matt): Copy in the DB 3 stuff from cinera_working.c // TODO(matt): Copy in the DB 3 stuff from cinera_working.c
@ -6490,8 +6490,9 @@ main(int ArgC, char **Args)
CopyStringNoFormat(CollationBuffers.ProjectID, sizeof(CollationBuffers.ProjectID), Config.ProjectID); CopyStringNoFormat(CollationBuffers.ProjectID, sizeof(CollationBuffers.ProjectID), Config.ProjectID);
if(!StringsDiffer(Config.Theme, "")) if(!StringsDiffer(Config.Theme, ""))
{ {
CopyStringNoFormat(CollationBuffers.Theme, sizeof(CollationBuffers.Theme), Config.ProjectID); CopyStringNoFormat(Config.Theme, sizeof(Config.Theme), Config.ProjectID);
} }
CopyStringNoFormat(CollationBuffers.Theme, sizeof(CollationBuffers.Theme), Config.Theme);
if(StringsDiffer(ProjectInfo[ProjectInfoIndex].FullName, "")) if(StringsDiffer(ProjectInfo[ProjectInfoIndex].FullName, ""))
{ {
CopyStringNoFormat(CollationBuffers.ProjectName, sizeof(CollationBuffers.ProjectName), ProjectInfo[ProjectInfoIndex].FullName); CopyStringNoFormat(CollationBuffers.ProjectName, sizeof(CollationBuffers.ProjectName), ProjectInfo[ProjectInfoIndex].FullName);
@ -6656,7 +6657,7 @@ main(int ArgC, char **Args)
Config.ProjectID, Config.ProjectID,
Config.DefaultMedium, Config.DefaultMedium,
StringsDiffer(Config.Theme, "") ? Config.Theme: Config.ProjectID, Config.Theme,
Config.ProjectDir, Config.ProjectDir,
Config.TemplatesDir, Config.TemplatesDir,