OSDN Git Service

91179480f59d63731c951e351a68456bef5c41a9
[gvonavish/GVONavish.git] / GVONavish / GVONavish / GVONavish.h
1 #pragma once
2
3 #include "resource.h"
4 #include <Shlwapi.h>
5 #include <string>
6
7
8 const int32_t k_worldWidth = 16384;     //!<@brief \83Q\81[\83\80\90¢\8aE\82Ì\95\9d
9 const int32_t k_worldHeight = 8192;     //!<@brief \83Q\81[\83\80\90¢\8aE\82Ì\8d\82\82³
10
11
12
13 inline std::wstring g_makeFullPath(const std::wstring& fileName)
14 {
15         wchar_t filePath[MAX_PATH] = { 0 };
16
17         if (::PathIsRelative(fileName.c_str())) {
18                 wchar_t dir[MAX_PATH] = { 0 };
19                 ::GetModuleFileName(::GetModuleHandle(NULL), dir, _countof(dir));
20                 ::PathRemoveFileSpec(dir);
21                 ::PathCombine(filePath, dir, fileName.c_str());
22         }
23         else {
24                 ::lstrcpy(filePath, fileName.c_str());
25         }
26         return filePath;
27 }