MCPcopy Create free account
hub / github.com/dborth/fceugx / SavePreviewImg

Function SavePreviewImg

source/fceustate.cpp:116–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116bool 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}

Callers 1

MenuGameSettingsFunction · 0.85

Calls 2

FindDeviceFunction · 0.85
SaveFileFunction · 0.85

Tested by

no test coverage detected