Erik Andrén Zachrisson
|
ce7be4c8db
|
Fix variable grouping
|
2015-11-01 13:40:35 +01:00 |
|
Erik Andrén Zachrisson
|
94256ae1f4
|
Remove non-necessary newlines
|
2015-11-01 13:40:20 +01:00 |
|
Erik Andrén Zachrisson
|
c0617e78a0
|
Remove superfluous comment
|
2015-11-01 13:39:35 +01:00 |
|
Erik Andrén Zachrisson
|
f123276080
|
Do not use global size variable. Rename local file handle to something more appropriate
|
2015-11-01 13:38:45 +01:00 |
|
Erik Andrén Zachrisson
|
c441eefe0b
|
Localize bin_file
|
2015-11-01 13:37:32 +01:00 |
|
Erik Andrén Zachrisson
|
955bd8445e
|
Localize file ptr and correct its naming to vcd_file
|
2015-11-01 13:36:09 +01:00 |
|
Erik Andrén Zachrisson
|
eb632a36dc
|
Rename ptr to the somewhat more relevant cue_ptr
|
2015-11-01 13:26:21 +01:00 |
|
Erik Andrén Zachrisson
|
07c68f8fe9
|
Localize cue_ptr and rename it to cue_index_ptr
|
2015-11-01 13:21:56 +01:00 |
|
Erik Andrén Zachrisson
|
28be06864f
|
Rename cuesize to cue_size for clarity
|
2015-11-01 13:18:00 +01:00 |
|
Erik Andrén Zachrisson
|
e1da69ce5c
|
Rename cuebuf pointer to cue_buf for clarity
|
2015-11-01 13:17:12 +01:00 |
|
Erik Andrén Zachrisson
|
c1012aea2b
|
Generalize GetBinSize to GetFileSize, use it when dealing with the cue file
|
2015-11-01 13:15:51 +01:00 |
|
Erik Andrén Zachrisson
|
f4c2269d7f
|
Check if the bin_path malloc failed
|
2015-11-01 12:55:01 +01:00 |
|
Erik Andrén Zachrisson
|
ecc773c38f
|
Check if the headerbuf malloc succeeded
|
2015-11-01 12:53:06 +01:00 |
|
Erik Andrén Zachrisson
|
07ecab26f9
|
Use ascii symbol instead of constant
|
2015-11-01 12:48:43 +01:00 |
|
Erik Andrén Zachrisson
|
9e05bba87e
|
Localize bin_path
|
2015-11-01 12:45:14 +01:00 |
|
Erik Andrén Zachrisson
|
2ff4f7b67d
|
Update comment
|
2015-11-01 12:42:05 +01:00 |
|
Erik Andrén Zachrisson
|
7223af09ec
|
Split out bin size calculation into separate function
|
2015-11-01 12:41:48 +01:00 |
|
Erik Andrén Zachrisson
|
360c1fb351
|
Localize track_count
|
2015-11-01 12:36:46 +01:00 |
|
Erik Andrén Zachrisson
|
b0df891d6d
|
Make memcpy more architecture generic (no hardcoded assumption that an int is 4 bytes
|
2015-11-01 12:33:49 +01:00 |
|
Erik Andrén Zachrisson
|
0109bb0ab3
|
Delete trailing whitespace
|
2015-11-01 12:28:32 +01:00 |
|
Erik Andrén Zachrisson
|
10586f19ea
|
Localize daTrack_ptr
|
2015-11-01 12:27:28 +01:00 |
|
Erik Andrén Zachrisson
|
c7ab02638b
|
headersize and sectorsize are constants. Make them uppercase for clarity
|
2015-11-01 12:25:09 +01:00 |
|
Erik Andrén Zachrisson
|
be18ff3355
|
Constify headersize
|
2015-11-01 12:24:14 +01:00 |
|
Erik Andrén Zachrisson
|
b7c2ef6a1a
|
Localize more global variables
|
2015-11-01 12:22:36 +01:00 |
|
Erik Andrén Zachrisson
|
396a9fed30
|
Localize global variables that are in fact local
|
2015-11-01 12:20:28 +01:00 |
|
Erik Andrén Zachrisson
|
6eadff488d
|
sectorsize is used as a constant. Make it so
|
2015-11-01 12:19:07 +01:00 |
|
Erik Andrén Zachrisson
|
dcb1b88851
|
Remove global variable. Place inside the function where it is used instead
|
2015-11-01 12:17:05 +01:00 |
|
Erik Andrén Zachrisson
|
411f444861
|
Replace hex values with actual ascii symbol for clarity
|
2015-11-01 11:53:50 +01:00 |
|
Erik Andrén Zachrisson
|
c66508b474
|
Change return value
|
2015-11-01 11:46:17 +01:00 |
|
Erik Andrén Zachrisson
|
b4bb3bf1e7
|
Enclose if statements with braces
|
2015-11-01 11:45:34 +01:00 |
|
Erik Andrén Zachrisson
|
80d36074c8
|
Constify variables that are set at compile time
|
2015-11-01 11:44:03 +01:00 |
|
Erik Andrén Zachrisson
|
cddc4323b1
|
Use local file descriptor to minimize risk of mixing them up. Check the error status of the fseek and ftell
|
2015-11-01 11:41:15 +01:00 |
|
Erik Andrén Zachrisson
|
a5c7a5b8c6
|
Rename dumpsize to bin_size
|
2015-11-01 09:37:16 +01:00 |
|
Erik Andrén Zachrisson
|
83fe739c98
|
Rename dumpaddr to bin_path
|
2015-11-01 09:35:04 +01:00 |
|
Erik Andrén Zachrisson
|
242bca6adb
|
Copy the bin string
|
2015-10-31 15:35:17 +01:00 |
|
Erik Andrén Zachrisson
|
2a1197cc79
|
Use a build time macro instead of hard coded value
|
2015-10-31 09:55:16 +01:00 |
|
Erik Andrén Zachrisson
|
6ac6c586d1
|
Prevent writing out of range by extending the buffer by one
|
2015-10-31 09:50:18 +01:00 |
|
Erik Andrén Zachrisson
|
da8a911771
|
#else not #elif
|
2015-10-30 23:12:53 +01:00 |
|
Erik Andrén Zachrisson
|
35fcad77b2
|
Install depends on cue2pops
|
2015-10-30 23:12:39 +01:00 |
|
Erik Andrén Zachrisson
|
7b6207bb9f
|
Activate DEBUG variable upon debug build
|
2015-10-30 23:11:40 +01:00 |
|
Erik Andrén Zachrisson
|
45cf9667eb
|
It is ok to not have a full path in the cue
|
2015-10-30 23:07:56 +01:00 |
|
Erik Andrén Zachrisson
|
57da5e5e00
|
Add debug target
|
2015-10-30 22:55:53 +01:00 |
|
Erik Andrén Zachrisson
|
f44e4754b7
|
Add support for both back and forward slashes. Also decrypt the ascii code to actual character
|
2015-10-30 22:54:48 +01:00 |
|
Erik Andrén Zachrisson
|
e49828da8f
|
Add original files
|
2015-10-30 22:16:40 +01:00 |
|
Erik Andrén Zachrisson
|
1949b0d734
|
Add install target
|
2015-10-30 22:14:08 +01:00 |
|
Erik Andrén Zachrisson
|
2f1d14a302
|
Remove needless pauses that do not work on non windows systems
|
2015-10-30 22:12:34 +01:00 |
|
Erik Andrén Zachrisson
|
ae9222cc1a
|
Silence another warning
|
2015-10-30 22:03:05 +01:00 |
|
Erik Andrén Zachrisson
|
ff28a9f6c4
|
Remove unnecessary assignment
|
2015-10-30 22:01:01 +01:00 |
|
Erik Andrén Zachrisson
|
b0b680c3eb
|
Add compiler flags
|
2015-10-30 22:00:52 +01:00 |
|
Erik Andrén Zachrisson
|
1d8b0f92d3
|
Convert file to unix linefeeds
|
2015-10-30 21:58:49 +01:00 |
|