|
@@ -16,7 +16,7 @@ using namespace LOTRO_DAT;
|
|
using namespace std;
|
|
using namespace std;
|
|
|
|
|
|
int main() {
|
|
int main() {
|
|
- std::cout << "Gi1dor's LotRO .dat patcher ver. 3.1.0" << std::endl;
|
|
+ std::cout << "Gi1dor's LotRO .dat patcher ver. 3.2.0" << std::endl;
|
|
freopen("errors.log", "w", stderr);
|
|
freopen("errors.log", "w", stderr);
|
|
|
|
|
|
setbuf(stdout, NULL);
|
|
setbuf(stdout, NULL);
|
|
@@ -25,7 +25,8 @@ int main() {
|
|
setvbuf (stdout, NULL, _IONBF, BUFSIZ);
|
|
setvbuf (stdout, NULL, _IONBF, BUFSIZ);
|
|
setvbuf (stderr, NULL, _IONBF, BUFSIZ);
|
|
setvbuf (stderr, NULL, _IONBF, BUFSIZ);
|
|
|
|
|
|
- std::cout << "Hello! I'm a basic shell version of .dat file patcher.\n";
|
|
+ std::cout << "Hello! I'm a basic shell version of .dat file patcher. I can open .dat file directly, "
|
|
|
|
+ "if you write path to it (with name of file) in file \"dat_file_path.txt\"\n";
|
|
DatFile file;
|
|
DatFile file;
|
|
|
|
|
|
ifstream in("dat_file_path.txt");
|
|
ifstream in("dat_file_path.txt");
|
|
@@ -59,6 +60,12 @@ int main() {
|
|
}
|
|
}
|
|
|
|
|
|
std::cout << "Great! File initialised successfully!\n";
|
|
std::cout << "Great! File initialised successfully!\n";
|
|
|
|
+ if (file.CheckIfNotPatched())
|
|
|
|
+ std::cout << "MESSAGE: Dat file is new and haven't been patched yet\n";
|
|
|
|
+
|
|
|
|
+ if (file.CheckIfPatchedByOldLauncher())
|
|
|
|
+ std::cout << "MESSAGE: Dat file was patched by old launcher. Capability isn't guaranteed! Some functions may not work properly!!!\n";
|
|
|
|
+
|
|
std::cout << "Files number: " << file.files_number() << std::endl;
|
|
std::cout << "Files number: " << file.files_number() << std::endl;
|
|
|
|
|
|
while (true) {
|
|
while (true) {
|