fixed resource error, changed folder naming policy
This commit is contained in:
parent
d9d5a648f6
commit
d2917cb21a
@ -1,5 +1,6 @@
|
||||
#include <cstdio>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
using namespace std;
|
||||
|
||||
@ -59,9 +60,7 @@ int main(int argc, char *argv[])
|
||||
packName = packName.substr(0, packName.find_first_of('.'));
|
||||
for(char c : packName)
|
||||
{
|
||||
if(c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z' || c >= '0' && c <= '9')
|
||||
; // OK
|
||||
else
|
||||
if(!(c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z' || c >= '0' && c <= '9'))
|
||||
{
|
||||
printf("error : \"%s\" is an invalid resource pack name, it must match this regex : [a-zA-Z0-9]+\n", packName.c_str());
|
||||
return EXIT_SUCCESS;
|
||||
|
@ -104,7 +104,7 @@ if(USE_ENGINE)
|
||||
# window and system are already requested by sparrowInput
|
||||
LIST(APPEND SFML_MODULES graphics audio)
|
||||
|
||||
LIST(APPEND INCLUDE_PATHS ${PROJECT_SOURCE_DIR}/../sparrowengine/src)
|
||||
LIST(APPEND INCLUDE_PATHS ${PROJECT_SOURCE_DIR}/../SparrowEngine/src)
|
||||
LIST(APPEND LIB_DEPENDENCIES_LIST ${SPARROW_ENGINE_LIBRARY})
|
||||
endif()
|
||||
|
||||
@ -118,7 +118,6 @@ if(USE_INPUT)
|
||||
|
||||
LIST(APPEND SFML_MODULES window system)
|
||||
|
||||
LIST(APPEND INCLUDE_PATHS ${PROJECT_SOURCE_DIR}/../sparrowinput/src)
|
||||
LIST(APPEND INCLUDE_PATHS ${PROJECT_SOURCE_DIR}/../SparrowInput/src)
|
||||
LIST(APPEND LIB_DEPENDENCIES_LIST ${SPARROW_INPUT_LIBRARY})
|
||||
endif()
|
||||
@ -353,7 +352,7 @@ if(USE_RENDERER)
|
||||
|
||||
set(USE_OPENGL True)
|
||||
|
||||
LIST(APPEND INCLUDE_PATHS ${PROJECT_SOURCE_DIR}/../sparrowrenderer/src)
|
||||
LIST(APPEND INCLUDE_PATHS ${PROJECT_SOURCE_DIR}/../SparrowRenderer/src)
|
||||
LIST(APPEND LIB_DEPENDENCIES_LIST ${SPARROW_RENDERER_LIBRARY})
|
||||
endif()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user