Skip to content

Commit

Permalink
Merge branch 'a2-4am-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mach-kernel committed Feb 22, 2018
2 parents b5d413c + 6600cd9 commit a9dd04a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ Any and all contributions are welcome. Included is also a `cadius.pro` file you

## Changelog

#### 1.3
#### 1.3.1
- Resolves timestamp bugs in [#10](https://github.com/mach-kernel/cadius/issues/10). Thanks, @a2-4am!

#### 1.3.0
- Adds ability to specify a file's `type` and `auxtype` via the filename, resolving [#4](https://github.com/mach-kernel/cadius/issues/4). A big thank you to @JohnMBrooks for testing this PR!
- `REPLACEFILE` command, `DELETEFILE` support for type/auxtype suffix.

Expand Down
2 changes: 1 addition & 1 deletion Src/Main.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ int main(int argc, char *argv[])
verbose = 0;

/* Message Information */
printf("%s v 1.3, (c) Brutal Deluxe 2011-2013.\n",argv[0]);
printf("%s v 1.3.1, (c) Brutal Deluxe 2011-2013.\n",argv[0]);

/* Vérification des paramètres */
if(argc < 3)
Expand Down
4 changes: 2 additions & 2 deletions Src/os/posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ void os_GetFileCreationModificationDate(char *path, struct prodos_file *file) {
struct tm *time = localtime(&filestat.st_mtime);
if (time == NULL) return;

file->file_creation_date = BuildProdosDate(time->tm_mday, time->tm_mon, time->tm_year);
file->file_creation_date = BuildProdosDate(time->tm_mday, time->tm_mon + 1, time->tm_year + 1900);
file->file_creation_time = BuildProdosTime(time->tm_min, time->tm_hour);
file->file_modification_date = BuildProdosDate(time->tm_mday, time->tm_mon, time->tm_year);
file->file_modification_date = BuildProdosDate(time->tm_mday, time->tm_mon + 1, time->tm_year + 1900);
file->file_modification_time = BuildProdosTime(time->tm_min, time->tm_hour);
}

Expand Down

0 comments on commit a9dd04a

Please sign in to comment.