forked from len0rd/rockbox
Make the load function handle some variations to the "standard" for .ss files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7579 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4bf7373b88
commit
598be3af1b
1 changed files with 3 additions and 1 deletions
|
@ -708,9 +708,11 @@ bool load_sudoku(struct sudoku_state_t* state, char* filename) {
|
|||
while ((i < n) && (r < 9)) {
|
||||
switch (buf[i]){
|
||||
case ' ': case '\t':
|
||||
valid=1;
|
||||
if (c > 0)
|
||||
valid=1;
|
||||
break;
|
||||
case '|':
|
||||
case '*':
|
||||
case '-':
|
||||
case '\r':
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue