| 114 | } |
| 115 | |
| 116 | bool SavePreviewImg (char * filepath, bool silent) |
| 117 | { |
| 118 | int device; |
| 119 | |
| 120 | if(!FindDevice(filepath, &device)) |
| 121 | return 0; |
| 122 | |
| 123 | if(gameScreenPng.size > 0) |
| 124 | { |
| 125 | char screenpath[1024]; |
| 126 | strncpy(screenpath, filepath, 1024); |
| 127 | screenpath[strlen(screenpath)] = 0; |
| 128 | strcat(screenpath, ".png"); |
| 129 | SaveFile((char *)gameScreenPng.buffer, screenpath, gameScreenPng.size, silent); |
| 130 | } |
| 131 | |
| 132 | return 1; |
| 133 | } |
no test coverage detected