Save Debugger Settings ===========================================================================
| 3051 | // Save Debugger Settings |
| 3052 | //=========================================================================== |
| 3053 | Update_t CmdConfigSave (int nArgs) |
| 3054 | { |
| 3055 | const std::string sFilename = g_sProgramDir + g_sFileNameConfig; |
| 3056 | |
| 3057 | /* |
| 3058 | HANDLE hFile = CreateFile( sfilename, |
| 3059 | GENERIC_WRITE, |
| 3060 | 0, |
| 3061 | (LPSECURITY_ATTRIBUTES)NULL, |
| 3062 | CREATE_ALWAYS, |
| 3063 | FILE_ATTRIBUTE_NORMAL | FILE_FLAG_SEQUENTIAL_SCAN, |
| 3064 | NULL); |
| 3065 | |
| 3066 | if (hFile != INVALID_HANDLE_VALUE) |
| 3067 | { |
| 3068 | void *pSrc; |
| 3069 | int nLen; |
| 3070 | uint32_t nPut; |
| 3071 | |
| 3072 | // FIXME: Should be saving in Text format, not binary! |
| 3073 | |
| 3074 | int nVersion = CURRENT_VERSION; |
| 3075 | pSrc = (void *) &nVersion; |
| 3076 | nLen = sizeof( nVersion ); |
| 3077 | WriteFile( hFile, pSrc, nLen, &nPut, NULL ); |
| 3078 | |
| 3079 | pSrc = (void *) & g_aColorPalette; |
| 3080 | nLen = sizeof( g_aColorPalette ); |
| 3081 | WriteFile( hFile, pSrc, nLen, &nPut, NULL ); |
| 3082 | |
| 3083 | pSrc = (void *) & g_aColorIndex; |
| 3084 | nLen = sizeof( g_aColorIndex ); |
| 3085 | WriteFile( hFile, pSrc, nLen, &nPut, NULL ); |
| 3086 | |
| 3087 | CloseHandle( hFile ); |
| 3088 | } |
| 3089 | */ |
| 3090 | // Bookmarks |
| 3091 | CmdBookmarkSave( 0 ); |
| 3092 | |
| 3093 | // Breakpoints |
| 3094 | CmdBreakpointSave( 0 ); |
| 3095 | |
| 3096 | // Watches |
| 3097 | CmdWatchSave( 0 ); |
| 3098 | |
| 3099 | // Zeropage pointers |
| 3100 | CmdZeroPageSave( 0 ); |
| 3101 | |
| 3102 | // Color Palete |
| 3103 | |
| 3104 | // Color Index |
| 3105 | // CmdColorSave( 0 ); |
| 3106 | |
| 3107 | // UserSymbol |
| 3108 | |
| 3109 | // History |
| 3110 |
nothing calls this directly
no test coverage detected