Skip to content

Commit

Permalink
Separate file format version from profiler version
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberShadow committed Aug 22, 2013
1 parent a7db3b6 commit f59592d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/profiler/profilerthread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

#pragma comment(lib, "winmm.lib")

#define FORMAT_VERSION "0.82"

// DE: 20090325: Profiler has a list of threads to profile
// RM: 20130614: Profiler time can now be limited (-1 = until cancelled)
ProfilerThread::ProfilerThread(HANDLE target_process_, const std::vector<HANDLE>& target_threads, SymbolInfo *sym_info_)
Expand Down Expand Up @@ -325,9 +327,10 @@ void ProfilerThread::saveData()
return;
}


zip.PutNextEntry(L"Version " _T(VERSION) L" required");
txt << VERSION << "\n";
// Change FORMAT_VERSION when the file format changes
// (and becomes unreadable by older versions of Sleepy).
zip.PutNextEntry(L"Version " _T(FORMAT_VERSION) L" required");
txt << FORMAT_VERSION << "\n";


if (!out.IsOk() || !zip.IsOk())
Expand Down

0 comments on commit f59592d

Please sign in to comment.