• R/O
  • SSH
  • HTTPS

vima19: Commit


Commit MetaInfo

Revision762 (tree)
Time2022-08-14 22:02:05
Authorhgtterry

Log Message

Equity_SB 140822 New FileIO (WIP)

Change Summary

Incremental Difference

--- Anim19_OSDN/GD19_App.cpp (revision 761)
+++ Anim19_OSDN/GD19_App.cpp (revision 762)
@@ -82,6 +82,7 @@
8282 SBC_MeshViewer = nullptr;
8383 SBC_Import_Room = nullptr;
8484 SBC_Debug = nullptr;
85+ SBC_FileIO = nullptr;
8586 // ---------------------------------------------------- 29/12/21
8687 Com_CDialogs = nullptr;
8788
@@ -238,6 +239,7 @@
238239 SBC_Import_Room = new SB_Import_Room();
239240 Com_CDialogs = new Com_Diaolgs();
240241 SBC_Debug = new SB_Debug();
242+ SBC_FileIO = new SB_FileIO();
241243
242244 //-----------------------------------------------------
243245 SetBrushes_Fonts();
--- Anim19_OSDN/GD19_App.h (revision 761)
+++ Anim19_OSDN/GD19_App.h (revision 762)
@@ -72,6 +72,7 @@
7272 #include "SB_TopTabs.h"
7373 #include "SB_MeshViewer.h"
7474 #include "SB_Debug.h"
75+#include "SB_FileIO.h"
7576
7677 #include "Com_Diaolgs.h"
7778 #include "SB_Import_Room.h"
@@ -133,9 +134,10 @@
133134 SB_TopTabs* SBC_TopTabs; // Top Bar Tabs Class Level Editor [081221]
134135 SB_MeshViewer* SBC_MeshViewer;
135136 SB_Debug* SBC_Debug;
137+ SB_FileIO* SBC_FileIO;
138+ SB_Import_Room* SBC_Import_Room;
136139
137140 Com_Diaolgs* Com_CDialogs; // Common Dialogs for App [291221]
138- SB_Import_Room* SBC_Import_Room;
139141 // -----------------------------------
140142 GD19_App(void);
141143 ~GD19_App(void);
--- Anim19_OSDN/SB_FileIO.cpp (nonexistent)
+++ Anim19_OSDN/SB_FileIO.cpp (revision 762)
@@ -0,0 +1,12 @@
1+#include "stdafx.h"
2+#include "SB_FileIO.h"
3+
4+
5+SB_FileIO::SB_FileIO()
6+{
7+}
8+
9+
10+SB_FileIO::~SB_FileIO()
11+{
12+}
\ No newline at end of file
--- Anim19_OSDN/SB_FileIO.h (nonexistent)
+++ Anim19_OSDN/SB_FileIO.h (revision 762)
@@ -0,0 +1,11 @@
1+#pragma once
2+class SB_FileIO
3+{
4+public:
5+ SB_FileIO();
6+ ~SB_FileIO();
7+
8+
9+
10+};
11+
--- Anim19_OSDN/VM_FileIO.cpp (revision 761)
+++ Anim19_OSDN/VM_FileIO.cpp (revision 762)
@@ -491,65 +491,6 @@
491491 }
492492
493493 // *************************************************************************
494-// * LoadHistory_Equity Terry Bernie *
495-// *************************************************************************
496-void VM_FileIO::LoadHistory_Equity()
497-{
498- mPreviousFiles.resize(EQUITY_NUM_RECENT_FILES);
499-
500- char buffer[1024];
501- char buf[1024];
502-
503- strcpy(buf, UserData_Folder);
504- strcat(buf, "\\Vima19\\Vima19.ini");
505-
506- ReadRecentFiles = fopen(buf, "rt");
507-
508- if (!ReadRecentFiles)
509- {
510- App->Say("Cant Find Recent Files");
511- return;
512- }
513-
514- // Read in File Names from RecentFiles.ini
515- for (unsigned int i = 0; i < EQUITY_NUM_RECENT_FILES; ++i)
516- {
517- memset(buffer, 0, 1024);
518- fgets(buffer, 1024, ReadRecentFiles);
519-
520- char Path[1024];
521- strcpy(Path, buffer);
522- int Len = strlen(Path);
523- Path[Len - 1] = 0;
524-
525- mPreviousFiles[i] = std::string(Path);
526- }
527-
528- fclose(ReadRecentFiles);
529-
530- mHistoryMenu = CreateMenu();
531-
532- // Check for empty slots and gray out
533- for (int i = EQUITY_NUM_RECENT_FILES - 1; i >= 0; --i)
534- {
535- char szText[1024];
536- strcpy(szText, mPreviousFiles[i].c_str());
537-
538- UINT iFlags = 0;
539- int Result = 0;
540- Result = strcmp("<empty>", szText);
541- if (Result == 0)
542- {
543- iFlags = MF_GRAYED | MF_DISABLED;
544- }
545-
546- AppendMenu(mHistoryMenu, MF_STRING | iFlags, EQUITY_RECENT_FILE_ID(i), szText);
547- }
548-
549- return;
550-}
551-
552-// *************************************************************************
553494 // * Search_For_Folder Terry Bernie *
554495 // *************************************************************************
555496 bool VM_FileIO::Search_For_Folder(char* FolderPath)
--- Anim19_OSDN/VM_FileIO.h (revision 761)
+++ Anim19_OSDN/VM_FileIO.h (revision 762)
@@ -23,8 +23,7 @@
2323 void Init_History();
2424
2525 void LoadHistory();
26- void LoadHistory_Equity();
27-
26+
2827 void Save_FileHistory();
2928 void RecentFileHistory_Update();
3029 void ResentHistory_Clear();
Show on old repository browser