mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-04-29 19:44:49 +02:00
T++ CSVs do not have headers, don't try to read 'em
This commit is contained in:
parent
ab2f477031
commit
d4bf2123a9
1 changed files with 1 additions and 1 deletions
|
@ -703,7 +703,7 @@ RB_METHOD(mkxpParseCSV) {
|
|||
VALUE ret = rb_ary_new();
|
||||
std::stringstream stream(RSTRING_PTR(str));
|
||||
try {
|
||||
rapidcsv::Document doc(stream, rapidcsv::LabelParams(), rapidcsv::SeparatorParams(',', false, true, true, true));
|
||||
rapidcsv::Document doc(stream, rapidcsv::LabelParams(-1,-1), rapidcsv::SeparatorParams(',', false, true, true, true));
|
||||
for (int r = 0; r < doc.GetRowCount(); r++) {
|
||||
VALUE col = rb_ary_new();
|
||||
for (int c = 0; c < doc.GetColumnCount(); c++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue