change token.txt location

This commit is contained in:
root 2026-05-06 01:14:47 +00:00
parent c86a67d06c
commit e206113949
2 changed files with 4 additions and 4 deletions

View File

@ -12,11 +12,11 @@ workdir/
├── build_engine_sdk/ ├── build_engine_sdk/
├── poomer-discord-hello-world/ ├── poomer-discord-hello-world/
└── lib └── lib
└── dpp # contains include files of D++ └── dpp # contains include files of
└─â”token.txt
├── DPP/ ├── DPP/
├── makefile ├── makefile
├── README.md ├── README.md
└── token.txt
``` ```
## Linux ## Linux

View File

@ -26,7 +26,7 @@ int main() {
if (!token_file.is_open()) { if (!token_file.is_open()) {
// if not, try parent directory // if not, try parent directory
if (!token_file.is_open()) { if (!token_file.is_open()) {
token_file_path = "../token.txt"; token_file_path = "token.txt";
token_file.open(token_file_path); token_file.open(token_file_path);
if (!token_file.is_open()) if (!token_file.is_open())
{ {
@ -225,4 +225,4 @@ void flip_image_vertically(unsigned char* data, int width, int height, int chann
std::memcpy(bottom_row, temp_row, row_stride); std::memcpy(bottom_row, temp_row, row_stride);
} }
delete[] temp_row; delete[] temp_row;
} }