1
0
Fork 0
mirror of https://github.com/ErikAndren/cue2pops-mac.git synced 2025-04-19 15:38:04 +02:00
Commit graph

81 commits

Author SHA1 Message Date
Erik Andrén Zachrisson
608aebf7f2 Encapsulate parameters into a struct 2015-11-04 21:27:28 +01:00
Erik Andrén Zachrisson
98b05d61c2 Rename game variables 2015-11-04 20:26:23 +01:00
Erik Andrén Zachrisson
31435df361 Add brackets 2015-11-02 22:04:07 +01:00
Erik Andrén Zachrisson
8c342f1b1f Rename variable to i 2015-11-02 21:58:02 +01:00
Erik Andrén Zachrisson
7d00f9a83a Add brackets 2015-11-02 21:56:36 +01:00
Erik Andrén Zachrisson
c50f62c31b Localize variable 2015-11-02 21:54:18 +01:00
Erik Andrén Zachrisson
8a55be728e Rename GetLeadOut 2015-11-02 21:51:45 +01:00
Erik Andrén Zachrisson
951382b9e0 Rename some functions 2015-11-02 21:51:20 +01:00
Erik Andrén Zachrisson
9db425f111 Remove double semicolon 2015-11-02 21:44:25 +01:00
Erik Andrén Zachrisson
f1b687cea8 batch variable is now deprecated 2015-11-02 21:43:01 +01:00
Erik Andrén Zachrisson
c55fb620f3 Allocate on heap, not on stack 2015-11-01 22:36:31 +01:00
Erik Andrén Zachrisson
de659afea1 Homogenize the Error: messages 2015-11-01 22:32:53 +01:00
Erik Andrén Zachrisson
e6506eaa1e Remove interactive CDRWIN fix. Why wouldn't the user want it? Also it was broken 2015-11-01 22:30:17 +01:00
Erik Andrén Zachrisson
1bd9698870 Add brackets aroudn if statements 2015-11-01 22:26:35 +01:00
Erik Andrén Zachrisson
ce0d78b3bd Remove lots of code duplication 2015-11-01 22:17:09 +01:00
Erik Andrén Zachrisson
d4ffa2429e Fix indentation 2015-11-01 22:06:44 +01:00
Erik Andrén Zachrisson
6c856cb429 Remove use of argv when writing the VCD 2015-11-01 22:01:02 +01:00
Erik Andrén Zachrisson
9551730de6 Make argument parsing more generic. First argument must always be the input file 2015-11-01 20:18:41 +01:00
Erik Andrén Zachrisson
fef2de4175 Support that arg 2 is command 2015-11-01 19:51:16 +01:00
Erik Andrén Zachrisson
989427e8ed Create separate function to convert to .vcd file ending 2015-11-01 19:48:16 +01:00
Erik Andrén Zachrisson
e6ea357cb7 Correct string copy when passing two arguments 2015-11-01 19:19:57 +01:00
Erik Andrén Zachrisson
2ec80869cf Create argument handler function. Some variables needed to go global again. Handle that later 2015-11-01 19:15:17 +01:00
Erik Andrén Zachrisson
5e3522b1f5 Allocate outbuf on the heap instead of the stack 2015-11-01 14:01:24 +01:00
Erik Andrén Zachrisson
23a78f1981 Localize bin_size 2015-11-01 13:55:37 +01:00
Erik Andrén Zachrisson
7421fd53f3 Add extra braces 2015-11-01 13:53:39 +01:00
Erik Andrén Zachrisson
63ac60d201 Add extra braces 2015-11-01 13:50:05 +01:00
Erik Andrén Zachrisson
efbffe16b4 Revert back to static 4 byte copy and add an assert protecting the runtime 2015-11-01 13:48:27 +01:00
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