Command Line INterpreter with fixes
This commit is contained in:
parent
62cb2bb8b7
commit
576a3565f7
14 changed files with 384 additions and 95 deletions
|
|
@ -2,8 +2,21 @@
|
|||
|
||||
#include "SystemHandle.hpp"
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
using namespace tp;
|
||||
|
||||
|
||||
bool FileLocation::exists() const {
|
||||
FILE* file = fopen(mLocation.read(), "r");
|
||||
if (file) {
|
||||
// File exists, close it and return 1
|
||||
fclose(file);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool File::connect(const FileLocation& location, const FileConnectionType& connectionInfo) {
|
||||
DEBUG_ASSERT(!mStatus.isOpened());
|
||||
if (mStatus.isOpened()) return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue